/forecasting:forecast-hierarchicalfrom forecasting
Forecasts hierarchical and grouped time series so every level adds up, comparing bottom-up, top-down, middle-out and MinT reconciliation, checking coherence and scoring accuracy at each level. Use when the user says "hierarchical forecast", "reconcile forecasts", "MinT", "forecasts don't add up", "store and region totals" or "grouped time series". Not for a single series.
Ships in forecasting. 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.
You make forecasts coherent across levels and show what that does to accuracy at each level.
../../references/lessons.md and docs/forecast-plans/lessons.md if present.../../references/diagnostics/hierarchical.md.explore.md and baselines.md in docs/forecast-plans/*/.../../references/workflow.md.../../templates/hierarchical.py with fpp_data.py and fc_checks.py.total column, then Y, S, tags = aggregate(df, spec). Each
spec entry lists the columns that define one level, starting with ["total"].tags: every level present; the bottom count equals the raw series count.
A wrong structure is FATAL.residual_check(resid, m, dof, name, plot=False) and report
the share that pass per level. Why: MinT weights series by their errors; a base
model that misses structure passes its error into the reconciled forecasts.fitted=True (MinT needs
in-sample errors): sf.forecast(df=Y_train, h=h, level=levels, fitted=True) and
sf.forecast_fitted_values().BottomUp(),
TopDown(method="forecast_proportions") and MiddleOut(...) for hierarchies,
MinTrace(method="ols" | "wls_struct" | "mint_shrink") for both.
Why: MinT uses every level's information and the error covariance; shrinkage
keeps the covariance estimate stable with many series.level= and intervals_method="normality" or "bootstrap" in
reconcile.hierarchical.py section 5). A gap above rounding is FATAL.hierarchicalforecast.evaluation.evaluate(..., tags=tags), base against each
reconciled version. Why: reconciliation can help most levels and lose at some.MinTrace(..., nonnegative=True),
and score that setting on the same origins before shipping it.Apply workflow.md. Quote the structure (series per level), the base residual
pass rate per level, the coherence gap, accuracy per level over several forecast
origins, and coverage per level.
Write docs/forecast-plans/<project>/hierarchical.md: structure, base model,
methods compared, per-level table, the recommended method for the levels the
decision uses, and where reconciliation lost accuracy.
Next: /forecasting:forecast-auditor, then /forecasting:forecast-report.
| Mistake | Why it is wrong | Instead |
|---|---|---|
| One overall accuracy number | Hides losses at some levels | A row per level |
| RMSE pooled across levels | The top level dominates | MASE or RMSSE per level |
| Top-down on grouped data | No single nesting to split along | Bottom-up or MinT |
| MinT with sample covariance and many series | Covariance estimate fails | mint_shrink |
Forgetting fitted=True | MinT has no residuals to use | Forecast with fitted values |
No total column in aggregate | The top level is missing | Add a constant total column |
| Assuming reconciliation always improves accuracy | It often does, not always | Measure it |
FPP3 chapter 11: 11.1 hierarchical and grouped time series, 11.2 single level
approaches, 11.3 forecast reconciliation, 11.4 tourism example, 11.5 grouped
example, 11.6 reconciled distributional forecasts. R:
https://otexts.com/fpp3/hierarchical.html, hts.html, single-level.html,
reconciliation.html, tourism.html, rec-prob.html. Python edition:
https://otexts.com/fpppy/ chapter 11. URLs checked 2026-10-22.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 skills in this plugin
/forecast-advancedApplies the book's advanced methods when standard models miss a feature, namely multiple seasonal periods with MSTL or Fourier terms, Prophet, vector autoregression, neural network autoregression and bagged ETS, always compared with ETS or ARIMA. Use when the user says "Prophet", "VAR model", "multiple seasonality", "half-hourly", "hourly data", "neural network forecast", "NNAR" or "bagging". Also use it for questions about data with two or more seasonal cycles, or about nonlinear models. Not for a first model on an ordinary monthly or quarterly series./forecast-arimaFits ARIMA and seasonal ARIMA models, deciding stationarity and differencing with KPSS and seasonal strength tests, reading ACF and PACF, running the automatic order search, checking residuals, and comparing ARIMA with ETS by cross-validation. Use when the user says "ARIMA model", "seasonal ARIMA", "SARIMA", "auto ARIMA", "stationarity", "unit root test", "differencing" or "PACF". Also use it for questions about differencing and reading ACF or PACF plots. Not for regression with ARIMA errors (use forecast-regression)./forecast-auditorStress-tests a finished forecast in five categories (problem fit, data, model, evaluation, uncertainty), rates each finding fatal, serious or minor, and hands fixes to the right skill without making them. Use when the user says "audit my forecast", "review this forecast", "what could go wrong", "is this forecast reliable" or "check my forecasting code for leakage". Also use it when the user doubts how a forecast or its accuracy was evaluated. Not for building or fixing a forecast./forecast-baselinesFits the four benchmark forecasts (mean, naive, seasonal naive, drift), checks residuals, handles transformations and bias adjustment, and designs forecast evaluation with train/test splits, time series cross-validation and accuracy measures (MAE, RMSE, MASE, RMSSE, CRPS, Winkler, coverage). Use when the user says "baseline forecast", "naive forecast", "seasonal naive", "time series cross-validation", "backtest", "forecast accuracy" or "which accuracy metric". Also use it for questions about how to evaluate, test or compare forecasts. Not for reviewing a finished forecast (use forecast-auditor)./forecast-etsFits exponential smoothing (ETS) state space models, from simple exponential smoothing and Holt to damped trend and Holt-Winters, selects the form by AICc, reads the smoothing parameters, and produces prediction intervals. Use when the user says "exponential smoothing", "ETS model", "Holt-Winters", "damped trend", "AutoETS" or "simple exponential smoothing". Also use it for questions about which smoothing method or trend type to use. Not for comparing ETS with ARIMA by AICc, and not for series with predictors./forecast-exercisesGenerates forecasting practice exercises on simulated series with known structure (ETS, ARIMA, intermittent demand, hierarchy, regression with ARIMA errors) and grades the learner's answers against the true model. Use when the user says "forecasting exercise", "practice forecasting", "quiz me", "give me a time series to practise on" or "teach me exponential smoothing with an example". Not for real data projects, and it never reuses the book's exercises.npx claudepluginhub robinicole/skills --plugin forecasting