Tooluck logoTooluck
SKILL.md

macro-regime-detector

Agent skill fromtradermonty/claude-trading-skills

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 to install macro-regime-detector

install macro-regime-detector
# install the claude-trading-skills pack with the skills CLI
npx skills add tradermonty/claude-trading-skills

# or add only this skill to Claude Code: copy the folder

skills/macro-regime-detector/

# into

~/.claude/skills/macro-regime-detector/ (all projects)

.claude/skills/macro-regime-detector/ (one project)

skills/macro-regime-detector/SKILL.md

MITFull file
1# Macro Regime Detector
2
3Detect structural macro regime transitions using monthly-frequency cross-asset ratio analysis. This skill identifies 1-2 year regime shifts that inform strategic portfolio positioning.
4
5## When to Use
6
7- User asks about current macro regime or regime transitions
8- User wants to understand structural market rotations (concentration vs broadening)
9- User asks about long-term positioning based on yield curve, credit, or cross-asset signals
10- User references RSP/SPY ratio, IWM/SPY, HYG/LQD, or other cross-asset ratios
11- User wants to assess whether a regime change is underway
12
13## Workflow
14
151. Load reference documents for methodology context:
16 - `references/regime_detection_methodology.md`
17 - `references/indicator_interpretation_guide.md`
18
192. Execute the main analysis script:
20 ```bash
21 python3 -m pip install -r skills/macro-regime-detector/requirements.txt
22 uv run python3 skills/macro-regime-detector/scripts/macro_regime_detector.py --output-dir reports/
23 ```
24 This fetches 600 days of data for 9 ETFs. With an FMP key, the client tries
25 FMP first and fetches Treasury rates (~10 API calls total), then falls back
26 to yfinance for unavailable ETF history. Without an FMP key, it runs in
27 yfinance-only mode and uses SHY/TLT as the yield-curve fallback.
28
29 The detector fails closed and writes no report when none of its six
30 components has usable data. Do not treat a missing report or non-zero exit
31 as a valid low-transition regime.
32…

Excerpt shown under the repository's MIT license.

More skills in claude-trading-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

tt-a1i /

archify
95k

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

CCCXOC1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates