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.
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:
Theme Heat (0-100): Direction-neutral strength of the theme (momentum, volume, uptrend ratio, breadth)
Lifecycle Maturity: Stage classification (Emerging / Accelerating / Trending / Mature / Exhausting) based on duration, extremity clustering, valuation, and ETF proliferation
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.
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
Dual-mode operation: FINVIZ Elite (fast) or public scraping (slower, limited)
WebSearch-based narrative confirmation for top themes
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
# Check for FINVIZ Elite API key (optional but recommended)
echo $FINVIZ_API_KEY
# Check for FMP API key (optional, used for valuation metrics)
echo $FMP_API_KEY
Requirements:
Python 3.7+ with requests, beautifulsoup4, lxml, pandas, numpy, yfinance
FINVIZ Elite API key (recommended for full industry coverage and speed)
FMP API key (optional, for P/E ratio valuation data)
Without FINVIZ Elite, the skill uses public FINVIZ scraping (limited to ~20 stocks per industry, slower rate limits)
theme_detection_methodology.md - Technical documentation of the 3D scoring model
Assets Directory (assets/)
report_template.md - Markdown template for report generation with placeholder format
Important Notes
FINVIZ Mode Differences
Feature
Elite Mode
Public Mode
Industry coverage
All ~145 industries
All ~145 industries
Stocks per industry
Full universe
~20 stocks (page 1)
Rate limiting
0.5s between requests
2.0s between requests
Data freshness
Real-time
15-min delayed
API key required
Yes ($39.50/mo)
No
Execution time
~2-3 minutes
~5-8 minutes
Direction Detection Logic
Theme direction is determined by majority vote of constituent industries' relative rank:
Industry ranking: All ~145 industries are ranked by multi-timeframe momentum score
Rank-based direction: Industries in the top half of the ranked list are classified as "bullish"; bottom half as "bearish"
Theme majority vote: _majority_direction() counts bullish vs. bearish industries within each theme; the majority wins
Display mapping: "bullish" → LEAD, "bearish" → LAG (see report_generator.py::_direction_label())
A LEAD theme indicates relative outperformance of its constituent industries. A LAG theme may still have positive absolute returns — it indicates relative underperformance, not a short signal.
Known Limitations
Survivorship bias: Only analyzes currently listed stocks and ETFs
Lag: FINVIZ data may lag intraday moves by 15 minutes (public mode)
Theme boundaries: Some stocks fit multiple themes; classification uses primary industry
ETF proliferation: Catalog is static and may not capture very new ETFs
Narrative scoring: WebSearch-based and inherently subjective
Public mode limitation: ~20 stocks per industry may miss small-cap signals
Disclaimer
This analysis is for educational and informational purposes only.
Not investment advice
Past thematic trends do not guarantee future performance
Theme detection identifies momentum, not fundamental value
Conduct your own research before making investment decisions
Version: 1.0
Last Updated: 2026-02-16
API Requirements: FINVIZ Elite (recommended) or public mode (free); FMP API optional
Execution Time: ~2-8 minutes depending on mode
Output Formats: JSON + Markdown
Themes Covered: 14+ cross-sector themes