Community影像github.com

tradermonty/sector-analyst

This skill should be used when analyzing sector rotation patterns and market cycle positioning. It fetches sector uptrend data from CSV (no API key required) and optionally accepts chart images for supplementary analysis. Use this skill when the user requests sector rotation analysis, cyclical vs defensive assessment, overbought/oversold identification, or market cycle phase estimation. All analysis and output are conducted in English.

sector-analyst 是什麼?

sector-analyst is a Claude Code agent skill that this skill should be used when analyzing sector rotation patterns and market cycle positioning. It fetches sector uptrend data from CSV (no API key required) and optionally accepts chart images for supplementary analysis. Use this skill when the user requests sector rotation analysis, cyclical vs defensive assessment, overbought/oversold identification, or market cycle phase estimation. All analysis and output are conducted in English.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tradermonty/claude-trading-skills/tree/main/skills/sector-analyst

Installed? Explore more 影像 skills: steipete/songsee, affaan-m/frontend-design-direction, affaan-m/ios-icon-gen · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

tradermonty/backtest-expert

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

tradermonty/market-environment-analysis

Comprehensive market environment analysis and reporting tool. Analyzes global markets including US, European, Asian markets, forex, commodities, and economic indicators. Provides risk-on/risk-off assessment, sector analysis, and technical indicator interpretation. Triggers on keywords like market analysis, market environment, global markets, trading environment, market conditions, investment climate, market sentiment, forex analysis, stock market analysis, 相場環境, 市場分析, マーケット状況, 投資環境.

tradermonty/market-news-analyst

This skill should be used when analyzing recent market-moving news events and their impact on equity markets and commodities. Use this skill when the user requests analysis of major financial news from the past 10 days, wants to understand market reactions to monetary policy decisions (FOMC, ECB, BOJ), needs assessment of geopolitical events' impact on commodities, or requires comprehensive review of earnings announcements from mega-cap stocks. The skill automatically collects news using WebSearch/WebFetch tools and produces impact-ranked analysis reports. All analysis thinking and output are conducted in English.

tradermonty/options-strategy-advisor

Options trading strategy analysis and simulation tool. Provides theoretical pricing using Black-Scholes model, Greeks calculation, strategy P/L simulation, and risk management guidance. Use when user requests options strategy analysis, covered calls, protective puts, spreads, iron condors, earnings plays, or options risk management. Includes volatility analysis, position sizing, and earnings-based strategy recommendations. Educational focus with practical trade simulation.

tradermonty/portfolio-manager

Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.

tradermonty/scenario-analyzer

Skill that analyzes 18-month scenarios from a news headline. Runs the primary analysis with the scenario-analyst agent and obtains a second opinion with the strategy-reviewer agent. Generates a comprehensive English report covering 1st/2nd/3rd-order impacts, recommended stocks, and a critical review. Example: /scenario-analyzer "Fed raises rates by 50bp" Triggers: news analysis, scenario analysis, 18-month outlook, medium-to-long-term investment strategy

tradermonty/signal-postmortem

Record and analyze post-trade outcomes for signals generated by edge pipeline and other skills. Track false positives, missed opportunities, and regime mismatches. Feed results back to edge-signal-aggregator weights and skill improvement backlog.

tradermonty/skill-designer

Design new Claude skills from structured idea specifications. Use when the skill auto-generation pipeline needs to produce a Claude CLI prompt that creates a complete skill directory (SKILL.md, references, scripts, tests) following repository conventions.

tradermonty/skill-idea-miner

Mine Claude Code session logs for skill idea candidates. Use when running the weekly skill generation pipeline to extract, score, and backlog new skill ideas from recent coding sessions.

tradermonty/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.

tradermonty/uptrend-analyzer

Analyzes market breadth using Monty's Uptrend Ratio Dashboard data to diagnose the current market environment. Generates a 0-100 composite score from 5 components (breadth, sector participation, rotation, momentum, historical context). Use when asking about market breadth, uptrend ratios, or whether the market environment supports equity exposure. No API key required.

tradermonty/us-stock-analysis

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

tradermonty/value-dividend-screener

Screen US stocks for high-quality dividend opportunities combining value characteristics (P/E ratio under 20, P/B ratio under 2), attractive yields (3% or higher), and consistent growth (dividend/revenue/EPS trending up over 3 years). Supports two-stage screening using FINVIZ Elite API for efficient pre-filtering followed by FMP API for detailed analysis. Use when user requests dividend stock screening, income portfolio ideas, or quality value stocks with strong fundamentals.

tradermonty/vcp-screener

Screen S&P 500 stocks for Mark Minervini's Volatility Contraction Pattern (VCP) and detect historical VCPs in a single ticker's price path. Identifies Stage 2 uptrend stocks forming tight bases with contracting volatility near breakout pivot points; in historical single-ticker mode walks a multi-year history and emits every VCP that formed with forward-outcome stats (breakout / stop-hit / timeout). Use when user requests VCP screening, Minervini-style setups, tight base patterns, volatility contraction breakout candidates, Stage 2 momentum stock scanning, or historical VCP pattern study on a specific ticker (e.g. FIX, TSLA).

相關技能