Skip to content
Back to skills

Custom Components

ASecurity

"Implement custom PyTorch Forecasting metrics, models, package

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
developmentpythontestingapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill custom-components --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Custom Components?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Custom Components
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-custom-components-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-custom-components-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: custom-components
description: "Implement custom PyTorch Forecasting metrics, models, package
  wrappers, data modules, and focused maintainer tests."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Custom Components

Use this sub-skill when you are adding or reviewing PyTorch Forecasting custom components for version 1.8.0: metrics/losses, v1 `BaseModel` implementations, v1 `_pkg` package containers, experimental v2 model/package/data-module components, and focused maintainer tests.

Do not use this sub-skill for ordinary package usage, release/changelog work, broad CI administration, documentation-site builds, or hyperparameter-tuning workflows.

## Route by task

- For a custom metric or loss, start from the bundled template, then read the metric section in [references/custom-components.md](references/custom-components.md); it explains the `MultiHorizonMetric` contract, optional distribution-loss hooks, and package-wrapper tags when a metric must be discoverable.
- For a v1 custom model, read [references/custom-components.md](references/custom-components.md); it gives the `BaseModel` / `BaseModelWithCovariates` / `_pkg` pattern, `TimeSeriesDataSet.from_dataset` rules, tensor-dict shape expectations, and registry tags.
- For experimental v2 work, read [references/custom-components.md](references/custom-components.md); it summarizes the v2 `BaseModel`, `Base_pkg`, `TimeSeries`, and `EncoderDecoderTimeSeriesDataModule` concepts without relying on source templates.
- Before running checks, use [references/maintainer-testing.md](references/maintainer-testing.md); it lists focused pytest selections, CPU smoke tests, ruff/mypy/pre-commit basics, and when to avoid broad optional extras.
- When a component fails import, `.from_dataset`, tensor-shape, package-linkage, optional-dependency, or estimator tests, use [references/troubleshooting.md](references/troubleshooting.md); it maps common failure signals to fixes.
- Copy [scripts/custom_metric_template.py](scripts/custom_metric_template.py) when implementing a new point-style `MultiHorizonMetric`; it is a syntactically valid, minimal class with a CPU self-check.

## Operating stance

Prefer small CPU fixtures and package-relative commands. Keep optional dependencies behind lazy imports and explicit `python_dependencies` tags. Treat v2 APIs as beta/unstable; prefer stable v1 `TimeSeriesDataSet` + `BaseModel.from_dataset()` unless the task explicitly targets v2 package/data-module layers.

Files in this skill

  • SKILL.md2.5 KB
  • references/custom-components.md10.3 KB
  • references/maintainer-testing.md6.3 KB
  • references/troubleshooting.md9.9 KB
  • scripts/custom_metric_template.py3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.