Guides selection of the appropriate skforecast forecaster based on data characteristics and requirements. Provides a decision matrix mapping use cases to forecaster classes.
Ships in skforecast. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the user needs help choosing a forecaster, comparing forecaster types (recursive vs direct, single vs multi-series), or understanding which skforecast class fits their problem.
forecasting-single-series (apply the chosen forecaster to one target series)forecasting-multiple-series (apply the chosen forecaster to several series jointly)baseline-forecasting (build and benchmark a naive baseline with ForecasterEquivalentDate)autocorrelation-and-lag-selection (analyse the series dynamics before configuring lags)feature-engineering (build the input feature set: calendar, rolling, exogenous)Skforecast is a machine learning-first library. The primary tools are the
sklearn-compatible ML forecasters (ForecasterRecursive, ForecasterDirect,
and their multi-series variants) and the zero-shot foundation models
(ForecasterFoundation, e.g. Chronos-2, TimesFM 2.5/3.0) - reach for an ML or a
foundation forecaster first. Statistical models (ForecasterStats) and naive
baselines (ForecasterEquivalentDate) serve as comparison benchmarks to confirm
the chosen model adds value.
| Scenario | Go to |
|---|---|
| 1 target series (with or without exogenous variables) | → Step 2a |
| Multiple series to forecast simultaneously | → Step 2b |
| Multiple series as drivers to predict one target | → ForecasterDirectMultiVariate |
| Categorical target (e.g., low/medium/high) | → ForecasterRecursiveClassifier |
| Scenario | Recommended Forecaster | Why |
|---|---|---|
| General purpose (start here) | ForecasterRecursive | Default choice. One model, recursive multi-step. Works with any sklearn-compatible estimator (LightGBM, XGBoost, CatBoost, RandomForest, etc.). Supports lags, window features, exog, differentiation, transformers, weight functions, and all probabilistic prediction methods (bootstrapping, conformal, quantiles, distributions) |
| Horizon-dependent patterns (e.g., predicting at 1h vs 24h requires different relationships) | ForecasterDirect | Trains one independent model per step — no error propagation. Better when the predictive relationship changes significantly across the forecast horizon. Requires steps at init; parallelizable with n_jobs |
| Statistical baseline | ForecasterStats | Wraps ARIMA, SARIMAX, ETS, ARAR. Use as a benchmark to compare against ML models, or when the series is very short (< 200 obs) and ML overfits |
| Zero-shot / cold-start / no training data | ForecasterFoundation | Wraps pre-trained foundation models (Chronos-2, TimesFM 2.5/3.0, Moirai-2, TabICL, TabPFN-TS, TFC-T0, Nori, TS-ICL, Timestral, TiRex-2). fit() only stores context, no training. Strong zero-shot accuracy, also for short or new series; needs more compute to predict. See the foundation-forecasting skill |
| Naive baseline | ForecasterEquivalentDate | Predicts using equivalent past dates (e.g., same weekday last week). Use as a sanity-check baseline. See the baseline-forecasting skill |
| Scenario | Recommended Forecaster | Why |
|---|---|---|
| Forecast many series with a shared model (start here) | ForecasterRecursiveMultiSeries | One global model learns cross-series patterns. Supports DataFrame or dict input (dict allows series with different date ranges). Encoding options: 'ordinal' (default), 'ordinal_category', 'onehot', None. Supports per-series transformers, per-series differentiation, series_weights |
| Other series are features for one target | ForecasterDirectMultiVariate | All series become input features to predict a single level. Per-series lags via dict ({'sales': [1,7], 'price': [1]}). One model per step — no error propagation |
| Deep learning / complex nonlinear patterns | ForecasterRnn | Keras-based RNN/LSTM/GRU. Single model outputs all steps and levels simultaneously via 3D tensors. Only conformal intervals (no bootstrapping). Requires keras |
| Zero-shot / pre-trained generalist | ForecasterFoundation | Global zero-shot forecasts via Chronos-2 / TimesFM 2.5/3.0 / Moirai-2 / TabICL / TabPFN-TS / TFC-T0 / Nori / TS-ICL / Timestral / TiRex-2. fit() only stores context. Native quantile intervals. Chronos-2, TimesFM 3.0, TabICL, TabPFN-TS, TFC-T0, Nori, TS-ICL, Timestral and TiRex-2 support exog; TimesFM 2.5 & Moirai-2 do not. See the foundation-forecasting skill |
How many series?
│
├─► 1 series
│ │
│ ├─► Is it a classification problem? ──► Yes ──► ForecasterRecursiveClassifier
│ │
│ └─► Regression (continuous target)
│ │
│ ├─► Does the forecast relationship change across the horizon?
│ │ ├─► No / Unsure ──► ForecasterRecursive ← START HERE
│ │ └─► Yes (step-specific patterns) ──► ForecasterDirect
│ │
│ └─► Compare with baselines:
│ ├─► ForecasterStats (Auto-ARIMA, ETS) as statistical benchmark
│ └─► ForecasterEquivalentDate as naive benchmark
│
└─► Multiple series
│
├─► Want to forecast ALL series (global model)?
│ └─► ForecasterRecursiveMultiSeries ← START HERE
│
├─► Want to use other series AS FEATURES for one target?
│ └─► ForecasterDirectMultiVariate
│
└─► Need deep learning for very complex patterns?
└─► ForecasterRnn
Zero-shot / no training data / cold-start (single or multi-series)?
└─► ForecasterFoundation (Chronos-2 / TimesFM 2.5/3.0 / Moirai-2 / TabICL / TabPFN-TS / TFC-T0 / Nori / TS-ICL / Timestral / TiRex-2)
| Aspect | ForecasterRecursive | ForecasterDirect |
|---|---|---|
| Models trained | 1 | N (one per step) |
| Error propagation | Yes (predictions feed into next step) | No (each step uses only observed data) |
| Forecast horizon | Flexible (any steps at predict time) | Fixed at init (steps required) |
| Training speed | Fast (one model) | Slower (N models, parallelizable via n_jobs) |
| Memory | Lower (1 estimator) | Higher (N estimators stored in estimators_ dict) |
| Best for | Most cases, especially short-to-medium horizons | Long horizons where patterns change per step |
| Prediction intervals | Bootstrapping + conformal | Bootstrapping + conformal |
| Aspect | ForecasterRecursiveMultiSeries | ForecasterDirectMultiVariate |
|---|---|---|
| Goal | Forecast all series with one model | Use all series as features for one target |
| Input | DataFrame or dict of Series | DataFrame (all series as columns) |
| Target | All series (selected via levels) | One series (specified via level) |
| Strategy | Recursive (1 model, predictions feed back) | Direct (1 model per step, no error propagation) |
| Series identification | Encoding: 'ordinal', 'ordinal_category', 'onehot', None | All series create separate lag columns |
| Series with different ranges | Yes (via dict input) | No (all must share same range) |
| Per-series lags | No (same lags for all) | Yes (dict: {'sales': [1,7], 'price': [1]}) |
| Series weights | Yes (series_weights param) | No |
| Per-series transformers | Yes (transformer_series dict) | Yes (transformer_series dict) |
| Per-series differentiation | Yes (differentiation dict) | Yes (via differentiator_ per series) |
| Aspect | ML Forecasters | ForecasterStats |
|---|---|---|
| Primary role | Main forecasting tools | Comparison baseline |
| Best for | Medium-to-large datasets, complex patterns, many exogenous features | Short series, interpretability, parametric intervals |
| Estimators | Any sklearn-compatible (LightGBM, XGBoost, RF, etc.) | Arima, Sarimax, Ets, Arar |
| Lags / window features | Full support (lags, RollingFeatures) | No (model handles its own structure) |
| Differentiation | Built-in (differentiation param) | Handled within model (e.g., ARIMA d parameter) |
| Exogenous variables | Full support | Arima, Sarimax and Arar (not Ets) |
| Prediction intervals | Bootstrapping (binned residuals) + conformal | Built-in parametric |
| Tuning | grid_search_forecaster, random_search_forecaster, bayesian_search_forecaster | grid_search_stats, random_search_stats |
| Backtesting | backtesting_forecaster / backtesting_forecaster_multiseries | backtesting_stats |
| Feature selection | select_features / select_features_multiseries | Not applicable |
| Feature | Recursive | Direct | RecursiveMultiSeries | DirectMultiVariate | Foundation | Rnn | Stats | EquivalentDate | Classifier |
|---|---|---|---|---|---|---|---|---|---|
| Lags | ✓ | ✓ | ✓ | ✓ (per-series dict) | — (context window) | ✓ | — | — | ✓ |
Window features (RollingFeatures) | ✓ | ✓ | ✓ | ✓ | — | — | — | — | ✓ |
| Exogenous variables | ✓ | ✓ | ✓ | ✓ | ✓ (model-dependent) | ✓ | Arima, Sarimax, Arar | — | ✓ |
| Differentiation | ✓ | ✓ | ✓ (per-series) | ✓ (per-series) | — | — | Within model | — | — |
| Transformer y/series | ✓ | ✓ | ✓ (per-series) | ✓ (per-series) | — | ✓ | ✓ | — | — |
| Transformer exog | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | — | ✓ |
| Weight function | ✓ | ✓ | ✓ (per-series) | ✓ | — | — | — | — | ✓ |
| Bootstrapping intervals | ✓ | ✓ | ✓ | ✓ | — | — | — | — | — |
| Conformal intervals | ✓ | ✓ | ✓ | ✓ | — | ✓ | — | ✓ | — |
| Binned residuals | ✓ | ✓ | ✓ | ✓ | — | ✓ | — | ✓ | — |
| Quantile predictions | ✓ | ✓ | ✓ | ✓ | ✓ (native) | — | — | — | — |
| Distribution fitting | ✓ | ✓ | ✓ | ✓ | — | — | — | — | — |
| Class probabilities | — | — | — | — | — | — | — | — | ✓ |
| Feature importances | ✓ | ✓ | ✓ | ✓ | — | — | — | — | — |
Legend: ✓ = supported, — = not supported/not applicable.
The user guide Comparing forecasting models evaluates the seasonal naive, Ridge, LightGBM, Chronos-2, AutoARIMA, AutoETS and an LSTM with the same backtesting on three datasets: one series with exogenous variables, a short monthly series and 50 daily series that share the same patterns. Use it to show users how each family behaves (accuracy, interval coverage and computation time) and as a template to compare candidates on their own data with the same TimeSeriesFold.
Once you have chosen a forecaster, follow these steps to get started:
ForecasterRecursive; multiple series → ForecasterRecursiveMultiSeriesLGBMRegressor) is the best starting point — fast, handles categoricals, good defaultsRollingFeatures (rolling mean, std, min, max) and CalendarFeatures or create_calendar_features as exogenous variablesdifferentiation parameter instead of manual differencingbacktesting_forecaster + TimeSeriesFold for realistic multi-step evaluationbayesian_search_forecaster (Optuna-based) — can include lags in the search spacepredict_interval(method='bootstrapping', use_binned_residuals=True) for uncertainty quantificationForecasterStats (Auto-ARIMA: Arima(order=None)) and ForecasterEquivalentDate to verify the ML model adds valueWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/skforecast:choosing-a-forecasterfrom skforecast
npx claudepluginhub skforecast/skforecast --plugin skforecast17 skills in this plugin
/autocorrelation-and-lag-selectionAnalyzes time series dynamics with the fast skforecast.stats functions acf, pacf and calculate_lag_autocorrelation. Covers reading ACF/PACF patterns to identify AR/MA orders and seasonality, ranking lags by partial autocorrelation, and feeding the result to the lags argument of any skforecast forecaster. Use when the user wants to understand the dynamics of a series, choose a candidate set of lags before hyperparameter tuning, or replace a slow statsmodels acf/pacf call.
/backtesting-configurationConfigures TimeSeriesFold parameters for backtesting based on deployment scenarios. Maps business requirements (retraining frequency, forecast horizon, data budget) to cross-validation strategy parameters. Use when the user describes how they plan to deploy or evaluate a model.
/baseline-forecastingBuilds and evaluates simple baseline forecasts with ForecasterEquivalentDate (equivalent-date / seasonal-naive / moving-average) to benchmark machine learning models. Covers offset (int vs pandas DateOffset), n_offsets with agg_func, backtesting a baseline, comparing against ML with MASE, conformal intervals, and grid_search_equivalent_date. Use when the user wants a baseline, a naive or seasonal reference, or to check whether a model beats a simple rule. Not for choosing among ML forecasters (see choosing-a-forecaster) or tuning ML hyperparameters (see hyperparameter-optimization).
/complete-api-referenceProvides complete constructor and method signatures for all skforecast forecasters, backtesting functions, search functions, cross-validation classes, preprocessing, feature selection, and drift detection. Use when the user needs exact parameter names, types, or defaults for any skforecast class or function.
/deep-learning-forecastingForecasts time series using recurrent neural networks (RNN, LSTM, GRU) with ForecasterRnn and the create_and_compile_model helper. Covers model architecture, training, and multi-series deep learning. Use when the user wants to use deep learning / neural networks for time series forecasting.
/drift-detectionDetects data drift in time series forecasting pipelines using RangeDriftDetector and PopulationDriftDetector. Covers range-based out-of-range detection and statistical distribution tests. Use when the user wants to monitor model reliability in production.
Other plugins' skills for the same job