agentleFS
mxslrmxslr/mlcraft/skills/domain-time-series/SKILL.md

domain-time-series

Skill8 starsChanged 4 months agoMITView on GitHub

Use for time-series tasks: forecasting (demand, sales, energy, finance), time-series classification, and anomaly detection over time (sensors, logs, monitoring). Picks classical vs ML vs deep forecasters, enforces temporal splits (no future leakage), and uses proper time-series metrics/backtesting. Triggers on 'forecast', 'predict next/future', 'time series', 'demand/sales/energy prediction', 'anomaly detection over time', 'seasonality'.

The file

Files
SKILL.md

Time-Series - Method Selection

Temporal order is sacred: the future must never leak into training.

Decision table

Sub-taskRecommended (simple to advanced)Notes
Univariate / few series forecastingETS / ARIMA / Theta / ProphetStrong, interpretable baselines. Often beat deep on small data.
Many related seriesLightGBM on lag/calendar features then N-BEATS/NHITS, TFTGBT-on-lags is a very strong, cheap default.
Long-horizon / rich covariatesTFT / PatchTST / DeepARDeep only when data volume justifies it.
Foundation / zero-shotTimesFM / Chronos / MoiraiGood for cold-start / many series with little history.
TS classificationROCKET/MiniROCKET, InceptionTime, HIVE-COTEROCKET = fast strong baseline.
Anomaly detectionSTL/residual + threshold, Isolation Forest, autoencoder/LSTMStart simple; label scarcity is the norm.

Temporal rigor (non-negotiable)

  • Split by time: train strictly before validation before test. Use rolling/expanding-window backtesting, not random K-fold (data-rigor-and-leakage).
  • No future leakage in features: lags/rolling stats use only past data; align target horizon carefully; no target-derived or post-hoc features.
  • Fit scalers/encoders on the training window only, refit as the window rolls.
  • Respect gaps/frequency: handle missing timestamps, irregular sampling, and known future covariates (holidays) vs unknown.

Evaluation

  • Metrics: MAE / RMSE / MAPE / sMAPE / MASE (MASE compares to a naive baseline - always include a naive/seasonal-naive baseline).
  • Report per-horizon error and prediction intervals (coverage), not just a point metric.
  • Backtest across multiple origins; a single split is not enough.
  • Improve: use accuracy-improvement-loop (better features/lags, hierarchical reconciliation, ensembling classical+ML, then deep).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.