Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
tradermonty avatar

Sector Analyst

  • 1k installs
  • 2.5k repo stars
  • Updated July 26, 2026
  • tradermonty/claude-trading-skills

sector-analyst is a Claude Code finance skill that fetches public sector uptrend CSV data and runs Python rotation analysis so developers and PMs can ground product and GTM decisions in market-cycle context.

About

sector-analyst is a trading-intelligence skill in tradermonty/claude-trading-skills that downloads TraderMonty public CSV files (sector_summary.csv and uptrend_ratio_timeseries.csv) via Python 3.9+ stdlib, then ranks sectors, scores cyclical vs defensive risk, and estimates one of four market-cycle phases. The bundled analyze_sector_rotation.py script outputs human-readable or JSON reports and optional chart supplements. Developers reach for sector-analyst when validating macro assumptions before roadmap or launch planning, not for live order execution. No API keys are required because data is pulled from a public GitHub dataset with a built-in freshness check.

  • Delivers four-phase economic cycle framework with precise outperforming and underperforming sectors per stage
  • Maps 11 major sectors to current macro conditions including GDP, rates, credit, inflation and confidence signals
  • Provides sector-specific investment and business implications for technology, financials, industrials, real estate and c
  • Supplies ready-to-use knowledge base for any Claude, Cursor or Codex agent to reason about market timing
  • Supports 4 distinct cycle modes: Early Recovery, Mid Expansion, Late Cycle, and Recession

Sector Analyst by the numbers

  • 1,037 all-time installs (skills.sh)
  • +52 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #443 of 3,301 Productivity & Planning skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/tradermonty/claude-trading-skills --skill sector-analyst

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1k
repo stars2.5k
Security audit2 / 3 scanners passed
Last updatedJuly 26, 2026
Repositorytradermonty/claude-trading-skills

Which sectors lead the current market cycle?

Receive accurate sector rotation intelligence and market-cycle context before making product, feature, or go-to-market decisions.

Who is it for?

Developers or PMs validating macro and sector assumptions before product, feature, or go-to-market commitments.

Skip if: Skip sector-analyst when you need live brokerage execution, intraday tick data, or company-level fundamental modeling.

When should I use this skill?

User asks for sector rotation analysis, cyclical vs defensive positioning, overbought/oversold sectors, or market-cycle phase estimation.

What you get

Sector ranking report, cyclical/defensive regime score, overbought/oversold flags, cycle-phase estimate, and optional JSON or saved reports/

  • sector rotation report
  • JSON analysis output
  • cycle-phase estimate

By the numbers

  • Covers 4 primary market-cycle phases in the sector rotation framework
  • Fetches 2 public CSV datasets (sector_summary.csv and uptrend_ratio_timeseries.csv)

Files

SKILL.mdMarkdownGitHub ↗

Sector Analyst

Overview

This skill enables comprehensive analysis of sector rotation and market cycle positioning by fetching uptrend ratio data from TraderMonty's public CSV dataset. It ranks sectors, calculates cyclical vs defensive risk regime scores, identifies overbought/oversold conditions, and estimates the current market cycle phase. Chart images can optionally supplement the data-driven analysis with industry-level detail.

When to Use This Skill

Use this skill when:

  • User requests sector rotation analysis (no chart images required)
  • User asks about cyclical vs defensive positioning
  • User wants to know which sectors are overbought or oversold
  • User requests market cycle phase estimation
  • User provides sector performance charts for supplementary analysis
  • User asks for sector-based scenario analysis or predictions

Example user requests:

  • "Run a sector rotation analysis"
  • "Which sectors are leading — cyclical or defensive?"
  • "Are any sectors overbought right now?"
  • "What phase of the market cycle are we in?"
  • "Analyze these sector performance charts and tell me where we are in the market cycle"

Prerequisites

  • Python 3.9+; no third-party libraries required (CSV fetched via stdlib urllib)
  • No API keys required — data is fetched from a public GitHub repository
  • Optional: Sector performance chart images for supplementary analysis

Data Source

Sector uptrend ratios are fetched from TraderMonty's public GitHub repository (no API key required):

  • Sector Summary: sector_summary.csv — uptrend ratio, trend, slope, and status per sector
  • Freshness Check: uptrend_ratio_timeseries.csv — max(date) used to verify data recency

Running the Script

# Default: fetch CSV, print human-readable analysis
python3 scripts/analyze_sector_rotation.py

# JSON output
python3 scripts/analyze_sector_rotation.py --json

# Save to file
python3 scripts/analyze_sector_rotation.py --save --output-dir reports/

Analysis Workflow

Follow this structured workflow:

Step 1: CSV Data Collection

1. Run the analysis script: python3 scripts/analyze_sector_rotation.py 2. Extract from the output:

  • Sector ranking by uptrend ratio
  • Risk regime (cyclical vs defensive) and score
  • Overbought/oversold sectors
  • Cycle phase estimate and confidence level

3. If a data freshness warning appears, note it in the analysis

Step 2: Market Cycle Assessment

Use the script's cycle phase estimate as a starting point:

  • Read references/sector_rotation.md to access market cycle and sector rotation frameworks
  • Compare the script's quantitative findings against expected patterns for each cycle phase:
  • Early Cycle Recovery
  • Mid Cycle Expansion
  • Late Cycle
  • Recession
  • Add qualitative interpretation informed by the knowledge base

If chart images are provided, use them to supplement with industry-level detail:

  • Extract industry-level performance data from chart images
  • Compare 1-week vs 1-month performance for trend consistency
  • Note specific industries showing strength or weakness within sectors

