Agent skill

Sector Analyst

by tradermonty in tradermonty/claude-trading-skills

This skill should be used when analyzing sector rotation patterns and market cycle positioning.

MITAuto-check passedDocuments & Office

Install Sector Analyst

skills CLI
$ npx skills add tradermonty/claude-trading-skills --skill sector-analyst -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tradermonty/claude-trading-skills sector-analyst --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tradermonty/claude-trading-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/sector-analyst .claude/skills/sector-analyst && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sector-analyst
GitHub stars
3k
Used in
1 other repo
Token cost
~2.3k tokens
SKILL.md length
863 words
Files
10 (incl. scripts, references, assets)
Skills in repo
74
Repo updated
First seen
Licence
MIT

At a glance

This skill should be used when analyzing sector rotation patterns and market cycle positioning.

  • Works in 5 steps: CSV Data Collection → Market Cycle Assessment → Current Situation Analysis → …
  • The user requests sector rotation analysis
  • SKILL.md covers Overview, When to Use This Skill, Prerequisites and Data Source, plus 7 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Sector Analyst is an agent skill from tradermonty/claude-trading-skills. 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.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts, reference files and assets (for example `references/sector_rotation.md`, `scripts/analyze_sector_rotation.py` and `scripts/tests/conftest.py`).

It sits in Documents & Office, covering CSV and tabular files and Positioning and messaging. The repository describes itself as: Claude Code skills for equity investors and traders — market analysis, technical charting, economic calendars, screeners, and trading strategy development. The licence is MIT.

When your agent uses it

  • The user requests sector rotation analysis
  • Cyclical vs defensive assessment
  • Overbought/oversold identification
  • Market cycle phase estimation

Example prompts

  • “/sector-analyst”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. CSV Data Collection
  2. Market Cycle Assessment
  3. Current Situation Analysis
  4. Scenario Development
  5. Output Generation

What it can do on your machine

Read from SKILL.md and the folder at commit eab8d5c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sector Analyst loads about 2.3k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 114 tokens; SKILL.md has 863 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~114
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from tradermonty/claude-trading-skills at commit eab8d5c, republished under its MIT licence (© tradermonty). 863 words, ~2,257 tokens.

Download SKILL.mdSave it as .claude/skills/sector-analyst/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
sector-analyst
description
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

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

bash
# 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.

Show full SKILL.md (366 more words)Show less
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:

markdown
# 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

© tradermonty, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references, assets) in skills/sector-analyst of tradermonty/claude-trading-skills.

  • SKILL.md
  • assets/industory_performance_1.jpeg
  • assets/industory_performance_2.jpeg
  • assets/sector_performance.jpeg
  • references/sector_rotation.md
  • requirements.txt
  • scripts/analyze_sector_rotation.py
  • scripts/tests/conftest.py
  • scripts/tests/helpers.py
  • scripts/tests/test_analyze_sector_rotation.py

Open the folder on GitHubat commit eab8d5c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in tradermonty/claude-trading-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Sector Analyst next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sector Analyst compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sector Analyst this skilltradermonty/claude-trading-skills3k1 repos~2.3kAutomated safety check: PassMIT
Table Creationextruct-ai/gtm-skills109—~1kAutomated safety check: PassNone
Sn Da Image CaptionMichaelYang-lyx/AIDABench1111 repos~2kAutomated safety check: PassNone
Douban Skilldaymade/claude-code-skills1.4k—~1.1kAutomated safety check: PassMIT
Champion Trackergooseworks-ai/goose-skills1.2k1 repos~1.1kAutomated safety check: NotesMIT
Tabular Cleanupgaasher/Agent-Loop-Skills174—~4kAutomated safety check: PassMIT

Similar skills

  • Table Creation

    extruct-ai/gtm-skills

    Create an Extruct company table from user-provided data, upload rows, and optionally add enrichment columns.

    109 GitHub stars~1k tokensUpdated 12 days ago
    Documents & OfficeAuto-check passed
  • Sn Da Image Caption

    MichaelYang-lyx/AIDABench

    图片理解与数据提取 skill。当图片文件(.png/.jpg/.jpeg/.gif/.webp/.bmp)是主要输入且用户需要理解、提取数据或分析图片内容时使用。提供预配置的 caption 脚本(scripts/caption.py),通过 vision 模型将图片转为文本描述,无需额外配置 API Key。覆盖:(1) 通过 scripts/caption.py…

    111 GitHub starsUsed in 1 repo~2k tokens
    Documents & OfficeAuto-check passed
  • Douban Skill

    daymade/claude-code-skills

    Export and sync Douban (豆瓣) book/movie/music/game collections to local CSV files via Frodo API.

    1.4k GitHub stars~1.1k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Champion Tracker

    gooseworks-ai/goose-skills

    Track product champions for job changes and qualify their new companies against ICP.

    1.2k GitHub starsUsed in 1 repo~1.1k tokens
    Documents & OfficeAuto-check: notes
  • Tabular Cleanup

    gaasher/Agent-Loop-Skills

    A skill your agent uses when the user has a messy tabular data dump (CSV/TSV/parquet/Excel/JSON) and wants it iteratively cleaned to an inferred data contract — a checklist of deterministic…

    174 GitHub stars~4k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed
  • Pie Chart Data Analysis

    MichaelYang-lyx/AIDABench

    对多Sheet Excel或CSV数据进行分类汇总统计,自动识别关键字段并生成包含占比、数值及美化饼图的可下载分析报告。

    111 GitHub starsUsed in 1 repo~964 tokens
    Documents & OfficeAuto-check passed

