Analyzes S&P 500 Breadth Index and US Stock Market Uptrend Stock Ratio charts for market health assessment, signal identification, and positioning recommendations. Works with chart images or fetches CSV data from public sources.
Ships in tradermonty-claude-trading-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 specialized analysis of two complementary market breadth charts that provide strategic (medium to long-term) and tactical (short-term) market perspectives. Analyze breadth chart images to assess market health, identify trading signals based on backtested strategies, and develop positioning recommendations. All thinking and output are conducted exclusively in English.
Use this skill when:
Do NOT use this skill when:
us-stock-analysis skill instead)sector-analyst skill instead)market-news-analyst skill instead)This skill generates markdown analysis reports saved to the reports/ directory:
breadth_200ma_analysis_[YYYY-MM-DD].mduptrend_ratio_analysis_[YYYY-MM-DD].mdbreadth_combined_analysis_[YYYY-MM-DD].mdReports include executive summaries, current readings, signal identification, scenario analysis with probabilities, and actionable positioning recommendations for different trader types.
Purpose: Medium to long-term strategic market positioning
Key Elements:
Backtested Strategy:
Purpose: Short-term tactical timing and swing trading
Key Elements:
Swing Trading Strategy:
CRITICAL: CSV data is the PRIMARY source for all Breadth values. This step MUST be executed BEFORE any image analysis.
python3 skills/breadth-chart-analyst/scripts/fetch_breadth_csv.py
Why CSV is PRIMARY:
Data Sources:
tradermonty.github.io/market-breadth-analysis/market_breadth_data.csv
tradermonty/uptrend-dashboard/data/uptrend_ratio_timeseries.csv
tradermonty/uptrend-dashboard/data/sector_summary.csv
Data Source Priority:
| Priority | Source | Use For | Reliability |
|---|---|---|---|
| 1 (PRIMARY) | CSV Data | All numerical values, dead cross status, color | HIGH |
| 2 (SUPPLEMENTARY) | Chart Image | Visual trend context, pattern confirmation | MEDIUM |
| 3 (DEPRECATED) | UNRELIABLE | ||
| 4 (LAST RESORT) | LOW |
Expected Output:
Read references/csv_and_two_stage_details.md (section "Step 0 detail: expected CSV fetch output") to compare against the expected CSV fetch output.
Validation: After running CSV fetch, verify:
When the user provides breadth chart images for analysis:
If NO chart images are provided: Skip Steps 1, 1.5, and image-based analysis. Use CSV data from Step 0 as the sole data source and proceed directly to the analysis and report generation steps.
Language Note: All subsequent thinking, analysis, and output will be in English.
CRITICAL: Use a two-stage analysis approach to prevent misreading historical data as current values.
First, analyze the FULL chart image to understand:
Then, extract and analyze the rightmost 25% of the chart to accurately determine CURRENT values.
Execute the Python script to extract the right edge:
python3 skills/breadth-chart-analyst/scripts/extract_chart_right_edge.py <image_path> --percent 25
Read references/csv_and_two_stage_details.md (section "Step 1.5 detail: Why Two-Stage Analysis is Mandatory") for the rationale table, the common error this prevents and the full analysis protocol.
Before beginning analysis, read the comprehensive breadth chart methodology:
Read: references/breadth_chart_methodology.md
This reference contains detailed guidance on:
To understand the chart format and visual elements, review the sample charts included in this skill:
View: assets/SP500_Breadth_Index_200MA_8MA.jpeg
View: assets/US_Stock_Market_Uptrend_Ratio.jpeg
These samples demonstrate:
If Chart 1 is provided, conduct systematic analysis:
From the chart image, identify:
This step is MANDATORY to avoid misreading recent trend changes.
Read references/trend_analysis_protocol.md before judging trend direction from a chart image. It holds the line-colour check, the rightmost data-point trace for the 8MA and 200MA, failed reversal detection, an example format and the mandatory cross-check questions.
Look for and document:
Based on readings and patterns, classify the current market as:
Support the classification with specific evidence from the chart.
Apply the backtested strategy rules with STRICT confirmation requirements:
Check for BUY signal (ALL criteria must be met):
BUY Signal Status:
Check for SELL signal:
Current position determination:
Create 2-3 scenarios with probability estimates:
If Chart 2 is provided, conduct systematic analysis:
NOTE (Issue #7): This OpenCV detection step is DEPRECATED. Use CSV data from Step 0 as the PRIMARY source. The OpenCV script may be run for supplementary validation only, but CSV values take precedence in all cases.
python3 skills/breadth-chart-analyst/scripts/detect_uptrend_ratio.py <image_path> [--debug]
From the chart image, identify:
Look for and document:
Based on current ratio and color, classify as:
Support the classification with specific evidence from the chart.
Apply the swing trading strategy rules:
Check for ENTER LONG signal:
Check for EXIT LONG signal:
Current position: Long, Flat, Preparing to Enter, or Preparing to Exit
Create 2-3 scenarios with probability estimates:
If both charts are provided, integrate the strategic and tactical perspectives:
Create a positioning matrix:
Determine which of the four scenarios applies: Read references/combined_scenarios.md (section "Step 6.2 detail: the four combined scenarios") to classify the combined scenario. It holds the four scenarios with their Chart 1 and Chart 2 conditions and implications.
Provide integrated positioning guidance for:
Address any conflicts between charts and explain resolution.
Create a comprehensive markdown report using the template structure:
Read and use as template: assets/breadth_analysis_template.md
IMPORTANT: All analysis and output must be in English.
The report structure varies based on which chart(s) are analyzed:
If Chart 1 only:
If Chart 2 only:
If Both Charts:
File Naming Convention: Save each analysis as:
breadth_200ma_analysis_[YYYY-MM-DD].mduptrend_ratio_analysis_[YYYY-MM-DD].mdbreadth_combined_analysis_[YYYY-MM-DD].mdBefore finalizing the report, verify:
FINAL SANITY CHECK:
Read references/quality_and_error_prevention.md (section "Quality Standards") for the objectivity, completeness, clarity and strategy adherence requirements.
Read references/quality_and_error_prevention.md (section "Common Analysis Errors and How to Avoid Them") before finalizing a report. It holds the five common errors with symptoms and prevention.
Read references/example_usage_scenarios.md for worked example flows: CSV-only analysis, Chart 1 only, and both charts.
Read references/resource_index.md for the description and usage of each bundled reference, asset and script.
CRITICAL: All analysis, thinking, and output MUST be in English. This includes:
Do not translate or use any other language. The user expects English output exclusively.
This skill emphasizes backtested, systematic strategies rather than discretionary interpretation. Always:
The goal is actionable intelligence. Every analysis should answer:
assets/US_Stock_Market_Uptrend_Ratio.jpeg (opens in a new tab)assets/breadth_analysis_template.md (opens in a new tab)references/breadth_chart_methodology.md (opens in a new tab)references/combined_scenarios.md (opens in a new tab)references/csv_and_two_stage_details.md (opens in a new tab)references/example_usage_scenarios.md (opens in a new tab)references/quality_and_error_prevention.md (opens in a new tab)references/resource_index.md (opens in a new tab)references/trend_analysis_protocol.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/detect_breadth_values.py (opens in a new tab)scripts/detect_uptrend_ratio.py (opens in a new tab)scripts/extract_chart_right_edge.py (opens in a new tab)scripts/fetch_breadth_csv.py (opens in a new tab)scripts/tests/__init__.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_detect_breadth_values.py (opens in a new tab)scripts/tests/test_detect_uptrend_ratio.py (opens in a new tab)scripts/tests/test_detect_uptrend_ratio_synthetic.py (opens in a new tab)scripts/tests/test_extract_chart_right_edge.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
market-breadth, sp500, trading-signals, position-sizing, market-analysis
74 skills in this plugin
/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./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./canslim-screener/tradermonty-claude-trading-skills:breadth-chart-analystfrom tradermonty-claude-trading-skills
tradermonty-claude-trading-skills@cascade-business-ops is listed by joshuarweaver/cascade-business-ops — review the source before installing
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin tradermonty-claude-trading-skillsOther plugins' skills for the same job