Skip to content
SkillScript-led1,642 tokens in use

Market Breadth Analyzer

Scores market breadth from 0 to 100 across six components using public CSV data, with health zones, trend tracking and a JSON and Markdown report.

7,427 stars on the repository MIT Licensetradermonty/claude-trading-skills · skills/market-breadth-analyzer

Skill label

measured from its files

What installing Market Breadth Analyzer costs

72tokens idle
1,642tokens in use
5,117tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: scripts/calculators/__init__.py, scripts/calculators/bearish_signal_calculator.py, scripts/calculators/cycle_calculator.py, scripts/calculators/divergence_calculator.py, scripts/calculators/historical_context_calculator.py, scripts/calculators/ma_crossover_calculator.py, scripts/calculators/trend_level_calculator.py, scripts/csv_client.py, scripts/history_tracker.py, scripts/market_breadth_analyzer.py, scripts/provenance_contract.py, scripts/report_generator.py, scripts/scorer.py.

Touches

shelldetectednetworkdetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure23/25
  • Examples6/15
  • Output10/15
  • Size15/15
  • Resources1/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Good
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 56
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 56
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    scripts/csv_client.py, line 89

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community68
  • Maturity36
  • Momentum40

Market Breadth Analyzer downloads two public CSV files hosted on GitHub Pages, a detail file with about 2,500 daily rows since 2016 and a summary file, and scores how broadly the market is participating. Six weighted components feed a composite from 0 (critical weakness) to 100 (broad participation).

The report names the health zone, the strongest and weakest components and any data freshness warnings, and it tracks the score over repeated runs. No API key is needed. It describes market participation and gives no investment advice.

What You Get

  • A composite breadth score from 0 to 100 and a health zone from Critical to Strong
  • Six component scores: breadth level and trend, 8MA versus 200MA crossover, peak and trough cycle, bearish signal, historical percentile and S&P 500 divergence
  • A trend label of improving, deteriorating or stable from a saved score history
  • Data freshness warnings when the CSV is more than five days old
  • JSON and Markdown reports with data provenance and an optional run ID

Common Use Cases

  • Asking whether a rally is broad-based or narrowing
  • A daily or weekly check of market participation
  • Comparing the score with a chart-based breadth review
  • Producing a same-run report that downstream skills can check by run ID

What Makes It Unique

It needs no paid data: the inputs are public CSV files, so a run is fully reproducible. Components with missing data are dropped and their weight is spread across the rest, and the report shows both the original and effective weights. Score history is kept across runs so the report can show direction, and the JSON records the data date, retrieval time and source.

Under The Hood

Claude runs a Python script (market_breadth_analyzer.py) from the skill folder through the shell. The script fetches the two CSV files over the web from GitHub Pages with the requests library, computes the six scores locally and writes JSON and Markdown reports to the output folder. It also keeps a history file of up to 20 earlier scores in the output folder, and the instructions say to create a nested output folder first. No credentials are used. A methodology reference is loaded on first use.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers