/garch-method:garch-methodfrom garch-method
Forecasts volatility and computes position sizes via walk-forward GARCH(1,1). Use for vol targeting, risk throttling, or testing whether vol-scaled sizing improves a strategy.
Ships in garch-method. 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.
This skill answers the question retail never asks and every fund asks daily: how much?
It does NOT predict direction. GARCH forecasts the magnitude of moves — how violent tomorrow is likely to be, not which way it goes. Say this to the user whenever presenting results.
All scripts live in scripts/ and run with uv run (dependencies resolve automatically via inline metadata — nothing to pip-install).
garch_forecast.py — the forecastWalk-forward GARCH(1,1), zero lookahead (params re-estimated every 21 days on an expanding window; the recursion rolls forward between refits using only past data).
uv run scripts/garch_forecast.py --csv prices.csv --json
uv run scripts/garch_forecast.py --ticker BTC-USD --json
Output: 1-day-ahead vol forecast (daily + annualized), vol percentile vs trailing year, regime (calm / normal / storm).
vol_target.py — the sizeThe entire idea: size = target_vol / forecast_vol, capped at [0.25x, 2.0x].
uv run scripts/vol_target.py --csv prices.csv --target-vol 15 --json
Output: position size multiplier. "Run 0.6x your baseline" — that's the answer.
compare.py — the honest testRuns the same signals twice — fixed size vs vol-targeted — and shows both equity curves plus stats side by side. Ships with an EMA 9/21 crossover demo; accepts any strategy via --signals mine.csv (columns: date, signal in {-1,0,1}).
uv run scripts/compare.py --csv prices.csv --target-vol 58 --chart equity.png --json
uv run scripts/compare.py --csv prices.csv --signals mine.csv
Output: CAGR, ann vol, Sharpe, max drawdown, worst month, final equity — both versions — plus the equity-curve chart with storm regimes shaded.
Every script supports --json. Core output shape:
{
"as_of": "2026-05-23",
"forecast_vol_annualized_pct": 41.2,
"vol_percentile_1y": 78.0,
"regime": "storm",
"position_size_multiplier": 0.6,
"note": "GARCH forecasts magnitude (volatility), not direction."
}
A. Sizing layer — bolt onto any existing strategy. Your strategy decides if; this skill decides how much. Take the strategy's signal, multiply by position_size_multiplier, done.
B. Risk throttle — standalone kill-switch. If regime == "storm", cut all exposure to the multiplier regardless of what your signals say. Works with any agent that manages positions.
C. Comparison harness — before trusting any strategy, run it through compare.py and check whether vol targeting improves its Sharpe / drawdown. If sizing doesn't help, the strategy's edge may be too weak to survive real conditions.
Composes cleanly with regime-direction skills (e.g. Markov-style bull/bear classifiers): their output answers which way, this answers how much. Multiply the two.
--periods-per-year 365 (default). Stocks: --periods-per-year 252.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub milesdeutscher/garchmethod --plugin garch-methodOther plugins' skills for the same job