Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Macro Regime Detector23Detect structural macro regime transitions using monthly-frequency cross-asset ratio analysis. This skill identifies 1-2 year regime shifts that inform strategic portfolio positioning.45## When to Use67- User asks about current macro regime or regime transitions8- 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 signals10- User references RSP/SPY ratio, IWM/SPY, HYG/LQD, or other cross-asset ratios11- User wants to assess whether a regime change is underway1213## Workflow14151. Load reference documents for methodology context:16 - `references/regime_detection_methodology.md`17 - `references/indicator_interpretation_guide.md`18192. Execute the main analysis script:20 ```bash21 python3 -m pip install -r skills/macro-regime-detector/requirements.txt22 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 tries25 FMP first and fetches Treasury rates (~10 API calls total), then falls back26 to yfinance for unavailable ETF history. Without an FMP key, it runs in27 yfinance-only mode and uses SHY/TLT as the yield-curve fallback.2829 The detector fails closed and writes no report when none of its six30 components has usable data. Do not treat a missing report or non-zero exit31 as a valid low-transition regime.32…
Excerpt shown under the repository's MIT license.
More skills in claude-trading-skills
Similar skill repositories
Public repository for Agent Skills
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
Production-grade engineering skills for AI coding agents.
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.
Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
