exposure-coach
БесплатноЗапускает вложенные скриптыНе проверенGenerate a one-page Market Posture summary with net exposure ceiling, growth-vs-value bias, participation breadth, and new-entry-allowed vs cash-priority…
от tradermonty★ 9 343 звезды на GitHubОб этом скилле
Exposure Coach
Overview
Exposure Coach synthesizes outputs from market-breadth-analyzer, uptrend-analyzer, macro-regime-detector, market-top-detector, ftd-detector, theme-detector, sector-analyst, and institutional-flow-tracker into a unified control-plane decision. The skill answers the solo trader's core question: "How much capital should I commit to equities right now?" before any individual stock analysis begins.
When to Use
- Before initiating any new stock positions to determine appropriate capital commitment
- At the start of each trading week to calibrate portfolio exposure
- When multiple market signals conflict and a unified posture is needed
- After significant macro or market events to reassess exposure ceiling
- When transitioning between market regimes (broadening, concentration, contraction)
Prerequisites
- Python 3.9+
- FMP API key (set
FMP_API_KEYenvironment variable) for institutional-flow-tracker data - Input JSON files from upstream skills (see Workflow Step 1)
- Standard library +
argparse,json,datetime
Workflow
Step 1: Gather Upstream Skill Outputs
Collect the most recent JSON outputs from integrated skills. Each file provides a specific signal dimension:
| Skill | Output File Pattern | Signal Provided |
|---|---|---|
| market-breadth-analyzer | breadth_*.json |
Advance/decline ratios, new highs/lows |
| uptrend-analyzer | uptrend_*.json |
Uptrend participation percentage |
| macro-regime-detector | regime_*.json |
Current regime (Concentration, Broadening, etc.) |
| market-top-detector | top_risk_*.json |
Distribution day count, top probability score |
| ftd-detector | ftd_*.json |
Follow-Through Day quality (market bottom confirmation) |
| theme-detector | theme_detector_*.json or theme_*.json |
Active investment themes and rotation |
| sector-analyst | sector_rotation_*.json |
Sector uptrend ratios and trend direction |
| institutional-flow-tracker | institutional_*.json |
Net institutional buying/selling |
Step 2: Run Exposure Scoring Engine
Execute the exposure scoring script with paths to upstream outputs:
python3 skills/exposure-coach/scripts/calculate_exposure.py \
--breadth reports/breadth_latest.json \
--uptrend reports/uptrend_latest.json \
--regime reports/regime_latest.json \
--top-risk reports/top_risk_latest.json \
--ftd reports/ftd_latest.json \
--theme reports/theme_latest.json \
--sector reports/sector_latest.json \
--institutional reports/institutional_latest.json \
--output-dir reports/
The script accepts partial inputs; missing files reduce confidence but do not block execution.
When an input declares evaluation_coverage, require valid schema 1.0 counts and
verdict: complete. Partial, not-evaluable or malformed coverage is excluded from
scoring, with a stderr warning; never restore its score or bias manually.
Legacy inputs without the block remain supported without a coverage guarantee.
Canonical macro-regime reports must include nested regime.confidence and
composite.data_quality with valid integer component counts. Missing or malformed
availability metadata, very_low confidence, and zero usable components are
treated as missing critical input. They do not contribute a regime score or bias,
and the normal missing-input haircut and confidence cap apply. Never override this
degradation by manually copying the report's regime label into the exposure decision.
Theme input contract: Consume canonical report_type: theme_detector reports
from themes.all once; ignore duplicate sorted groups. Require finite numeric
non-boolean heat in [0,100], bullish/bearish direction, and data_quality with
ok/warning status and string-list flags. The consumer maps to
round(50 + mean(signed_heat)/2) (bullish positive, bearish negative; nearest
integer, ties to even). This is an uncalibrated integration heuristic, not a
forecast or freshness guarantee. Legacy numeric theme_score and recognized
theme_strength labels remain supported; see references/exposure_framework.md.
Sector input contract: Pass the unchanged JSON from
analyze_sector_rotation.py --json --save to --sector. Require all 11 known
sectors exactly once in ranking, finite non-boolean ratio in [0,1], a slope
that is null or in [-1,1], and a string trend label; a null slope or a label that
disagrees with the slope gets no adjustment and a warning. Require
trends counts and sector lists to match those rows, plus valid meta freshness
metadata or unknown freshness. Reject the whole input on invalid required data;
do not repair it by inserting legacy fields.
Use the consumer-owned sector_uptrend_health_v1 mapping: apply Uptrend Analyzer's
absolute ratio bands, add +5 for Up with positive slope, -5 for Down with
negative slope and 0 otherwise, clamp each
unrounded value to [0,100], then average all 11 sectors equally and round once
(nearest integer, ties t
Установить exposure-coach в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл exposure-coach?
Generate a one-page Market Posture summary with net exposure ceiling, growth-vs-value bias, participation breadth, and new-entry-allowed vs cash-priority recommendation by integrating signals from breadth, regime, and flow analysis skills.
Как установить скилл exposure-coach?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл exposure-coach запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic