Quantifies crypto market regime health using CoinGecko and Binance funding data. Generates a 0-100 composite score across 6 components with a posture recommendation. No API key required.
Ships in tradermonty-claude-trading-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Quantify the crypto market regime using a data-driven 6-component scoring system (0-100). This is the crypto analog of market-breadth-analyzer + exposure-coach: it answers "what posture does the crypto market currently support?" before any coin-level analysis happens.
Score direction: 100 = Maximum risk-on health (broad participation, healthy trend, sane leverage), 0 = Critical risk-off.
No API key required — uses CoinGecko's free public API and Binance's public futures endpoint.
market-regime-daily workflowrequests (live mode only; offline mode is stdlib-only)api.coingecko.com and fapi.binance.com (live mode)| # | Component | Weight | Question it answers |
|---|---|---|---|
| 1 | BTC Trend Structure | 25% | Is the reserve asset's primary trend intact? (price vs 50/200DMA stack, 200DMA slope) |
| 2 | Alt Breadth Participation | 20% | How broadly are alts participating? (% of top-N above 200DMA, 50DMA confirmation) |
| 3 | BTC Dominance Regime | 15% | Where is capital rotating? (dominance direction interpreted jointly with BTC trend) |
| 4 | Perpetual Funding Regime | 15% | How crowded is leverage? (avg funding across majors; contrarian at extremes) |
| 5 | Drawdown & Volatility Position | 15% | Where are we in the cycle? (drawdown from 1y high, realized vol percentile) |
| 6 | Momentum Thrust / Washout | 10% | Short-horizon confirmation (% of universe positive over 30d) |
Missing components have their weight proportionally redistributed (same convention as market-breadth-analyzer). Full scoring logic: references/crypto_regime_methodology.md.
| Score | Zone | Posture |
|---|---|---|
| 80-100 | RISK_ON | Broad risk-on conditions observed; review risk limits before decisions |
| 40-79 | NEUTRAL | Mixed conditions observed; no strong regime conclusion |
| 0-39 | RISK_OFF | Defensive market conditions observed; review existing risk controls |
These are heuristic descriptive bands, not validated allocation rules. See
references/VALIDATION.md for the current evidence boundary and the artifacts
required before making quantitative performance claims.
Live mode (fetches CoinGecko + Binance; first run of the day takes ~2-4 minutes at the default --top-n 20 due to free-tier rate-limit throttling; same-day re-runs hit the cache and are instant):
mkdir -p reports/<routine-or-date>
python3 skills/crypto-regime-analyzer/scripts/crypto_regime_analyzer.py \
--output-dir reports/<routine-or-date>
Offline mode (no network; snapshot schema in the methodology reference):
python3 skills/crypto-regime-analyzer/scripts/crypto_regime_analyzer.py \
--input-json snapshot.json \
--output-dir reports/<routine-or-date>
Options: --top-n <int> universe size (default 20), --cache-dir <path> fetch cache location (default .crypto_regime_cache), --quiet.
CoinGecko universe data is checked before use or caching: missing, empty or malformed
id/symbol fields, unsafe coin IDs, and an empty universe after exclusions cause
an explicit COINGECKO_UNIVERSE_* error. Invalid same-day caches also fail explicitly;
remove or repair the affected cache only after investigating its cause. --top-n
must be a positive integer. Global BTC dominance and market_chart price pairs are
also validated before caching: dominance is a finite non-bool number in (0, 100],
and nonempty price pairs have finite positive non-bool values/timestamps in strict
time order. Bad cached closes/dominance fail explicitly and remain untouched.
Legacy close-only caches carry no timestamp evidence. No rows are reordered,
zero-filled or resampled. Invalid BTC history prevents a normal report; optional
dominance failure remains explicitly unavailable. Funding is outside these
CoinGecko response contracts. Scoring formulas remain unchanged.
The script writes crypto_regime.json (machine-readable, for chaining into other skills) and crypto_regime.md (one-page report), and prints a one-line summary:
CRYPTO REGIME: NEUTRAL (score 68.4/100) — Mixed conditions observed; no strong regime conclusion
When presenting results, lead with the zone and posture, then explain the 1-2 components most responsible for the score using their signal strings. Flag any components reporting data_available: false and what that means for confidence.
The JSON composite can slot into an exposure-coach-style posture summary as
one descriptive crypto-market input. It must not independently authorize,
block, size, or execute a trade.
The script writes two artifacts to --output-dir and prints a one-line summary for workflow chaining:
crypto_regime.json — full machine-readable analysis: metadata, per-component results (score, signal, data_available, component-specific fields), and the composite block (score, zone, guidance, effective_weights).crypto_regime.md — one-page report: composite score with zone bar, posture line, per-component table (weight / score / signal), and confidence notes.CRYPTO REGIME: <ZONE> (score <N>/100) — <posture> plus warnings for any skipped components.references/VALIDATION.md — validation status, evidence boundary, and reproduction requirements.references/crypto_regime_methodology.md — full scoring rationale, every threshold table, the offline snapshot JSON schema, and the live data-source endpoint list.scripts/crypto_regime_analyzer.py — CLI orchestrator (entry point).scripts/data_client.py — CoinGecko/Binance fetchers, per-day cache, dominance history accumulator, offline loader.scripts/calculators/ — one module per component; pure functions, fully unit-tested.scripts/scorer.py — weighted composite with proportional weight redistribution.scripts/tests/ — tests covering every component, the scorer, sparse-data fail-closed behavior, and end-to-end bull/bear/degraded snapshots.data_available: false until 31 daily observations exist (weight is redistributed until then). Seed it faster via --input-json.Educational and process-improvement use only. This skill describes market conditions; it does not provide financial advice, signals, or buy/sell instructions. All decisions remain the user's responsibility.
references/VALIDATION.md (opens in a new tab)references/crypto_regime_methodology.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/calculators/__init__.py (opens in a new tab)scripts/calculators/alt_breadth_calculator.py (opens in a new tab)scripts/calculators/btc_trend_calculator.py (opens in a new tab)scripts/calculators/dominance_calculator.py (opens in a new tab)scripts/calculators/drawdown_vol_calculator.py (opens in a new tab)scripts/calculators/funding_calculator.py (opens in a new tab)scripts/calculators/momentum_thrust_calculator.py (opens in a new tab)scripts/coingecko_payloads.py (opens in a new tab)scripts/crypto_regime_analyzer.py (opens in a new tab)scripts/data_client.py (opens in a new tab)scripts/numeric_utils.py (opens in a new tab)scripts/report_generator.py (opens in a new tab)scripts/scorer.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_alt_breadth_calculator.py (opens in a new tab)scripts/tests/test_btc_trend_calculator.py (opens in a new tab)scripts/tests/test_coingecko_series_contract.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/tradermonty-claude-trading-skills:crypto-regime-analyzerfrom tradermonty-claude-trading-skills
tradermonty-claude-trading-skills@cascade-business-ops is listed by joshuarweaver/cascade-business-ops — review the source before installing
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin tradermonty-claude-trading-skills74 skills in this plugin
/backtest-expertExpert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development./breadth-chart-analystThis skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use this skill when the user provides breadth chart images for analysis, requests market breadth assessment, positioning strategy recommendations, or wants to understand medium-term strategic and short-term tactical market outlook based on breadth indicators. Also works WITHOUT chart images by fetching CSV data directly from public sources. All analysis and output are conducted in English./breakout-trade-plannerGenerate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat management, and Alpaca-compatible order templates (stop-limit bracket for pre-placement, limit bracket for post-confirmation). Use when user has VCP screener results and wants actionable trade plans with entry/stop/target levels and position sizing./canslim-screenerScreen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user requests CANSLIM stock screening, growth stock analysis, momentum stock identification, or wants to find stocks with strong earnings and price momentum following O'Neil's investment system./contrarian-setup-gateSynthesize the three Jason Shapiro contrarian-pipeline verdicts (COT crowding, news-reaction failure, weekly price-action confirmation) into one actionable setup_status via a fail-closed precedence state machine. Pure, offline synthesis -- no network, no API keys, no computation beyond validation and precedence./cot-contrarian-detectorDetect crowded speculative positioning in CFTC futures markets (COT report analysis) to find contrarian setups using Jason Shapiro's methodology. Screens large-speculator ("non-commercial") net positioning across 65 futures markets (indices, rates, FX, metals, energy, crypto) via the FMP Commitment of Traders API, computes a 3-year and 26-week COT Index per market, and classifies extremes as CROWDED_LONG / CROWDED_SHORT. Use when the user asks about COT report analysis, crowded positioning, "who is trapped", speculative positioning extremes, contrarian futures setups, or wants to run Jason Shapiro-style analysis. This skill automates crowding DETECTION only (step 1 of 5) — it does not generate trade signals by itself.Other plugins' skills for the same job