macro-regime-detector
Detect structural macro regime transitions (1-2 year horizon) using cross-asset ratio analysis. Analyze RSP/SPY concentration, yield curve, credit conditions, size factor, equity-bond relationship, and sector rotation to identify regime shifts between Concentration, Broadening, Contraction, Inflationary, and Transitional states. Run when user asks about macro regime, market regime change, structural rotation, or long-term market positioning.
npx skills add BaggaT236/AI-Trading-Skills --skill macro-regime-detector --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Macro Regime Detector Detect structural macro regime transitions using monthly-frequency cross-asset ratio analysis. This skill identifies 1-2 year regime shifts that inform strategic portfolio positioning. ## When to Use - User asks about current macro regime or regime transitions - User wants to understand structural market rotations (concentration vs broadening) - User asks about long-term positioning based on yield curve, credit, or cross-asset signals - User references RSP/SPY ratio, IWM/SPY, HYG/LQD, or other cross-asset ratios - User wants to assess whether a regime change is underway ## Workflow 1. Load reference documents for methodology context: - `references/regime_detection_methodology.md` - `references/indicator_interpretation_guide.md` 2. Execute the main analysis script: ```bash uv run python3 skills/macro-regime-detector/scripts/macro_regime_detector.py --output-dir reports/ ``` This fetches 600 days of data for 9 ETFs + Treasury rates (~10 API calls total). An **FMP API key is required** to run this skill (the client raises if it is missing). For individual ETFs whose FMP historical-price endpoint returns nothing, the client automatically falls back to yfinance —
- When to Use
- Workflow
- Prerequisites
- 6 Components
- 5 Regime Classifications
- Output
- Relationship to Other Skills
- Script Arguments
- Resources
uv run python3 skills/macro-regime-detector/scripts/macro_regime_detector.py --output-dir reports/ python3 macro_regime_detector.py [options]
What does the macro-regime-detector skill do?
Detect structural macro regime transitions (1-2 year horizon) using cross-asset ratio analysis. Analyze RSP/SPY concentration, yield curve, credit conditions, size factor, equity-bond relationship, and sector rotation to identify regime shifts between Concentration, Broadening, Contraction, Inflationary, and Transitional states. Run when user asks about macro regime, market regime change, structural rotation, or long-term market positioning.
How do I install it?
Run `npx skills add BaggaT236/AI-Trading-Skills --skill macro-regime-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.
