Skip to content
SkillScript-led1,721 tokens in use

sector-analyst

Ranks sectors by uptrend ratio from a public CSV, scores cyclical against defensive strength and estimates the market cycle phase.

7,430 stars on the repository MIT Licensetradermonty/claude-trading-skills · skills/sector-analyst

Skill label

measured from its files

What installing sector-analyst costs

84tokens idle
1,721tokens in use
3,054tokens, 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/analyze_sector_rotation.py, scripts/tests/conftest.py, scripts/tests/helpers.py, scripts/tests/test_analyze_sector_rotation.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 →
Excellent
  • Frontmatter12/15
  • Structure23/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources12/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 45
  • Reaches the network−10

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

    scripts/analyze_sector_rotation.py, line 25
  • Writes files−8

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

    scripts/analyze_sector_rotation.py, line 738

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

Sector Analyst runs a bundled Python script that downloads sector uptrend ratios from a public GitHub dataset, with no API key. It ranks the sectors, scores a cyclical versus defensive risk regime, flags overbought and oversold sectors and gives a cycle phase estimate with a confidence level.

The model then compares those figures with a sector rotation reference, optionally reads sector or industry performance chart images, and writes a Markdown report with two to four probability-weighted scenarios. It describes market conditions and does not give investment advice.

What You Get

  • A sector ranking by uptrend ratio with trend and status
  • A cyclical versus defensive risk regime score
  • Overbought and oversold sector flags
  • A cycle phase estimate (early, mid, late cycle or recession) with confidence
  • A sector_analysis_YYYY-MM-DD.md report with scenarios and key risks

Common Use Cases

  • Checking which sectors lead before a weekly portfolio review
  • Judging whether leadership looks cyclical or defensive
  • Adding sector chart screenshots to a written rotation assessment

What Makes It Unique

The core analysis is computed by a script from a public CSV that needs no API key, so the numbers are repeatable. Chart images are optional extra input, and the cycle-phase view comes with a probability framework for scenarios.

Under The Hood

A Python script using only the standard library downloads two CSV files over HTTPS from a public GitHub repository, checks the latest date for freshness and prints or saves the analysis, optionally as JSON into a reports folder. The model reads a sector rotation reference file, can view chart images you provide, and writes the final Markdown report to a file.

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