Command Palette

Search for a command to run...

Назад к скиллам
скилл № 90528

ml-time-series

Use when the user asks to forecast weekly demand for the next quarter, time series forecasting, ARIMA/SARIMA, Prophet, ETS, statsforecast, LightGBM lag…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить ml-time-series в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

ML Time Series Forecasting

Purpose

Design time series forecasting architectures with appropriate model selection, feature design, temporal cross-validation, and evaluation protocols.

Architecture/Decision Trees

Model Selection Decision Tree

Series characteristics
  ├── No strong seasonality, <1000 obs
  │   └── ARIMA (identified from ACF/PACF)
  ├── Clear seasonality, >= 2 full cycles
  │   ├── Single seasonality → SARIMA
  │   └── Multiple seasonalities → Prophet or TBATS
  ├── Rich exogenous features, multiple series
  │   ├── Tabular features → LightGBM/XGBoost with lags and windows
  │   ├── Interpretability needed → TFT (Temporal Fusion Transformer)
  │   └── Static metadata per series → Gradient boosting with entity encoding
  ├── Long sequences (>10K steps), complex non-linear
  │   ├── LSTM/GRU (needs >10K steps, careful feature engineering)
  │   ├── PatchTST (transformer for time series, SOTA)
  │   └── TFT (attention + interpretable)
  └── Baseline (always compute first)
      ├── Naive: y_{t+1} = y_t (random walk)
      ├── Seasonal naive: y_{t+1} = y_{t+1-season}
      └── Mean: y_{t+1} = mean of historical values

Forecast Horizon Decision Tree

How far ahead do you need to forecast?
  ├── Short-term (1-3 steps)
  │   ├── ARIMA/SARIMA (simple, interpretable, good short-term)
  │   └── LSTM (if complex patterns, sufficient data)
  ├── Medium-term (4-24 steps)
  │   ├── Prophet (handles holidays, changepoints, missing data)
  │   ├── LightGBM with features (best with rich exogenous data)
  │   └── TFT (when interpretability needed)
  └── Long-term (>24 steps)
      ├── Direct multi-step (train separate model per horizon)
      ├── Recursive (iteratively feed predictions as inputs)
      ├── Seq2Seq LSTM (encoder-decoder for multi-step)
      └── TFT (native multi-horizon with quantiles)

Temporal CV Strategy

Series length
  ├── <500 observations → Expanding window (maximize training data)
  │   Train size increases, test size fixed. 5-8 folds.
  ├── 500-5000 observations → Expanding or sliding
  │   Sliding window when old data is irrelevant. Gap=0 to 7.
  └── >5000 observations → Sliding window (fixed train size)
      Window size = 2-3x seasonal period. 5-10 folds.

Frequency-Specific Guidance

Data frequency → key considerations
  ├── Hourly → 24-hour + 168-hour (weekly) seasonality, Fourier terms
  ├── Daily → 7-day + 365-day seasonality, holiday effects
  ├── Weekly → 52-week seasonality, look at monthly patterns
  ├── Monthly → 12-month seasonality, quarterly effects
  └── Quarterly → 4-quarter seasonality, annual cycle

Agent Protocol

Trigger

User request includes: time series, forecasting, Prophet, ARIMA, SARIMA, LSTM, TFT, Temporal Fusion Transformer, seasonality, trend, stationarity, differencing, autocorrelation, forecast horizon, backtesting.

Input Context

Before activating, verify:

  • Series frequency (hourly, daily, weekly, monthly, quarterly, yearly).
  • Series length in number of observations.
  • Seasonality periods (daily, weekly, yearly, multiple seasonalities).
  • Forecast horizon required (short-term, medium-term, long-term).
  • Available features (exogenous regressors, calendar data, holidays).
  • Business requirement: point forecast vs prediction intervals vs quantiles.

Output Artifact

Time series forecasting architecture with model selection, feature design, evaluation protocol.

Response Format

## Forecasting Framework
### Series Characteristics
Frequency: {hourly/daily/weekly/monthly} | Seasonality: {daily/weekly/yearly}
Trend: {linear/nonlinear/none} | Stationary: {true/false}

### Model Selection
Primary: {ARIMA/SARIMA/Prophet/LSTM/TFT/Ensemble}
Baseline: {naive/seasonal_naive/mean}

### Feature Engineering
Lags: [{1, 7, 14, 28}] | Window: [{7, 30}]
Calendar: {day_of_week/month/quarter/holiday}

### Evaluation
CV: {expanding/sliding} | Metrics: {MASE / sMAPE / RMSE}

No preamble. No postamble. No explanations. No filler. Compress output.

Completion Criteria

  • Time series characteristics documented.
  • Stationarity test performed (ADF + KPSS) and differencing applied if needed.
  • Model selected based on data characteristics and forecast horizon.
  • Features engineered including lags, windows, and calendar features.
  • Temporal cross-validation configured with gap.
  • Baseline model established for comparison.
  • Forecast generated with prediction intervals.
  • Residuals validated (white noise, no autocorrelation).

Workflow

Step 1: Exploratory Analysis

Plot the series: identify level, trend, seasonal pattern. STL decomposition (robust=True). Check missing values (interpolate or forward fill). Analyze ACF (MA terms, seasonality) and PACF (AR terms). Stationarity: ADF test (H0=non-stationary) + KPSS test (H0=stationary).

import pandas as pd
import numpy as np
from statsmodels.tsa.stattools import adfuller, kpss
from statsmodels.tsa.seasonal im
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/classical-forecasting.md
  • references/deep-learning-ts.md
  • references/feature-engineering.md
  • references/forecast-deep-learning.md
  • references/forecasting-methods.md
  • references/time-series-advanced.md
  • references/time-series-feature-store.md
  • references/time-series-fundamentals.md

FAQ

Что делает скилл ml-time-series?

Use when the user asks to forecast weekly demand for the next quarter, time series forecasting, ARIMA/SARIMA, Prophet, ETS, statsforecast, LightGBM lag models, TFT, seasonality or backtesting with temporal cross-validation. Produces model choice, backtest design and MASE/sMAPE evaluation. Not for anomaly alerts (use ml-anomaly-detection).

Как установить скилл ml-time-series?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ml-time-series запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ml-time-series с