Skip to content

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.

✻ Claude Codeexamples/retail_sales.csv

> /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

Naive3.17
SeasonalNaive1.21
HistoricAverage4.96
AutoETS0.974
AutoTheta0.974
AutoARIMA0.977

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.

Read the architecture

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
  1. 01

    Dataset

    your CSV

  2. 02

    Profile

    Python

  3. 03

    Validate

    Python

  4. 04

    Backtest

    Python

  5. 05

    Select

    Python

  6. 06

    Forecast

    Python

  7. 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

Models & backtesting

window 1window 2window 3window 4time →
train on history score on held-out horizonschematic

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.

Getting startedUsageOutputs

install, inside Claude Code
/plugin marketplace add mkaavish/forecastClaudeSkill
/plugin install forecast@forecast-skill
run
/forecast:forecast revenue.csv