Agent skill

market-top-detector

Detects market top probability using O'Neil Distribution Days, Minervini Leading Stock Deterioration, and Monty Defensive Sector Rotation. Generates a 0-100 composite score with risk zone classification. Use when user asks about market top risk, distribution days, defensive rotation, leadership breakdown, or whether to reduce equity exposure. Focuses on 2-8 week tactical timing signals for 10-20% corrections.

BaggaT236github.com/BaggaT236GitHub ↗
claude-codeships scriptsMIT
Install
npx skills add BaggaT236/AI-Trading-Skills --skill market-top-detector --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 38
SKILL.md size: 8 KB
Bundled scripts: yes
Path: skills/market-top-detector/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 118
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Market Top Detector Skill ## Purpose Detect the probability of a market top formation using a quantitative 6-component scoring system (0-100). Integrates three proven market top detection methodologies: 1. **O'Neil** - Distribution Day accumulation (institutional selling) 2. **Minervini** - Leading stock deterioration pattern 3. **Monty** - Defensive sector rotation signal Unlike the Bubble Detector (macro/multi-month evaluation), this skill focuses on **tactical 2-8 week timing signals** that precede 10-20% market corrections. ## When to Use This Skill **English:** - User asks "Is the market topping?" or "Are we near a top?" - User notices distribution days accumulating - User observes defensive sectors outperforming growth - User sees leading stocks breaking down while indices hold - User asks about reducing equity exposure timing - User wants to assess correction probability for the next 2-8 weeks **Japanese:** - 「天井が近い?」「今は利確すべき?」 - ディストリビューションデーの蓄積を懸念 - ディフェンシブセクターがグロースをアウトパフォーム - 先導株が崩れ始めているが指数はまだ持ちこたえている - エクスポージャー縮小のタイミング判断 - 今後2〜8週間の調整確率を評価したい ## Prerequisites **Required:** - **FMP API Key:** Set `$FMP_API_KEY` environment variable or pass `--api-key`. Free tier sufficie

What's inside
Steps it walks through
  1. Purpose
  2. When to Use This Skill
  3. Prerequisites
  4. Difference from Bubble Detector
  5. Execution Workflow
  6. Phase 1: Data Collection via WebSearch
  7. Phase 2: Execute Python Script
  8. Phase 3: Present Results
  9. 6-Component Scoring System
  10. Risk Zone Mapping
  11. API Requirements
  12. Output Files
  13. Reference Documents
  14. references/markettopmethodology.md
Ships with 24 files
  • references/distribution_day_guide.md
  • references/historical_tops.md
  • references/market_top_methodology.md
  • scripts/breadth_csv_client.py
  • scripts/calculators/__init__.py
  • scripts/calculators/breadth_calculator.py
  • scripts/calculators/defensive_rotation_calculator.py
  • scripts/calculators/distribution_day_calculator.py
  • scripts/calculators/index_technical_calculator.py
  • scripts/calculators/leading_stock_calculator.py
  • scripts/calculators/math_utils.py
  • scripts/calculators/sentiment_calculator.py
  • scripts/fmp_client.py
  • scripts/historical_comparator.py
  • scripts/market_top_detector.py
  • scripts/report_generator.py
  • scripts/scenario_engine.py
  • scripts/scorer.py
  • scripts/tests/conftest.py
  • scripts/tests/helpers.py
  • scripts/tests/test_breadth.py
  • scripts/tests/test_breadth_csv_client.py
  • scripts/tests/test_defensive_rotation.py
  • scripts/tests/test_delta.py
first 24 of 38
Commands it runs
python3 skills/market-top-detector/scripts/market_top_detector.py \
Override with --breadth-200dma [VALUE] if needed.
Disable with --no-auto-breadth to skip auto-fetch.
More from AI-Trading-Skills
All skills →
About this skill
What does the market-top-detector skill do?

Detects market top probability using O'Neil Distribution Days, Minervini Leading Stock Deterioration, and Monty Defensive Sector Rotation. Generates a 0-100 composite score with risk zone classification. Use when user asks about market top risk, distribution days, defensive rotation, leadership breakdown, or whether to reduce equity exposure. Focuses on 2-8 week tactical timing signals for 10-20% corrections.

How do I install it?

Run `npx skills add BaggaT236/AI-Trading-Skills --skill market-top-detector --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BaggaT236/AI-Trading-Skills, a repository with 118 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going