Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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_KEY environment 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

Полный SKILL.md на GitHub

Установить exposure-coach в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/exposure_framework.mdreferences/regime_exposure_map.mdrequirements.txtscripts/calculate_exposure.pyscripts/evaluation_coverage.pyscripts/provenance_contract.pyscripts/sector_contract.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить exposure-coach с