К основному содержанию
скилл CX Codex

crypto-regime-analyzer — скилл для Claude Code: оценка режима

Считает композитный балл 0–100 по шести компонентам крипторынка и выдаёт рекомендацию по позе. Без ключей API.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add tradermonty/claude-trading-skills --skill crypto-regime-analyzer -a claude-code
Открыть на GitHub

Что делает crypto-regime-analyzer

Скилл собирает данные с публичного API CoinGecko и фьючерсного эндпоинта Binance, считает шесть компонентов и складывает их в один балл от 0 до 100. Сто — это risk-on: широкое участие, живой тренд, вменяемое плечо. Ноль — risk-off. На выходе два файла: crypto_regime.json для передачи в другие скиллы и crypto_regime.md — отчёт на страницу.

Веса распределены так: тренд BTC — 25%, широта участия альтов — 20%, доминация BTC, фандинг и позиция по просадке — по 15%, импульс — 10%. Если компонент не собрался, его вес пропорционально разносится по остальным. Для живого режима нужен Python 3.9+ с requests и доступ к api.coingecko.com и fapi.binance.com; офлайн-режим обходится стандартной библиотекой и читает готовый снапшот через --input-json.

Первый запуск за день идёт 2–4 минуты при --top-n 20 — бесплатный тариф CoinGecko тормозит запросы. Повторные запуски в тот же день берутся из кэша. Доминацию CoinGecko отдаёт только текущую, поэтому клиент копит по одному наблюдению в день: пока их не наберётся 31, компонент доминации помечается data_available: false, а вес уходит другим. Это стоит учитывать, если ждёте полный балл с первого прогона.

Какие задачи решает

  • понять, risk-on сейчас на крипторынке или risk-off
  • оценить, насколько широко участвуют альты, до отбора монет
  • проверить, не перегрет ли фандинг по перпетуалам
  • получить позу для крипто-части портфеля перед скринингом монет
  • сделать ежедневную проверку режима крипторынка

Примеры запросов агенту

  • Прогони crypto-regime-analyzer и скажи, risk-on сейчас или risk-off
  • Какой режим у крипторынка по crypto-regime-analyzer?
  • Считай режим крипты офлайн из snapshot.json

Как установить crypto-regime-analyzer

1Через Skills CLI (Vercel)

npx skills add tradermonty/claude-trading-skills --skill crypto-regime-analyzer -a claude-code

2Вручную: положить файлы

~/.claude/skills/crypto-regime-analyzer/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/crypto-regime-analyzer/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора73

ibd-distribution-day-monitor Считает Distribution Days по QQQ и SPY, оценивает риск рынка и подсказывает, какую долю TQQQ или QQQ держать. Нужен для разбора после закрытия торгов. CX Codex +1 3 000установок trading-skills-navigator Подбирает подходящие воркфлоу и скиллы для трейдинга по вашему запросу. Помогает понять, с чего начать работу и какие цепочки запустятся без платных API-ключей. CX Codex +1 3 000установок trade-performance-coach Разбирает закрытые сделки, частичные выходы и месячные сводки по правилам, риску и качеству исполнения. Нужен для пост-трейд разбора. CX Codex +1 2 900установок parabolic-short-trade-planner Скилл ищет акции США с признаками истощения параболического роста и собирает условные предрыночные планы шорта. Ордера не отправляет — только JSON и Markdown для ручной проверки. CX Codex +1 3 000установок weekly-performance-digest Считает недельную статистику по закрытым торговым тезисам trader-memory-core: винрейт, R-кратность, матожидание и MAE/MFE. Выдаёт отчёт в Markdown и JSON без внешних API. CX Codex +1 2 700установок drawdown-circuit-breaker Скилл читает журнал сделок trader-memory-core и решает, можно ли сегодня открывать новые позиции: дневной лимит убытка, серия лоссов, недельная и месячная просадка. CX Codex +1 2 700установок pre-trade-discipline-gate Проверяет чек-лист перед ручным входом в сделку и блокирует входы без плана, с превышением риска или в период отката. CX Codex +1 2 700установок stockbee-momentum-burst-screener Находит акции США под краткосрочные импульсные сетапы Pradeep Bonde по дневному пробою, объёму и сужению базы. Пригодится трейдерам для отбора бумаг на свинги от 3 до 5 дней. CX Codex +1 2 700установок

Похожие

