StealIt

Macro Regime Detector

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.

Install

Research and analysis tools, not financial advice. Some workflows use optional FMP, FINVIZ Elite or Alpaca accounts; the repo's five-skill starter path needs no API key. Open the repository

Run this in your project folder. It works with Claude Code, Cursor, Codex and dozens of other agents.

$ npx skills add tradermonty/claude-trading-skills --skill macro-regime-detector

Needs Node.js. Add -g to install for every project, or -a claude-code to skip the agent picker.

How to use Macro Regime Detector

Once it's installed, Claude reads this skill on its own whenever a request matches what it's for, so you don't have to mention it by name. In Claude Code you can also run it directly by typing /macro-regime-detector.

It includes scripts that Claude may run on your computer, so skim them on GitHub before you install.

What the instructions cover

  1. 1When to Use
  2. 2Workflow
  3. 3Prerequisites
  4. 46 Components
  5. 55 Regime Classifications
  6. 6Output
  7. 7Relationship to Other Skills
  8. 8Script Arguments
  9. 9Resources

Section headings from the skill's SKILL.md file.

What's inside · 31 files

  • SKILL.md
  • references/historical_regimes.md
  • references/indicator_interpretation_guide.md
  • references/regime_detection_methodology.md
  • requirements.txt
  • scripts/calculators/__init__.py
  • scripts/calculators/concentration_calculator.py
  • scripts/calculators/credit_conditions_calculator.py
  • scripts/calculators/equity_bond_calculator.py
  • scripts/calculators/sector_rotation_calculator.py
  • scripts/calculators/size_factor_calculator.py
  • scripts/calculators/utils.py
  • scripts/calculators/yield_curve_calculator.py
  • scripts/fmp_client.py
  • scripts/macro_regime_detector.py
  • scripts/report_generator.py
  • scripts/scorer.py
  • scripts/tests/conftest.py
  • scripts/tests/test_concentration.py
  • scripts/tests/test_credit_conditions.py
  • scripts/tests/test_equity_bond.py
  • scripts/tests/test_fmp_client.py
  • scripts/tests/test_helpers.py
  • scripts/tests/test_main_cli.py
  • scripts/tests/test_packaged_deps.py
  • scripts/tests/test_report_generator.py
  • scripts/tests/test_scorer.py
  • scripts/tests/test_sector_rotation.py
  • scripts/tests/test_size_factor.py
  • scripts/tests/test_utils.py
  • scripts/tests/test_yield_curve.py

More from tradermonty

See all →

Backtest Expert

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating…

Finance & Tradingtradermonty3.6k

Breadth Chart Analyst

This skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use…

Finance & Tradingtradermonty3.6k

Breakout Trade Planner

Generate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat management, and Alpaca-compatible order templates…

Finance & Tradingtradermonty3.6k

Canslim Screener

Screen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user requests CANSLIM stock screening, growth stock analysis, momentum stock identification, or…

Finance & Tradingtradermonty3.6k
See all →

Trader Alerts

Price Alerts. Rings when a price, a stop or the opening bell hits. Turns the trade plan into three alerts in one go (the stop, the target and "flat by close" at your flat-by…

Finance & TradingJake Schincariol5.2k

Trader Analyst

The Earnings Analyst. Reads a company's reported numbers straight from SEC EDGAR (XBRL company facts from its 10-Qs and 10-Ks, plus the latest earnings 8-K and its press release)…

Finance & TradingJake Schincariol5.2k

Trader Broker

Order Executor. Sends approved orders to your broker, paper trading by default, never without your yes. Shows each order as a plain ticket (a bracket shows its stop-loss…

Finance & TradingJake Schincariol5.2k

Trader Budget

Budget Manager. Sizes every position to your budget and your max loss per trade. Reads the trade plan from trader-exit (entry, stop, target), finds the whole shares that fit…

Finance & TradingJake Schincariol5.2k