/quant-skills:sector-analystfrom quant-skills
Analyzes sector rotation patterns and market cycle positioning using CSV data from TraderMonty's public dataset. Ranks sectors, calculates cyclical vs defensive risk scores, identifies overbought/oversold conditions, and estimates market cycle phase.
Ships in quant-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
Use this skill when:
Example user requests:
requests library (for CSV fetching)Sector uptrend ratios are fetched from TraderMonty's public GitHub repository (no API key required):
sector_summary.csv — uptrend ratio, trend, slope, and status per sectoruptrend_ratio_timeseries.csv — max(date) used to verify data recency# 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/
Follow this structured workflow:
python3 scripts/analyze_sector_rotation.pyUse the script's cycle phase estimate as a starting point:
references/sector_rotation.md to access market cycle and sector rotation frameworksIf chart images are provided, use them to supplement with industry-level detail:
Synthesize observations into an objective assessment:
Use data-driven language and specific references to performance figures.
Based on sector rotation principles and current positioning, develop 2-4 potential scenarios for the next phase:
For each scenario:
Scenarios should range from most likely (highest probability) to alternative/contrarian scenarios.
Create a structured Markdown document with the following sections:
Required Sections:
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]*
When conducting analysis:
Apply these probability ranges based on evidence strength:
Total probabilities across all scenarios should sum to approximately 100%.
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.sector_rotation.md - Comprehensive knowledge base covering market cycle phases, typical sector performance patterns, and probability assessment frameworksSample 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)README.md (opens in a new tab)assets/industory_performance_1.jpeg (opens in a new tab)assets/industory_performance_2.jpeg (opens in a new tab)assets/sector_performance.jpeg (opens in a new tab)references/sector_rotation.md (opens in a new tab)scripts/analyze_sector_rotation.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/helpers.py (opens in a new tab)scripts/tests/test_analyze_sector_rotation.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mphinance/alpha-skills --plugin quant-skills64 skills in this plugin
/0dte-flow0DTE day-trading playbook for a small account — Ghost Alpha signals into Tradier XSP (Mini-SPX) same-day options with strict IFTTT entry/exit rules and hard risk guardrails. Use when Michael wants to run a 0DTE session, size a contract, decide whether a signal qualifies, or apply the exit cascade. This is a DECISION-SUPPORT playbook — it drafts the plan; Michael places every order./backtest-expertExpert 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./batch-scannerRun the full suite of stock-screening strategies in sequence and export results to Google Sheets (one tab per strategy). Use when Michael wants to run the nightly/weekend scans, refresh the screener tabs, run a specific strategy, or understand which strategies are available and what each surfaces./breadth-chart-analystThis skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use this skill when the user provides breadth chart images for analysis, requests market breadth assessment, positioning strategy recommendations, or wants to understand medium-term strategic and short-term tactical market outlook based on breadth indicators. Also works WITHOUT chart images by fetching CSV data directly from public sources. All analysis and output are conducted in English./breakout-trade-plannerGenerate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat management, and Alpaca-compatible order templates (stop-limit bracket for pre-placement, limit bracket for post-confirmation). Use when user has VCP screener results and wants actionable trade plans with entry/stop/target levels and position sizing./broker-mcp-selectorPick a broker MCP server your AI agent can actually execute trades through, and wire it up safely. Use when the user wants to place, submit, or automate real orders; connect an agent to a brokerage account; choose between Alpaca, IBKR, Tradier, Robinhood, Schwab, Kraken and other broker MCP servers; move from analysis to execution; or check whether a broker's MCP server can trade, is read-only, or is safe to connect to real money. This is the "hands" that execute what the rest of the Alpha Skills suite decides.Other plugins' skills for the same job