v0.1.0 · open source · MIT
Time-series forecasting for Claude Code.
/forecast turns time-series datasets into statistically backtested forecasts with automatic model selection and plain-English analysis.
> /forecast:forecast retail_sales.csv --horizon 30
● Bash(forecast run retail_sales.csv --horizon 30)
sales · daily · 731 observations
5 rolling windows of 30 steps · MASE
Selected AutoETS · beat SeasonalNaive by 19%
AutoETS tied AutoTheta on MASE (0.974), and ties go to the simpler model. It beat the best baseline, SeasonalNaive, by 19%, well past the 5% required.
The next 30 days sum to 469,257, up 3.0% on the previous 30 (455,373). On the last day the 95% interval runs from 14,910 to 18,380.
01 / How it works
Claude understands the problem.
Python does the math.
The language model never produces a forecast number. It decides what to run and explains what came back. Every figure is computed by deterministic code.
Claude
- Understands what you asked for
- Resolves ambiguity: which column, which reading
- Orchestrates the analysis
- Explains the results in plain English
Python
- Validates and regularizes the data
- Fits models and backtests them
- Calculates the error metrics
- Selects the model and generates the forecast
- 01
Dataset
your CSV
- 02
Profile
Python
- 03
Validate
Python
- 04
Backtest
Python
- 05
Select
Python
- 06
Forecast
Python
- 07
Explain
Claude
02 / Model selection
Models are tested, not picked.
/forecast doesn’t ask Claude which model looks best. Each candidate is scored on held-out history with rolling-origin backtesting, and a fixed rule chooses the winner.
If a simple baseline performs best, the baseline wins.
- V1 models
- Naive · SeasonalNaive · HistoricAverage · AutoETS · AutoTheta · AutoARIMA
- Metrics
- MASE (ranking) · MAE · RMSE · sMAPE
- Selection
- Deterministic
03 / Usage
One command.
Point it at a CSV. It finds the date and target columns, checks the series, backtests the models, and writes the forecast, a chart, and a full result file.
/plugin marketplace add mkaavish/forecastClaudeSkill
/plugin install forecast@forecast-skill/forecast:forecast revenue.csv