Command Palette

Search for a command to run...

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

theme-detector

БесплатноЗапускает вложенные скриптыНе проверен

Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic…

tradermontyот tradermonty★ 9 343 звезды на GitHub

Об этом скилле

Theme Detector

Overview

This skill detects and ranks trending market themes by analyzing cross-sector momentum, volume, and breadth signals. It identifies both bullish (upward momentum) and bearish (downward pressure) themes, assesses lifecycle maturity (Emerging/Accelerating/Trending/Mature/Exhausting), and provides a confidence score combining quantitative data with narrative analysis.

3-Dimensional Scoring Model:

  1. Theme Heat (0-100): Direction-neutral strength of the theme (momentum, volume, uptrend ratio, breadth)
  2. Lifecycle Maturity: Stage classification (Emerging / Accelerating / Trending / Mature / Exhausting) based on duration, extremity clustering, valuation, and ETF proliferation
  3. Confidence (Low / Medium / High): Reliability of the detection, combining quantitative breadth with narrative confirmation. Script output is capped at Medium; Claude's WebSearch narrative confirmation step can elevate to High.
  4. Stock Leadership: Optional daily scan-hit evidence from 5D+20%, EP9M, range expansion, new highs, and high-RS stocks. When supplied, this is blended into Theme Heat v2; when absent, it lowers confidence coverage but does not force leadership to zero.
  5. Theme Match Quality: Specificity of the theme match from industry participation, explicit stock-basket hits, proxy ETF confirmation, and optional offline narrative scores. This is evidence quality, not a trade recommendation.

Key Features:

  • Cross-sector theme detection using FINVIZ industry data
  • Direction-aware scoring (bullish and bearish themes)
  • Lifecycle maturity assessment to identify crowded vs. emerging trades
  • ETF proliferation scoring (more ETFs = more mature/crowded theme)
  • Integration with uptrend-dashboard for 3-point evaluation
  • Stock-level leadership evidence via --scan-hits
  • Theme match quality via explicit stock baskets and proxy ETF confirmation
  • Leader candidate evidence ranked by abnormal move/volume/range/RS metrics, with market cap shown only as a risk bucket
  • Theme history and acceleration metrics via --history-file
  • Dual-mode operation: FINVIZ Elite (fast) or public scraping (slower, limited)
  • WebSearch-based narrative confirmation for top themes

For dynamic representative-stock selection from FINVIZ Elite, request Ticker, Market Cap, Change and Volume (c=1,6,66,67). Elite Market Cap is in millions and is reported in dollars. Volume now contributes to the existing 40% cap / 30% directional-change / 30% volume rank score, so representative order can change. Missing or unusable Volume is warned about and its weight is re-normalized over the remaining factors. These weights are separate from Theme Heat and stock-leadership scoring. See the methodology reference for a synthetic before/after example.

When to Use This Skill

Explicit Triggers:

  • "What market themes are trending right now?"
  • "Which sectors are hot/cold?"
  • "Detect current market themes"
  • "What are the strongest bullish/bearish narratives?"
  • "Is AI/clean energy/defense still a strong theme?"
  • "Where is sector rotation heading?"
  • "Show me thematic investing opportunities"

Implicit Triggers:

  • User wants to understand broad market narrative shifts
  • User is looking for thematic ETF or sector allocation ideas
  • User asks about crowded trades or late-cycle themes
  • User wants to know which themes are emerging vs. exhausted

When NOT to Use:

  • Individual stock analysis (use us-stock-analysis instead)
  • Specific sector deep-dive with chart reading (use sector-analyst instead)
  • Portfolio rebalancing (use portfolio-manager instead)
  • Dividend/income investing (use value-dividend-screener instead)

Prerequisites

Required:

  • Python 3.9+ for core/Elite execution; public FINVIZ requires Python 3.10+ and finvizfinance>=1.5.0.
    pip install -r skills/theme-detector/requirements.txt
    

Cron / mixed-Python fallback: If the active python3 is older than 3.10, or a newer Hermes venv lacks the data-science dependencies, run the detector through uv with an explicit modern interpreter and temporary dependencies instead of editing the environment mid-cron:

uv run --python 3.12 \
  --with requests --with beautifulsoup4 --with lxml \
  --with pandas --with numpy --with yfinance \
  --with 'finvizfinance>=1.5.0' --with PyYAML \
  python skills/theme-detector/scripts/theme_detector.py \
  --finviz-api-key "$FINVIZ_API_KEY" \
  --fmp-api-key "$FMP_API_KEY" \
  --output-dir reports/

Use this as a setup workaround, not as evidence that the detector is broken; still report FINVIZ/FMP/API-data caveats separately.

Optional API Keys:

FINVIZ Elite (recommended for full industry coverage and speed):

export FINVIZ_API_KEY=your_finviz_elite_api_key_here

FMP API (optional, for P/E ratio valuation data):

export FMP_API_KEY=your_fmp_api_key_here

The generated requirements retain core dependencies and the shared calendar pin. `finvizfinan

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

Установить theme-detector в Claude Code и Claude Desktop

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

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

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

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

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

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

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

assets/report_template.mdreferences/cross_sector_themes.mdreferences/finviz_industry_codes.mdreferences/thematic_etf_catalog.mdreferences/theme_detection_methodology.mdrequirements.txtscripts/_market_calendar.pyscripts/calculators/__init__.pyscripts/calculators/heat_calculator.pyscripts/calculators/industry_ranker.pyscripts/calculators/lifecycle_calculator.pyscripts/calculators/theme_classifier.pyscripts/calculators/theme_discoverer.pyscripts/config_loader.pyscripts/default_theme_config.pyscripts/etf_scanner.pyscripts/finviz_performance_client.pyscripts/fmp_adapter.pyscripts/fmp_client.pyscripts/leadership.pyscripts/report_generator.pyscripts/representative_stock_selector.pyscripts/scorer.pyscripts/theme_detector.pyscripts/theme_history.pyscripts/theme_matcher.pyscripts/themes.yamlscripts/uptrend_client.py

FAQ

Что делает скилл theme-detector?

Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic investing, what themes are hot or cold, or wants to identify bullish and bearish market narratives with lifecycle analysis.

Как установить скилл theme-detector?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл theme-detector запускает скрипты?

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

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

Сравнить theme-detector с