Skip to content
Documentation menu

Getting started

/forecast is an open-source Claude Code skill for statistically backtested time-series forecasting. You give it a CSV. A Python engine profiles the data, backtests several statistical models, picks one with a fixed rule, and produces a forecast with prediction intervals. Claude then explains the result in plain English.

Version 0.1.0 is the first release. Everything is open source under the MIT license.

Requirements

  • Claude Code
  • uv, installed with brew install uv or pip install uv. It fetches Python 3.10 or newer and the dependencies for you.
  • A CSV with a date column and at least one numeric column

The first run takes about a minute while dependencies install. The Python stack (statsforecast and friends) is a few hundred MB.

Installation

Inside Claude Code:

/plugin marketplace add mkaavish/forecastClaudeSkill
/plugin install forecast@forecast-skill

First forecast

/forecast:forecast sales.csv

The command is /forecast:forecast. Claude Code namespaces plugin skills, so a bare /forecast does not work (tested on Claude Code 2.1.119).

Basic workflow

  1. Run. Claude calls the engine once. The engine profiles the CSV, checks it, backtests the models, selects one, and forecasts.
  2. Clarify, if needed. If more than one reading is reasonable (several numeric columns, say), the engine stops and returns questions. Claude asks you, then re-runs with your answers.
  3. Explain. Claude summarizes the results, separating what was observed from what is forecast.

More detail in How it works.

What’s in V1

  • Claude Code /forecast skill and plugin
  • CSV ingestion
  • Automatic date detection
  • Automatic target detection
  • Frequency inference
  • Data validation, with 12 refusal codes
  • Six models: Naive, SeasonalNaive, HistoricAverage, AutoETS, AutoTheta, AutoARIMA
  • Rolling-origin backtesting
  • MASE as the ranking metric, with MAE, RMSE and sMAPE reported alongside
  • Deterministic model selection
  • 80% and 95% prediction intervals, calibrated against the backtest
  • Forecast chart
  • forecast.csv and result.json
  • Plain-English analysis from Claude
  • Standalone Python CLI
  • 592 automated tests, run on Python 3.10 and 3.12 in CI
  • Synthetic example datasets

Not in V1: multiple series per run, holidays, external regressors, Excel or Parquet input, intermittent-demand models, and machine-learning models.