Step 3: Current Situation Analysis

Synthesize observations into an objective assessment:

  • State which market cycle phase current performance most closely resembles
  • Highlight supporting evidence (which sectors/industries confirm this view)
  • Note any contradictory signals or unusual patterns
  • Assess confidence level based on consistency of signals

Use data-driven language and specific references to performance figures.

Step 4: Scenario Development

Based on sector rotation principles and current positioning, develop 2-4 potential scenarios for the next phase:

For each scenario:

  • Describe the market cycle transition
  • Identify which sectors would likely outperform
  • Identify which sectors would likely underperform
  • Specify the catalysts or conditions that would confirm this scenario
  • Assign a probability (see Probability Assessment Framework in sector_rotation.md)

Scenarios should range from most likely (highest probability) to alternative/contrarian scenarios.

Step 5: Output Generation

Create a structured Markdown document with the following sections:

Required Sections: 1. Executive Summary: 2-3 sentence overview of key findings 2. Current Situation: Detailed analysis of current performance patterns and market cycle positioning 3. Supporting Evidence: Specific sector and industry performance data supporting the cycle assessment 4. Scenario Analysis: 2-4 scenarios with descriptions and probability assignments 5. Recommended Positioning: Strategic and tactical positioning recommendations based on scenario probabilities 6. Key Risks: Notable risks or contradictory signals to monitor

Output Format

Save analysis results as a Markdown file with naming convention: sector_analysis_YYYY-MM-DD.md

Use this structure:

# Sector Performance Analysis - [Date]

## Executive Summary

[2-3 sentences summarizing key findings]

## Current Situation

### Market Cycle Assessment
[Which cycle phase and why]

### Performance Patterns Observed

#### 1-Week Performance
[Analysis of recent performance]

#### 1-Month Performance
[Analysis of medium-term trends]

#### Sector-Level Analysis
[Detailed breakdown by sector]

#### Industry-Level Analysis
[Notable industry-specific observations]

## Supporting Evidence

### Confirming Signals
- [List data points supporting cycle assessment]

### Contradictory Signals
- [List any conflicting indicators]

## Scenario Analysis

### Scenario 1: [Name] (Probability: XX%)
**Description**: [What happens]
**Outperformers**: [Sectors/industries]
**Underperformers**: [Sectors/industries]
**Catalysts**: [What would confirm this scenario]

### Scenario 2: [Name] (Probability: XX%)
[Repeat structure]

[Additional scenarios as appropriate]

## Recommended Positioning

### Strategic Positioning (Medium-term)
[Sector allocation recommendations]

### Tactical Positioning (Short-term)
[Specific adjustments or opportunities]

## Key Risks and Monitoring Points

[What to watch that could invalidate the analysis]

---
*Analysis Date: [Date]*
*Data Period: [Timeframe of charts analyzed]*

Key Analysis Principles

When conducting analysis:

1. Objectivity First: Let the data guide conclusions, not preconceptions 2. Probabilistic Thinking: Express uncertainty through probability ranges 3. Multiple Timeframes: Compare 1-week and 1-month data for trend confirmation 4. Relative Performance: Focus on relative strength, not absolute returns 5. Breadth Matters: Broad-based moves are more significant than isolated movements 6. No Absolutes: Markets rarely follow textbook patterns exactly 7. Historical Context: Reference typical rotation patterns but acknowledge uniqueness

Probability Guidelines

Apply these probability ranges based on evidence strength:

  • 70-85%: Strong evidence with multiple confirming signals across sectors and timeframes
  • 50-70%: Moderate evidence with some confirming signals but mixed indicators
  • 30-50%: Weak evidence with limited or conflicting signals
  • 15-30%: Speculative scenario contrary to current indicators but possible

Total probabilities across all scenarios should sum to approximately 100%.

Resources

scripts/

  • analyze_sector_rotation.py - Fetches sector CSV data and produces sector rankings, risk regime scoring, overbought/oversold flags, and cycle phase estimation. No API key required.

references/

  • sector_rotation.md - Comprehensive knowledge base covering market cycle phases, typical sector performance patterns, and probability assessment frameworks

assets/

Sample charts demonstrating the expected input format for optional image-based analysis:

  • sector_performance.jpeg - Example sector-level performance chart (1-week and 1-month)
  • industory_performance_1.jpeg - Example industry performance chart (outperformers)
  • industory_performance_2.jpeg - Example industry performance chart (underperformers)

Important Notes

  • All analysis thinking should be conducted in English
  • Output Markdown files must be in English
  • Reference the sector rotation knowledge base for each analysis
  • Maintain objectivity and avoid confirmation bias
  • Update probability assessments if new data becomes available
  • Chart images are optional; CSV data provides the primary analysis input
  • The script uses the same sector classification as uptrend-analyzer for consistency

Related skills

How it compares

Pick sector-analyst for macro sector-rotation context from free CSV data; use company-level equity skills when you need single-ticker fundamentals.

FAQ

Does sector-analyst require market data API keys?

sector-analyst does not require API keys. The skill fetches TraderMonty public CSV files (sector_summary.csv and uptrend_ratio_timeseries.csv) using Python 3.9+ stdlib urllib and runs analyze_sector_rotation.py locally.

What market cycle phases does sector-analyst estimate?

sector-analyst estimates one of four phases—Early Cycle Recovery, Mid Cycle Expansion, Late Cycle, or Recession—by comparing CSV uptrend rankings and cyclical/defensive scores against the sector_rotation.md knowledge base.

Is Sector Analyst safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Productivity & Planningagentsresearchautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.