More from tradermonty/claude-trading-skills

All 74 skills in this repo
  • Technical Analyst

    tradermonty/claude-trading-skills

    This skill should be used when analyzing weekly price charts for stocks, stock indices, cryptocurrencies, or forex pairs.

    3k GitHub starsUsed in 4 repos~4.6k tokens
    Auto-check passed
  • Theme Detector

    tradermonty/claude-trading-skills

    Detect and analyze trending market themes across sectors. An agent skill from tradermonty/claude-trading-skills.

    3k GitHub starsUsed in 2 repos~4.9k tokens
    Auto-check passed
  • Trader Memory Core

    tradermonty/claude-trading-skills

    Track investment theses across their lifecycle — from screening idea to closed position with postmortem.

    3k GitHub starsUsed in 2 repos~4.3k tokens
    Auto-check passed
  • Edge Strategy Reviewer

    tradermonty/claude-trading-skills

    Critically review strategy drafts from edge-strategy-designer for edge plausibility, overfitting risk, sample size adequacy, and execution realism.

    3k GitHub starsUsed in 1 repo~988 tokens
    Auto-check passed
  • Stanley Druckenmiller Investment

    tradermonty/claude-trading-skills

    Druckenmiller Strategy Synthesizer - Integrates 8 upstream skill outputs (Market Breadth, Uptrend Analysis, Market Top, Macro Regime, FTD Detector, VCP Screener, Theme Detector, CANSLIM Screener)…

    3k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Stockbee 20pct Study

    tradermonty/claude-trading-skills

    Build and maintain a Stockbee-style daily 20% mover study for US equities by scanning +20%/-20% movers, classifying catalysts and setup context, updating forward outcomes, and summarizing cohort…

    3k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed

Questions about Sector Analyst

What does Sector Analyst do?

This skill should be used when analyzing sector rotation patterns and market cycle positioning. Sector Analyst is an agent skill from tradermonty/claude-trading-skills. This skill should be used when analyzing sector rotation patterns and market cycle positioning.

When should I use Sector Analyst?

Sector Analyst fits situations like: the user requests sector rotation analysis; cyclical vs defensive assessment; overbought/oversold identification; market cycle phase estimation.

How do I install Sector Analyst in Claude Code?

Run `npx skills add tradermonty/claude-trading-skills --skill sector-analyst -a claude-code`. Or copy the skill folder (skills/sector-analyst in tradermonty/claude-trading-skills) into .claude/skills/sector-analyst in your project. Claude Code loads it when a task matches its description.

How do I install Sector Analyst in Codex?

Run `npx skills add tradermonty/claude-trading-skills --skill sector-analyst -a codex`. Or copy the skill folder (skills/sector-analyst in tradermonty/claude-trading-skills) into .agents/skills/sector-analyst in your project. Codex loads it when a task matches its description.

Can I use Sector Analyst in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tradermonty/claude-trading-skills --skill sector-analyst -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sector-analyst, .gemini/skills/sector-analyst, .github/skills/sector-analyst and .opencode/skills/sector-analyst in your project.

What does Sector Analyst need to run?

Going by SKILL.md and its folder, Sector Analyst needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Sector Analyst access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sector Analyst safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Sector Analyst use?

Sector Analyst is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sector Analyst use?

About 2.3k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Sector Analyst?

Skills that share tags, products or a category with Sector Analyst: Table Creation (extruct-ai/gtm-skills, 109 stars), Sn Da Image Caption (MichaelYang-lyx/AIDABench, 111 stars), Douban Skill (daymade/claude-code-skills, 1.4k stars) and Champion Tracker (gooseworks-ai/goose-skills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sector Analyst?

tradermonty (a GitHub user) maintains it in tradermonty/claude-trading-skills, which has 2,977 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 9, 2026.

Source: tradermonty/claude-trading-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.