/garch-method:garch-methodfrom garch-method
Forecasts volatility and sizes positions via walk-forward GARCH(1,1). Answers "how much" (position size multiplier) from any ticker or CSV, with regime detection and backtest comparison.
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 inside the installed plugin. Always invoke them through ${CLAUDE_PLUGIN_ROOT} so a same-named file in the user's current project cannot be executed instead. Dependencies resolve automatically via inline metadata.
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 "${CLAUDE_PLUGIN_ROOT}/scripts/garch_forecast.py" --csv "prices.csv" --json
uv run "${CLAUDE_PLUGIN_ROOT}/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 "${CLAUDE_PLUGIN_ROOT}/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 "${CLAUDE_PLUGIN_ROOT}/scripts/compare.py" --csv "prices.csv" --target-vol 58 --chart "equity.png" --json
uv run "${CLAUDE_PLUGIN_ROOT}/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 miles-deutscher/garch-method --plugin garch-methodOther plugins' skills for the same job