[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M748ZW10164MP93EETQEMR7W":3,"skill-same:01M748ZW10164MP93EETQEMR7W":204},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M748ZW10164MP93EETQEMR7W","theme-detector",null,"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.","mphinance\u002Falpha-skills","mphinance","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F217996678?v=4","01M71VQC89A6CMFACD2J1CJW6E","Michael H","01M71VQC9B4C0BJ7XXKT8RWRV9",32,"MIT","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: theme-detector\ndescription: 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.\n---\n\n# Theme Detector\n\n## Overview\n\nThis 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\u002FAccelerating\u002FTrending\u002FMature\u002FExhausting), and provides a confidence score combining quantitative data with narrative analysis.\n\n**3-Dimensional Scoring Model:**\n1. **Theme Heat** (0-100): Direction-neutral strength of the theme (momentum, volume, uptrend ratio, breadth)\n2. **Lifecycle Maturity**: Stage classification (Emerging \u002F Accelerating \u002F Trending \u002F Mature \u002F Exhausting) based on duration, extremity clustering, valuation, and ETF proliferation\n3. **Confidence** (Low \u002F Medium \u002F 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.\n\n**Key Features:**\n- Cross-sector theme detection using FINVIZ industry data\n- Direction-aware scoring (bullish and bearish themes)\n- Lifecycle maturity assessment to identify crowded vs. emerging trades\n- ETF proliferation scoring (more ETFs = more mature\u002Fcrowded theme)\n- Integration with uptrend-dashboard for 3-point evaluation\n- Dual-mode operation: FINVIZ Elite (fast) or public scraping (slower, limited)\n- WebSearch-based narrative confirmation for top themes\n\n---\n\n## When to Use This Skill\n\n**Explicit Triggers:**\n- \"What market themes are trending right now?\"\n- \"Which sectors are hot\u002Fcold?\"\n- \"Detect current market themes\"\n- \"What are the strongest bullish\u002Fbearish narratives?\"\n- \"Is AI\u002Fclean energy\u002Fdefense still a strong theme?\"\n- \"Where is sector rotation heading?\"\n- \"Show me thematic investing opportunities\"\n\n**Implicit Triggers:**\n- User wants to understand broad market narrative shifts\n- User is looking for thematic ETF or sector allocation ideas\n- User asks about crowded trades or late-cycle themes\n- User wants to know which themes are emerging vs. exhausted\n\n**When NOT to Use:**\n- Individual stock analysis (use us-stock-analysis instead)\n- Specific sector deep-dive with chart reading (use sector-analyst instead)\n- Portfolio rebalancing (use portfolio-manager instead)\n- Dividend\u002Fincome investing (use value-dividend-screener instead)\n\n---\n\n## Prerequisites\n\n**Required:**\n- Python 3.7+ with core dependencies:\n  ```bash\n  pip install requests beautifulsoup4 lxml pandas numpy yfinance\n  ```\n\n**Optional API Keys:**\n\nFINVIZ Elite (recommended for full industry coverage and speed):\n```bash\nexport FINVIZ_API_KEY=your_finviz_elite_api_key_here\n```\n\nFMP API (optional, for P\u002FE ratio valuation data):\n```bash\nexport FMP_API_KEY=your_fmp_api_key_here\n```\n\n**Optional Python packages:**\n- `finvizfinance` - Required for FINVIZ Elite mode\n- `PyYAML` - Required for `--themes-config` custom themes\n\nWithout FINVIZ Elite, the skill uses public FINVIZ scraping (limited to ~20 stocks per industry, slower rate limits).\n\n---\n\n## Workflow\n\n### Step 1: Verify Environment\n\nCheck that API keys are configured (see Prerequisites):\n\n```bash\n# Verify FINVIZ Elite API key (optional but recommended)\necho $FINVIZ_API_KEY\n\n# Verify FMP API key (optional)\necho $FMP_API_KEY\n```\n\n### Step 2: Execute Theme Detection Script\n\nRun the main detection script:\n\n```bash\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --output-dir reports\u002F\n```\n\n**Script Options:**\n```bash\n# Full run (public FINVIZ mode, no API key required)\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --output-dir reports\u002F\n\n# With FINVIZ Elite API key\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --finviz-api-key $FINVIZ_API_KEY \\\n  --output-dir reports\u002F\n\n# With FMP API key for enhanced stock data\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --fmp-api-key $FMP_API_KEY \\\n  --output-dir reports\u002F\n\n# Custom limits\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --max-themes 5 \\\n  --max-stocks-per-theme 10 \\\n  --output-dir reports\u002F\n\n# Explicit FINVIZ mode\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --finviz-mode public \\\n  --output-dir reports\u002F\n```\n\n**Expected Execution Time:**\n- FINVIZ Elite mode: ~2-3 minutes (14+ themes)\n- Public FINVIZ mode: ~5-8 minutes (rate-limited scraping)\n\n### Step 3: Read and Parse Detection Results\n\nThe script generates two output files:\n- `theme_detector_YYYY-MM-DD_HHMMSS.json` - Structured data for programmatic use\n- `theme_detector_YYYY-MM-DD_HHMMSS.md` - Human-readable report\n\nRead the JSON output to understand quantitative results:\n\n```bash\n# Find the latest report\nls -lt reports\u002Ftheme_detector_*.json | head -1\n\n# Read the JSON output\ncat reports\u002Ftheme_detector_YYYY-MM-DD_HHMMSS.json\n```\n\n### Step 4: Perform Narrative Confirmation via WebSearch\n\nFor the top 5 themes (by Theme Heat score), execute WebSearch queries to confirm narrative strength:\n\n**Search Pattern:**\n```\n\"[theme name] stocks market [current month] [current year]\"\n\"[theme name] sector momentum [current month] [current year]\"\n```\n\n**Evaluate narrative signals:**\n- **Strong narrative**: Multiple major outlets covering the theme, analyst upgrades, policy catalysts\n- **Moderate narrative**: Some coverage, mixed sentiment, no clear catalyst\n- **Weak narrative**: Little coverage, or predominantly contrarian\u002Fskeptical tone\n\nUpdate Confidence levels based on findings:\n- Quantitative High + Narrative Strong = **High** confidence\n- Quantitative High + Narrative Weak = **Medium** confidence (possible momentum divergence)\n- Quantitative Low + Narrative Strong = **Medium** confidence (narrative may lead price)\n- Quantitative Low + Narrative Weak = **Low** confidence\n\n### Step 5: Analyze Results and Provide Recommendations\n\nCross-reference detection results with knowledge bases:\n\n**Reference Documents to Consult:**\n1. `references\u002Fcross_sector_themes.md` - Theme definitions and constituent industries\n2. `references\u002Fthematic_etf_catalog.md` - ETF exposure options by theme\n3. `references\u002Ftheme_detection_methodology.md` - Scoring model details\n4. `references\u002Ffinviz_industry_codes.md` - Industry classification reference\n\n**Analysis Framework:**\n\nFor **Hot Bullish Themes** (Heat >= 70, Direction = Bullish):\n- Identify lifecycle stage (Emerging = opportunity, Mature\u002FExhausting = caution)\n- List top-performing industries within the theme\n- Recommend proxy ETFs for exposure\n- Flag if ETF proliferation is high (crowded trade warning)\n\nFor **Hot Bearish Themes** (Heat >= 70, Direction = Bearish):\n- Identify industries under pressure\n- Assess if bearish momentum is accelerating or decelerating\n- Recommend hedging strategies or sectors to avoid\n- Note potential mean-reversion opportunities if lifecycle is Mature\u002FExhausting\n\nFor **Emerging Themes** (Heat 40-69, Lifecycle = Emerging):\n- These may represent early rotation signals\n- Recommend monitoring with watchlist\n- Identify catalyst events that could accelerate the theme\n\nFor **Exhausted Themes** (Heat >= 60, Lifecycle = Exhausting):\n- Warn about crowded trade risk\n- High ETF count confirms excessive retail participation\n- Consider contrarian positioning or reducing exposure\n\n### Step 6: Generate Final Report\n\nPresent the final report to the user using the report template structure:\n\n```markdown\n# Theme Detection Report\n**Date:** YYYY-MM-DD\n**Mode:** FINVIZ Elite \u002F Public\n**Themes Analyzed:** N\n**Data Quality:** [note any limitations]\n\n## Theme Dashboard\n[Top themes table with Heat, Direction, Lifecycle, Confidence]\n\n## Bullish Themes Detail\n[Detailed analysis of bullish themes sorted by Heat]\n\n## Bearish Themes Detail\n[Detailed analysis of bearish themes sorted by Heat]\n\n## All Themes Summary\n[Complete theme ranking table]\n\n## Industry Rankings\n[Top performing and worst performing industries]\n\n## Sector Uptrend Ratios\n[Sector-level aggregation if uptrend data available]\n\n## Methodology Notes\n[Brief explanation of scoring model]\n```\n\nSave the report to `reports\u002F` directory.\n\n---\n\n## Output\n\nThe skill generates two output files in the `reports\u002F` directory:\n\n**JSON Output** (`theme_detector_YYYY-MM-DD_HHMMSS.json`):\n```json\n{\n  \"report_type\": \"theme_detector\",\n  \"generated_at\": \"2026-04-18 10:30:00\",\n  \"metadata\": {\n    \"generated_at\": \"2026-04-18 10:30:00\",\n    \"data_mode\": \"full\",\n    \"finviz_mode\": \"elite\",\n    \"fmp_available\": true,\n    \"max_themes\": 14,\n    \"max_stocks_per_theme\": 5,\n    \"data_sources\": {\n      \"finviz_industries\": 152,\n      \"yfinance_stocks\": 68,\n      \"etf_volume\": 24\n    }\n  },\n  \"summary\": {\n    \"total_themes\": 14,\n    \"bullish_count\": 8,\n    \"bearish_count\": 6,\n    \"top_bullish\": \"AI & Machine Learning\",\n    \"top_bearish\": \"Regional Banks\"\n  },\n  \"themes\": {\n    \"all\": [\n      {\n        \"name\": \"AI & Machine Learning\",\n        \"direction\": \"bullish\",\n        \"heat\": 85.3,\n        \"maturity\": 42.1,\n        \"stage\": \"Accelerating\",\n        \"confidence\": \"Medium\",\n        \"heat_label\": \"Hot\",\n        \"industries\": [\"Software - Infrastructure\", \"Semiconductors\"],\n        \"representative_stocks\": [{\"symbol\": \"NVDA\"}, {\"symbol\": \"MSFT\"}],\n        \"proxy_etfs\": [\"BOTZ\", \"ROBO\"],\n        \"theme_origin\": \"seed\"\n      }\n    ],\n    \"bullish\": [...],\n    \"bearish\": [...]\n  },\n  \"industry_rankings\": {\n    \"top\": [...],\n    \"bottom\": [...]\n  },\n  \"sector_uptrend\": {...},\n  \"data_quality\": {...}\n}\n```\n\n**Markdown Report** (`theme_detector_YYYY-MM-DD_HHMMSS.md`):\n- Theme Dashboard with sortable rankings\n- Bullish\u002FBearish theme detail sections\n- Industry performance rankings\n- Sector uptrend ratio summary\n- Methodology notes\n\n**Key Output Fields (per theme):**\n| Field | Description |\n|-------|-------------|\n| `heat` | 0-100 direction-neutral theme strength |\n| `direction` | `\"bullish\"` (LEAD) or `\"bearish\"` (LAG) |\n| `stage` | Emerging \u002F Accelerating \u002F Trending \u002F Mature \u002F Exhausting |\n| `confidence` | Low \u002F Medium \u002F High (script caps at Medium; WebSearch can elevate) |\n| `representative_stocks` | Top stocks for the theme (list of objects with `symbol` and metrics) |\n| `proxy_etfs` | Thematic ETF tickers (length = ETF count; higher = more crowded) |\n| `theme_origin` | `\"seed\"` (from YAML config) or `\"discovered\"` (auto-clustered) |\n\n---\n\n## Resources\n\n### Scripts Directory (`scripts\u002F`)\n\n**Main Scripts:**\n- `theme_detector.py` - Main orchestrator script\n  - Coordinates industry data collection, theme classification, and scoring\n  - Generates JSON + Markdown output\n  - Usage: `python3 theme_detector.py [options]`\n\n- `theme_classifier.py` - Maps industries to cross-sector themes\n  - Reads theme definitions from `cross_sector_themes.md`\n  - Calculates theme-level aggregated scores\n  - Determines direction (bullish\u002Fbearish) from constituent industries\n  - Display mapping: \"bullish\" → \"LEAD\", \"bearish\" → \"LAG\" (see report_generator.py::_direction_label())\n\n- `finviz_industry_scanner.py` - FINVIZ industry data collection\n  - Elite mode: CSV export with full stock data per industry\n  - Public mode: Web scraping with rate limiting\n  - Extracts: performance, volume, change%, avg volume, market cap\n\n- `calculators\u002Flifecycle_calculator.py` - Lifecycle maturity assessment\n  - Duration scoring, extremity clustering, valuation analysis\n  - ETF proliferation scoring from thematic_etf_catalog.md\n  - Stage classification: Emerging \u002F Accelerating \u002F Trending \u002F Mature \u002F Exhausting\n\n- `report_generator.py` - Report output generation\n  - Markdown report from template\n  - JSON structured output\n  - Theme dashboard formatting\n\n### References Directory (`references\u002F`)\n\n**Knowledge Bases:**\n- `cross_sector_themes.md` - Theme definitions with industries, ETFs, stocks, and matching criteria\n- `thematic_etf_catalog.md` - Comprehensive thematic ETF catalog with counts per theme\n- `finviz_industry_codes.md` - Complete FINVIZ industry-to-filter-code mapping\n- `theme_detection_methodology.md` - Technical documentation of the 3D scoring model\n\n### Assets Directory (`assets\u002F`)\n\n- `report_template.md` - Markdown template for report generation with placeholder format\n\n---\n\n## Important Notes\n\n### FINVIZ Mode Differences\n\n| Feature | Elite Mode | Public Mode |\n|---------|-----------|-------------|\n| Industry coverage | All ~145 industries | All ~145 industries |\n| Stocks per industry | Full universe | ~20 stocks (page 1) |\n| Rate limiting | 0.5s between requests | 2.0s between requests |\n| Data freshness | Real-time | 15-min delayed |\n| API key required | Yes ($39.50\u002Fmo) | No |\n| Execution time | ~2-3 minutes | ~5-8 minutes |\n\n### Direction Detection Logic\n\nTheme direction is determined by majority vote of constituent industries' relative rank:\n\n1. **Industry ranking**: All ~145 industries are ranked by multi-timeframe momentum score\n2. **Rank-based direction**: Industries in the top half of the ranked list are classified as \"bullish\"; bottom half as \"bearish\"\n3. **Theme majority vote**: `_majority_direction()` counts bullish vs. bearish industries within each theme; the majority wins\n\nDisplay mapping: \"bullish\" → **LEAD**, \"bearish\" → **LAG** (see `report_generator.py::_direction_label()`)\n\nA 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.\n\n### Known Limitations\n\n1. **Survivorship bias**: Only analyzes currently listed stocks and ETFs\n2. **Lag**: FINVIZ data may lag intraday moves by 15 minutes (public mode)\n3. **Theme boundaries**: Some stocks fit multiple themes; classification uses primary industry\n4. **ETF proliferation**: Catalog is static and may not capture very new ETFs\n5. **Narrative scoring**: WebSearch-based and inherently subjective\n6. **Public mode limitation**: ~20 stocks per industry may miss small-cap signals\n\n### Disclaimer\n\n**This analysis is for educational and informational purposes only.**\n- Not investment advice\n- Past thematic trends do not guarantee future performance\n- Theme detection identifies momentum, not fundamental value\n- Conduct your own research before making investment decisions\n\n---\n\n**Version:** 1.0\n**Last Updated:** 2026-02-16\n**API Requirements:** FINVIZ Elite (recommended) or public mode (free); FMP API optional\n**Execution Time:** ~2-8 minutes depending on mode\n**Output Formats:** JSON + Markdown\n**Themes Covered:** 14+ cross-sector themes\n","# Theme Detector\n\n## Overview\n\nThis 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\u002FAccelerating\u002FTrending\u002FMature\u002FExhausting), and provides a confidence score combining quantitative data with narrative analysis.\n\n**3-Dimensional Scoring Model:**\n1. **Theme Heat** (0-100): Direction-neutral strength of the theme (momentum, volume, uptrend ratio, breadth)\n2. **Lifecycle Maturity**: Stage classification (Emerging \u002F Accelerating \u002F Trending \u002F Mature \u002F Exhausting) based on duration, extremity clustering, valuation, and ETF proliferation\n3. **Confidence** (Low \u002F Medium \u002F 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.\n\n**Key Features:**\n- Cross-sector theme detection using FINVIZ industry data\n- Direction-aware scoring (bullish and bearish themes)\n- Lifecycle maturity assessment to identify crowded vs. emerging trades\n- ETF proliferation scoring (more ETFs = more mature\u002Fcrowded theme)\n- Integration with uptrend-dashboard for 3-point evaluation\n- Dual-mode operation: FINVIZ Elite (fast) or public scraping (slower, limited)\n- WebSearch-based narrative confirmation for top themes\n\n---\n\n## When to Use This Skill\n\n**Explicit Triggers:**\n- \"What market themes are trending right now?\"\n- \"Which sectors are hot\u002Fcold?\"\n- \"Detect current market themes\"\n- \"What are the strongest bullish\u002Fbearish narratives?\"\n- \"Is AI\u002Fclean energy\u002Fdefense still a strong theme?\"\n- \"Where is sector rotation heading?\"\n- \"Show me thematic investing opportunities\"\n\n**Implicit Triggers:**\n- User wants to understand broad market narrative shifts\n- User is looking for thematic ETF or sector allocation ideas\n- User asks about crowded trades or late-cycle themes\n- User wants to know which themes are emerging vs. exhausted\n\n**When NOT to Use:**\n- Individual stock analysis (use us-stock-analysis instead)\n- Specific sector deep-dive with chart reading (use sector-analyst instead)\n- Portfolio rebalancing (use portfolio-manager instead)\n- Dividend\u002Fincome investing (use value-dividend-screener instead)\n\n---\n\n## Prerequisites\n\n**Required:**\n- Python 3.7+ with core dependencies:\n  ```bash\n  pip install requests beautifulsoup4 lxml pandas numpy yfinance\n  ```\n\n**Optional API Keys:**\n\nFINVIZ Elite (recommended for full industry coverage and speed):\n```bash\nexport FINVIZ_API_KEY=your_finviz_elite_api_key_here\n```\n\nFMP API (optional, for P\u002FE ratio valuation data):\n```bash\nexport FMP_API_KEY=your_fmp_api_key_here\n```\n\n**Optional Python packages:**\n- `finvizfinance` - Required for FINVIZ Elite mode\n- `PyYAML` - Required for `--themes-config` custom themes\n\nWithout FINVIZ Elite, the skill uses public FINVIZ scraping (limited to ~20 stocks per industry, slower rate limits).\n\n---\n\n## Workflow\n\n### Step 1: Verify Environment\n\nCheck that API keys are configured (see Prerequisites):\n\n```bash\n# Verify FINVIZ Elite API key (optional but recommended)\necho $FINVIZ_API_KEY\n\n# Verify FMP API key (optional)\necho $FMP_API_KEY\n```\n\n### Step 2: Execute Theme Detection Script\n\nRun the main detection script:\n\n```bash\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --output-dir reports\u002F\n```\n\n**Script Options:**\n```bash\n# Full run (public FINVIZ mode, no API key required)\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --output-dir reports\u002F\n\n# With FINVIZ Elite API key\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --finviz-api-key $FINVIZ_API_KEY \\\n  --output-dir reports\u002F\n\n# With FMP API key for enhanced stock data\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --fmp-api-key $FMP_API_KEY \\\n  --output-dir reports\u002F\n\n# Custom limits\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --max-themes 5 \\\n  --max-stocks-per-theme 10 \\\n  --output-dir reports\u002F\n\n# Explicit FINVIZ mode\npython3 skills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py \\\n  --finviz-mode public \\\n  --output-dir reports\u002F\n```\n\n**Expected Execution Time:**\n- FINVIZ Elite mode: ~2-3 minutes (14+ themes)\n- Public FINVIZ mode: ~5-8 minutes (rate-limited scraping)\n\n### Step 3: Read and Parse Detection Results\n\nThe script generates two output files:\n- `theme_detector_YYYY-MM-DD_HHMMSS.json` - Structured data for programmatic use\n- `theme_detector_YYYY-MM-DD_HHMMSS.md` - Human-readable report\n\nRead the JSON output to understand quantitative results:\n\n```bash\n# Find the latest report\nls -lt reports\u002Ftheme_detector_*.json | head -1\n\n# Read the JSON output\ncat reports\u002Ftheme_detector_YYYY-MM-DD_HHMMSS.json\n```\n\n### Step 4: Perform Narrative Confirmation via WebSearch\n\nFor the top 5 themes (by Theme Heat score), execute WebSearch queries to confirm narrative strength:\n\n**Search Pattern:**\n```\n\"[theme name] stocks market [current month] [current year]\"\n\"[theme name] sector momentum [current month] [current year]\"\n```\n\n**Evaluate narrative signals:**\n- **Strong narrative**: Multiple major outlets covering the theme, analyst upgrades, policy catalysts\n- **Moderate narrative**: Some coverage, mixed sentiment, no clear catalyst\n- **Weak narrative**: Little coverage, or predominantly contrarian\u002Fskeptical tone\n\nUpdate Confidence levels based on findings:\n- Quantitative High + Narrative Strong = **High** confidence\n- Quantitative High + Narrative Weak = **Medium** confidence (possible momentum divergence)\n- Quantitative Low + Narrative Strong = **Medium** confidence (narrative may lead price)\n- Quantitative Low + Narrative Weak = **Low** confidence\n\n### Step 5: Analyze Results and Provide Recommendations\n\nCross-reference detection results with knowledge bases:\n\n**Reference Documents to Consult:**\n1. `references\u002Fcross_sector_themes.md` - Theme definitions and constituent industries\n2. `references\u002Fthematic_etf_catalog.md` - ETF exposure options by theme\n3. `references\u002Ftheme_detection_methodology.md` - Scoring model details\n4. `references\u002Ffinviz_industry_codes.md` - Industry classification reference\n\n**Analysis Framework:**\n\nFor **Hot Bullish Themes** (Heat >= 70, Direction = Bullish):\n- Identify lifecycle stage (Emerging = opportunity, Mature\u002FExhausting = caution)\n- List top-performing industries within the theme\n- Recommend proxy ETFs for exposure\n- Flag if ETF proliferation is high (crowded trade warning)\n\nFor **Hot Bearish Themes** (Heat >= 70, Direction = Bearish):\n- Identify industries under pressure\n- Assess if bearish momentum is accelerating or decelerating\n- Recommend hedging strategies or sectors to avoid\n- Note potential mean-reversion opportunities if lifecycle is Mature\u002FExhausting\n\nFor **Emerging Themes** (Heat 40-69, Lifecycle = Emerging):\n- These may represent early rotation signals\n- Recommend monitoring with watchlist\n- Identify catalyst events that could accelerate the theme\n\nFor **Exhausted Themes** (Heat >= 60, Lifecycle = Exhausting):\n- Warn about crowded trade risk\n- High ETF count confirms excessive retail participation\n- Consider contrarian positioning or reducing exposure\n\n### Step 6: Generate Final Report\n\nPresent the final report to the user using the report template structure:\n\n```markdown\n# Theme Detection Report\n**Date:** YYYY-MM-DD\n**Mode:** FINVIZ Elite \u002F Public\n**Themes Analyzed:** N\n**Data Quality:** [note any limitations]\n\n## Theme Dashboard\n[Top themes table with Heat, Direction, Lifecycle, Confidence]\n\n## Bullish Themes Detail\n[Detailed analysis of bullish themes sorted by Heat]\n\n## Bearish Themes Detail\n[Detailed analysis of bearish themes sorted by Heat]\n\n## All Themes Summary\n[Complete theme ranking table]\n\n## Industry Rankings\n[Top performing and worst performing industries]\n\n## Sector Uptrend Ratios\n[Sector-level aggregation if uptrend data available]\n\n## Methodology Notes\n[Brief explanation of scoring model]\n```\n\nSave the report to `reports\u002F` directory.\n\n---\n\n## Output\n\nThe skill generates two output files in the `reports\u002F` directory:\n\n**JSON Output** (`theme_detector_YYYY-MM-DD_HHMMSS.json`):\n```json\n{\n  \"report_type\": \"theme_detector\",\n  \"generated_at\": \"2026-04-18 10:30:00\",\n  \"metadata\": {\n    \"generated_at\": \"2026-04-18 10:30:00\",\n    \"data_mode\": \"full\",\n    \"finviz_mode\": \"elite\",\n    \"fmp_available\": true,\n    \"max_themes\": 14,\n    \"max_stocks_per_theme\": 5,\n    \"data_sources\": {\n      \"finviz_industries\": 152,\n      \"yfinance_stocks\": 68,\n      \"etf_volume\": 24\n    }\n  },\n  \"summary\": {\n    \"total_themes\": 14,\n    \"bullish_count\": 8,\n    \"bearish_count\": 6,\n    \"top_bullish\": \"AI & Machine Learning\",\n    \"top_bearish\": \"Regional Banks\"\n  },\n  \"themes\": {\n    \"all\": [\n      {\n        \"name\": \"AI & Machine Learning\",\n        \"direction\": \"bullish\",\n        \"heat\": 85.3,\n        \"maturity\": 42.1,\n        \"stage\": \"Accelerating\",\n        \"confidence\": \"Medium\",\n        \"heat_label\": \"Hot\",\n        \"industries\": [\"Software - Infrastructure\", \"Semiconductors\"],\n        \"representative_stocks\": [{\"symbol\": \"NVDA\"}, {\"symbol\": \"MSFT\"}],\n        \"proxy_etfs\": [\"BOTZ\", \"ROBO\"],\n        \"theme_origin\": \"seed\"\n      }\n    ],\n    \"bullish\": [...],\n    \"bearish\": [...]\n  },\n  \"industry_rankings\": {\n    \"top\": [...],\n    \"bottom\": [...]\n  },\n  \"sector_uptrend\": {...},\n  \"data_quality\": {...}\n}\n```\n\n**Markdown Report** (`theme_detector_YYYY-MM-DD_HHMMSS.md`):\n- Theme Dashboard with sortable rankings\n- Bullish\u002FBearish theme detail sections\n- Industry performance rankings\n- Sector uptrend ratio summary\n- Methodology notes\n\n**Key Output Fields (per theme):**\n| Field | Description |\n|-------|-------------|\n| `heat` | 0-100 direction-neutral theme strength |\n| `direction` | `\"bullish\"` (LEAD) or `\"bearish\"` (LAG) |\n| `stage` | Emerging \u002F Accelerating \u002F Trending \u002F Mature \u002F Exhausting |\n| `confidence` | Low \u002F Medium \u002F High (script caps at Medium; WebSearch can elevate) |\n| `representative_stocks` | Top stocks for the theme (list of objects with `symbol` and metrics) |\n| `proxy_etfs` | Thematic ETF tickers (length = ETF count; higher = more crowded) |\n| `theme_origin` | `\"seed\"` (from YAML config) or `\"discovered\"` (auto-clustered) |\n\n---\n\n## Resources\n\n### Scripts Directory (`scripts\u002F`)\n\n**Main Scripts:**\n- `theme_detector.py` - Main orchestrator script\n  - Coordinates industry data collection, theme classification, and scoring\n  - Generates JSON + Markdown output\n  - Usage: `python3 theme_detector.py [options]`\n\n- `theme_classifier.py` - Maps industries to cross-sector themes\n  - Reads theme definitions from `cross_sector_themes.md`\n  - Calculates theme-level aggregated scores\n  - Determines direction (bullish\u002Fbearish) from constituent industries\n  - Display mapping: \"bullish\" → \"LEAD\", \"bearish\" → \"LAG\" (see report_generator.py::_direction_label())\n\n- `finviz_industry_scanner.py` - FINVIZ industry data collection\n  - Elite mode: CSV export with full stock data per industry\n  - Public mode: Web scraping with rate limiting\n  - Extracts: performance, volume, change%, avg volume, market cap\n\n- `calculators\u002Flifecycle_calculator.py` - Lifecycle maturity assessment\n  - Duration scoring, extremity clustering, valuation analysis\n  - ETF proliferation scoring from thematic_etf_catalog.md\n  - Stage classification: Emerging \u002F Accelerating \u002F Trending \u002F Mature \u002F Exhausting\n\n- `report_generator.py` - Report output generation\n  - Markdown report from template\n  - JSON structured output\n  - Theme dashboard formatting\n\n### References Directory (`references\u002F`)\n\n**Knowledge Bases:**\n- `cross_sector_themes.md` - Theme definitions with industries, ETFs, stocks, and matching criteria\n- `thematic_etf_catalog.md` - Comprehensive thematic ETF catalog with counts per theme\n- `finviz_industry_codes.md` - Complete FINVIZ industry-to-filter-code mapping\n- `theme_detection_methodology.md` - Technical documentation of the 3D scoring model\n\n### Assets Directory (`assets\u002F`)\n\n- `report_template.md` - Markdown template for report generation with placeholder format\n\n---\n\n## Important Notes\n\n### FINVIZ Mode Differences\n\n| Feature | Elite Mode | Public Mode |\n|---------|-----------|-------------|\n| Industry coverage | All ~145 industries | All ~145 industries |\n| Stocks per industry | Full universe | ~20 stocks (page 1) |\n| Rate limiting | 0.5s between requests | 2.0s between requests |\n| Data freshness | Real-time | 15-min delayed |\n| API key required | Yes ($39.50\u002Fmo) | No |\n| Execution time | ~2-3 minutes | ~5-8 minutes |\n\n### Direction Detection Logic\n\nTheme direction is determined by majority vote of constituent industries' relative rank:\n\n1. **Industry ranking**: All ~145 industries are ranked by multi-timeframe momentum score\n2. **Rank-based direction**: Industries in the top half of the ranked list are classified as \"bullish\"; bottom half as \"bearish\"\n3. **Theme majority vote**: `_majority_direction()` counts bullish vs. bearish industries within each theme; the majority wins\n\nDisplay mapping: \"bullish\" → **LEAD**, \"bearish\" → **LAG** (see `report_generator.py::_direction_label()`)\n\nA 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.\n\n### Known Limitations\n\n1. **Survivorship bias**: Only analyzes currently listed stocks and ETFs\n2. **Lag**: FINVIZ data may lag intraday moves by 15 minutes (public mode)\n3. **Theme boundaries**: Some stocks fit multiple themes; classification uses primary industry\n4. **ETF proliferation**: Catalog is static and may not capture very new ETFs\n5. **Narrative scoring**: WebSearch-based and inherently subjective\n6. **Public mode limitation**: ~20 stocks per industry may miss small-cap signals\n\n### Disclaimer\n\n**This analysis is for educational and informational purposes only.**\n- Not investment advice\n- Past thematic trends do not guarantee future performance\n- Theme detection identifies momentum, not fundamental value\n- Conduct your own research before making investment decisions\n\n---\n\n**Version:** 1.0\n**Last Updated:** 2026-02-16\n**API Requirements:** FINVIZ Elite (recommended) or public mode (free); FMP API optional\n**Execution Time:** ~2-8 minutes depending on mode\n**Output Formats:** JSON + Markdown\n**Themes Covered:** 14+ cross-sector themes\n",{"name":5,"description":7},"main","78b6ee6816aca6e5660cc7f0382650e9e7687086","skills\u002Ftheme-detector",6,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills","https:\u002F\u002Fgithub.com\u002Fmphinance","https:\u002F\u002Fmphinance.com","2026-11-13 05:04:11",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add mphinance\u002Falpha-skills --skill theme-detector",{"tool":38,"command":39},"bunx","bunx skills add mphinance\u002Falpha-skills --skill theme-detector",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mphinance\u002Falpha-skills --skill theme-detector","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002FSKILL.md",true,[46,52,58,62,66,70,74,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"assets\u002Freport_template.md","ASSET","资产文件",4559,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fassets\u002Freport_template.md",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"README.md","REFERENCE","参考文档",14659,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002FREADME.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fcross_sector_themes.md",11323,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Freferences\u002Fcross_sector_themes.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Ffinviz_industry_codes.md",17828,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Freferences\u002Ffinviz_industry_codes.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fthematic_etf_catalog.md",12245,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Freferences\u002Fthematic_etf_catalog.md",{"path":71,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Ftheme_detection_methodology.md",13599,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Freferences\u002Ftheme_detection_methodology.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fcalculators\u002F__init__.py","SCRIPT","脚本",37,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fcalculators\u002F__init__.py",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fcalculators\u002Fheat_calculator.py",4535,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fcalculators\u002Fheat_calculator.py",{"path":85,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fcalculators\u002Findustry_ranker.py",2596,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fcalculators\u002Findustry_ranker.py",{"path":89,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fcalculators\u002Flifecycle_calculator.py",5210,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fcalculators\u002Flifecycle_calculator.py",{"path":93,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Fcalculators\u002Ftheme_classifier.py",12260,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fcalculators\u002Ftheme_classifier.py",{"path":97,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Fcalculators\u002Ftheme_discoverer.py",9618,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fcalculators\u002Ftheme_discoverer.py",{"path":101,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fconfig_loader.py",4394,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fconfig_loader.py",{"path":105,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fdefault_theme_config.py",10594,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fdefault_theme_config.py",{"path":109,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Fetf_scanner.py",25448,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fetf_scanner.py",{"path":113,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Ffinviz_performance_client.py",6837,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ffinviz_performance_client.py",{"path":117,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Freport_generator.py",22138,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Freport_generator.py",{"path":121,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Frepresentative_stock_selector.py",22793,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Frepresentative_stock_selector.py",{"path":125,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":126,"sourceHtmlUrl":127},"scripts\u002Fscorer.py",2695,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fscorer.py",{"path":129,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":130,"sourceHtmlUrl":131},"scripts\u002Ftests\u002Fconftest.py",298,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Fconftest.py",{"path":133,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":134,"sourceHtmlUrl":135},"scripts\u002Ftests\u002FREADME.md",653,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002FREADME.md",{"path":137,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":138,"sourceHtmlUrl":139},"scripts\u002Ftests\u002Ftest_config_loader.py",7864,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_config_loader.py",{"path":141,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":142,"sourceHtmlUrl":143},"scripts\u002Ftests\u002Ftest_detect_divergence.py",3722,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_detect_divergence.py",{"path":145,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":146,"sourceHtmlUrl":147},"scripts\u002Ftests\u002Ftest_etf_scanner.py",32097,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_etf_scanner.py",{"path":149,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":150,"sourceHtmlUrl":151},"scripts\u002Ftests\u002Ftest_finviz_performance_client.py",5302,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_finviz_performance_client.py",{"path":153,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":154,"sourceHtmlUrl":155},"scripts\u002Ftests\u002Ftest_heat_calculator.py",9409,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_heat_calculator.py",{"path":157,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":158,"sourceHtmlUrl":159},"scripts\u002Ftests\u002Ftest_industry_ranker.py",9992,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_industry_ranker.py",{"path":161,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":162,"sourceHtmlUrl":163},"scripts\u002Ftests\u002Ftest_lifecycle_calculator.py",11922,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_lifecycle_calculator.py",{"path":165,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":166,"sourceHtmlUrl":167},"scripts\u002Ftests\u002Ftest_report_generator.py",24401,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_report_generator.py",{"path":169,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":170,"sourceHtmlUrl":171},"scripts\u002Ftests\u002Ftest_representative_stock_selector.py",40806,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_representative_stock_selector.py",{"path":173,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":174,"sourceHtmlUrl":175},"scripts\u002Ftests\u002Ftest_scorer.py",7404,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_scorer.py",{"path":177,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":178,"sourceHtmlUrl":179},"scripts\u002Ftests\u002Ftest_theme_classifier.py",25522,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_theme_classifier.py",{"path":181,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":182,"sourceHtmlUrl":183},"scripts\u002Ftests\u002Ftest_theme_detector_e2e.py",19238,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_theme_detector_e2e.py",{"path":185,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":186,"sourceHtmlUrl":187},"scripts\u002Ftests\u002Ftest_theme_discoverer.py",19422,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_theme_discoverer.py",{"path":189,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":190,"sourceHtmlUrl":191},"scripts\u002Ftests\u002Ftest_uptrend_client.py",3576,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftests\u002Ftest_uptrend_client.py",{"path":193,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":194,"sourceHtmlUrl":195},"scripts\u002Ftheme_detector.py",34343,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Ftheme_detector.py",{"path":197,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":198,"sourceHtmlUrl":199},"scripts\u002Fthemes.yaml",5219,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fthemes.yaml",{"path":201,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":202,"sourceHtmlUrl":203},"scripts\u002Fuptrend_client.py",7692,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftheme-detector\u002Fscripts\u002Fuptrend_client.py",[205,213,218,225,232,239],{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":212},"01M7BANC8ZXMVWWHSY3E31AAC3","order-lifecycle-safety","Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Forder-lifecycle-safety\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":214,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":217,"publishedAt":212},"01M7BAMZ37XP7XM8YDXWWSX0T9","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fquant-skills\u002Fskills\u002Forder-lifecycle-safety\u002FSKILL.md",[],[],{"skillNo":219,"name":220,"nameZh":6,"description":221,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":222,"categories":223,"keywords":224,"publishedAt":19},"01M74928K9ZC74YQ1GMYB4N2Q0","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[],[],{"skillNo":226,"name":227,"nameZh":6,"description":228,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":229,"categories":230,"keywords":231,"publishedAt":19},"01M749259PAEA22A891D0EJTKK","wireframe-sketch","A hand-drawn wireframe exploration — graph-paper background, marker \u002F\npencil tone, multiple tab labels for variants, sticky-note annotations,\nscribbled chart placeholders, hatched fills. Reads like a designer's\nwhiteboard before any pixels are committed. Use when the brief asks for\n\"wireframe\", \"sketch wireframe\", \"hand-drawn\", \"lo-fi\", \"whiteboard\",\n\"草稿\", or \"手绘原型\".","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwireframe-sketch\u002FSKILL.md",[],[],{"skillNo":233,"name":234,"nameZh":6,"description":235,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":236,"categories":237,"keywords":238,"publishedAt":19},"01M74920ZWJS5Q1JRVJ8TSTQ5A","weekly-update","Single-file horizontal-swipe slide deck for a weekly team update —\nshipped, in flight, blocked, metrics, asks. 6–8 slides. Use when the\nbrief mentions \"weekly update\", \"team update slides\", \"weekly status\",\n\"周报演示\".","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-update\u002FSKILL.md",[],[],{"skillNo":240,"name":241,"nameZh":6,"description":242,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":243,"categories":244,"keywords":245,"publishedAt":19},"01M7491YFRHYFV5QPS0MJ3DSNP","webull-openapi","Trade stocks, options, futures, crypto, and event contracts on Webull. Query real-time and historical market data. Manage accounts and positions. Supports US, HK, JP, SG, TH, MY, UK, MX, BR, EU, ZA, and AU regions with configurable risk controls.","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebull-openapi\u002FSKILL.md",[],[]]