crypto-ta-analyzer dkyazzentwatwa Считает индикаторы по свечным данным крипты или рынка и показывает, где сигналы совпадают, а где спорят. CX Codex +1 1 600установок tracking-crypto-prices Jeremy Longshore Скилл тянет курсы криптовалют с бирж, отдаёт историю за период и следит за вотчлистами. Пригодится, когда агенту нужны цены для портфеля или расчётов. CX Codex +1 343установок crypto-market-rank binance-web3-team Скилл отдаёт агенту готовые рейтинги крипторынка: тренды и топ-поиск, соцшум с тональностью, приток умных денег, мемкоины Pulse и лидерборд трейдеров по PnL. CX Codex +1 9 200установок crypto-report aahl Тянет AI-отчёт по монете с Binance и свежие новости блокчейна прямо в сессию агента. Пригодится, когда нужен срез рынка без похода в браузер. CX Codex +1 3 300установок binance-onchain-copy-trader binance Каркас для сборки ончейн-стратегий копитрейдинга через Binance Agentic Wallet. Связывает мониторинг адресов, проверку токенов и выставление ордеров в единый конвейер. CX Codex +1 1 000установок crypto-com-app Crypto.com Скилл запускает спотовую торговлю криптой и обмен через Crypto.com APP API. Помогает проверить баланс кошельков, запросить котировки и управлять фиатными операциями прямо в терминале. CX Codex +1 1 400установок

Рядом в теме «Финансы и бизнес»

Всё по теме «Финансы и бизнес» →

Вопросы о crypto-regime-analyzer

Как установить crypto-regime-analyzer в Claude?

Выполните npx skills add tradermonty/claude-trading-skills --skill crypto-regime-analyzer -a claude-code. Скилл встанет в ~/.claude/skills/crypto-regime-analyzer/SKILL.md.

Что делает crypto-regime-analyzer?

Считает композитный балл 0–100 по шести компонентам крипторынка и выдаёт зону с рекомендацией по позе. Пишет crypto_regime.json и crypto_regime.md.

Нужен ли ключ API?

Нет. Скилл берёт данные с публичного API CoinGecko и публичного фьючерсного эндпоинта Binance. Для живого режима нужен Python 3.9+ с requests.

Исходный текст

SKILL.md · MIT
---
name: crypto-regime-analyzer
description: Quantifies crypto market regime health using free, keyless public data (CoinGecko + Binance funding). Generates a 0-100 composite score across 6 components (100 = risk-on) with a posture recommendation. No API key required. Use when user asks about crypto market conditions, whether it's alt season, BTC dominance, crypto risk-on vs risk-off, funding rates, or whether crypto exposure should be increased or reduced.
---

# Crypto Regime Analyzer Skill

## Purpose

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.

## When to Use This Skill

- User asks "Is crypto risk-on or risk-off right now?" or "How healthy is the crypto market?"
- User asks "Is it alt season?" or about BTC dominance direction
- User asks whether funding rates are overheated
- User wants an exposure posture for a crypto sleeve before screening individual coins
- User wants a daily crypto regime check alongside the equity `market-regime-daily` workflow

## What This Skill Does NOT Do

- No coin picks, no buy/sell signals, no price targets
- No execution or portfolio changes — regime description only
- Human decision gates remain central, consistent with the project vision

## Prerequisites

- **Python 3.9+** with `requests` (live mode only; offline mode is stdlib-only)
- **Internet access** to `api.coingecko.com` and `fapi.binance.com` (live mode)
- **No API keys required**

## Component Model

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

### Regime Zones

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

---

## Execution Workflow

### Phase 1: Run the Analysis Script

**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):

```bash
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):

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

### Phase 2: Interpret the Output

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.

### Phase 3 (optional): Feed Downstream

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.

## Output

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.
- Console: `CRYPTO REGIME: <ZONE> (score <N>/100) — <posture>` plus warnings for any skipped components.

## Resources

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

## Known Limitations

- **Dominance history accumulates locally.** CoinGecko's free tier only exposes *current* dominance, so the client stores one observation per run-day in the cache dir. The dominance component reports `data_available: false` until 31 daily observations exist (weight is redistributed until then). Seed it faster via `--input-json`.
- **Funding is best-effort.** If Binance's endpoint is unreachable (geo-restrictions, outage), the component is skipped gracefully.
- **Universe is top-N by market cap** with stablecoins and wrapped/staked assets excluded; it is not a fixed index, so composition drifts with the market.
- Thresholds are heuristic and documented in the methodology reference; they are conservative defaults, not backtested optima.

## Disclaimer

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.

© tradermonty · MIT · tradermonty/claude-trading-skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой