All skills
tradermonty avatar

/theme-detector

@9bd11b7

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.

Use this Skill: https://skilld.dev/gh/tradermonty/claude-trading-skills/theme-detector

This session only. Nothing lands on disk.

assetsreport_template.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Theme Detection Report

Date: {{date}} Mode: {{mode}} Themes Analyzed: {{themes_analyzed}} Industries Scanned: {{industries_scanned}} Total Stocks: {{total_stocks}} Uptrend Data: {{uptrend_data_status}} Execution Time: {{execution_time}}


1. Theme Dashboard

Rank Theme Direction Heat Lifecycle Confidence
{{#each top_themes}}
{{rank}} {{name}} {{direction_emoji}} {{direction}} {{heat}}/100 {{lifecycle}} {{confidence}}
{{/each}}

Legend: Direction: LEAD/LAG (Dashboard), ^/v (Summary) | Heat: 0-100 scale | Lifecycle: Emerging/Accelerating/Trending/Mature/Exhausting


2. Bullish Themes Detail

{{#each bullish_themes}}

{{name}} - Heat: {{heat}}/100

Direction: Bullish ({{direction_strength}}) | Lifecycle: {{lifecycle}} | Confidence: {{confidence}}

Heat Components:

  • Momentum: {{momentum}}/100
  • Volume: {{volume}}/100
  • Uptrend: {{uptrend}}/100
  • Breadth: {{breadth}}/100

Lifecycle Factors:

  • Duration: {{duration_weeks}} weeks
  • Extremity clustering: {{extremity_pct}}%
  • Relative P/E: {{relative_pe}}x
  • ETF proliferation: {{etf_count}} ETFs (score: {{etf_score}}/100)
  • Narrative: {{narrative_assessment}}

Top Industries: {{#each industries}}

  • {{name}}: {{change_pct}}% ({{stock_count}} stocks, uptrend {{uptrend_ratio}}%) {{/each}}

Top Movers: {{#each top_stocks}}

  • {{ticker}}: {{change_pct}}% | Vol: {{relative_volume}}x {{/each}}

Proxy ETFs: {{proxy_etfs}}

Assessment: {{assessment}}


{{/each}}

3. Bearish Themes Detail

{{#each bearish_themes}}

{{name}} - Heat: {{heat}}/100

Direction: Bearish ({{direction_strength}}) | Lifecycle: {{lifecycle}} | Confidence: {{confidence}}

Heat Components:

  • Momentum: {{momentum}}/100
  • Volume: {{volume}}/100
  • Downtrend: {{downtrend}}/100
  • Breadth: {{breadth}}/100

Top Declining Industries: {{#each industries}}

  • {{name}}: {{change_pct}}% ({{stock_count}} stocks, downtrend {{downtrend_ratio}}%) {{/each}}

Worst Performers: {{#each bottom_stocks}}

  • {{ticker}}: {{change_pct}}% | Vol: {{relative_volume}}x {{/each}}

Assessment: {{assessment}}


{{/each}}

4. All Themes Summary

Theme Direction Heat Momentum Volume Uptrend Breadth Lifecycle Confidence
{{#each all_themes}}
{{name}} {{direction}} {{heat}} {{momentum}} {{volume}} {{uptrend}} {{breadth}} {{lifecycle}} {{confidence}}
{{/each}}

5. Industry Rankings

Top 10 Industries (by performance)

Rank Industry Sector Change % Rel. Volume Uptrend Ratio Theme
{{#each top_industries}}
{{rank}} {{name}} {{sector}} {{change_pct}}% {{rel_volume}}x {{uptrend_ratio}}% {{theme}}
{{/each}}

Bottom 10 Industries (by performance)

Rank Industry Sector Change % Rel. Volume Downtrend Ratio Theme
{{#each bottom_industries}}
{{rank}} {{name}} {{sector}} {{change_pct}}% {{rel_volume}}x {{downtrend_ratio}}% {{theme}}
{{/each}}

6. Sector Uptrend Ratios

Sector Uptrend Ratio Avg Change % Dominant Theme Direction
{{#each sectors}}
{{name}} {{uptrend_ratio}}% {{avg_change_pct}}% {{dominant_theme}} {{direction}}
{{/each}}

7. Methodology Notes

Scoring Model: 3-Dimensional (Heat x Lifecycle x Confidence)

  • Theme Heat (0-100): Momentum (30%) + Volume (25%) + Uptrend (25%) + Breadth (20%)
  • Lifecycle: Duration + Extremity clustering + Valuation + ETF proliferation + Narrative saturation
  • Confidence: Quantitative breadth + Cross-sector confirmation + Narrative verification

Data Sources:

  • FINVIZ {{mode}} (industry performance, volume, 52-week data) {{#if uptrend_data}}
  • uptrend-dashboard (3-point technical evaluation) {{/if}} {{#if fmp_data}}
  • FMP API (P/E ratios for valuation analysis) {{/if}}
  • WebSearch (narrative confirmation for top themes)

Limitations:

  • Theme definitions are static (predefined in cross_sector_themes.md)
  • {{mode_limitation}}
  • Duration tracking requires historical baseline data
  • Narrative assessment is subjective

Generated by Theme Detector v1.0 | {{date}} {{time}}

Source: SKILL.md on GitHub

1 alert17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill is a market analysis tool that detects and ranks trending market themes by fetching data from Finviz, Financial Modeling Prep (FMP), and the author's GitHub repository. It processes this data to generate structured reports for users. The skill follows secure coding practices for API management and uses standard libraries for financial data analysis. A low-severity finding is noted for the potential surface area of indirect data ingestion from external APIs.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    4/46 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 9bd11b7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 19 hours ago.

Activeupdated last month

README badge

README badge for tradermonty/claude-trading-skills/theme-detector