macro-regime-detector

Detect structural macro regime transitions using cross-asset ratio analysis.

2|Updated Jun 14, 2026
One-click install
npx skills add https://github.com/IhsanDanish25/claude-trading-skills --skill macro-regime-detector-ihsandanish25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: macro-regime-detector
Source: https://github.com/IhsanDanish25/claude-trading-skills/tree/main/skills/macro-regime-detector
Command: npx skills add https://github.com/IhsanDanish25/claude-trading-skills --skill macro-regime-detector-ihsandanish25

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, numpy, pandas, matplotlib, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill detects structural macro regime transitions using cross-asset ratio analysis, helping users understand market shifts and inform strategic portfolio positioning.

Core Features & Use Cases

  • Cross-Asset Ratio Analysis: Analyze RSP/SPY concentration, yield curve, credit conditions, size factor, equity-bond relationship, and sector rotation.
  • Regime Classification: Identify regime shifts between Concentration, Broadening, Contraction, Inflationary, and Transitional states.
  • Data Analysis and Reporting: Generate comprehensive reports and visualizations to aid in decision-making.
  • Use Case: When a user wants to understand the current macro regime and long-term market positioning.

Quick Start

Run the 'macro-regime-detector' skill to analyze the current macro regime and obtain a report.

Frequently Asked Questions about macro-regime-detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect macro regime transitions for market positioning?

Cross-asset ratio analysis identifies structural macro regime transitions by evaluating metrics like RSP/SPY concentration, yield curves, and credit conditions to classify shifts between broadening, contraction, and inflationary states.

What financial data do I need for cross-asset ratio analysis?

You need access to financial data APIs to retrieve market metrics, alongside Python libraries like pandas and numpy to process the datasets for regime classification and reporting.

Can I use Python and matplotlib to visualize macroeconomic regime shifts?

Yes, you can use Python and matplotlib to generate comprehensive reports and visualizations that map structural transitions between Concentration, Broadening, Contraction, Inflationary, and Transitional macro regimes.

How do I classify market states using equity-bond relationships and sector rotation?

You classify market states by analyzing equity-bond relationships, sector rotation, and size factors to categorize the current environment into specific regimes like Broadening or Contraction for risk management.

When should I apply cross-asset ratio analysis instead of standard market analysis?

Apply cross-asset ratio analysis when you need to identify long-term structural macro regime transitions for strategic portfolio positioning, rather than relying on standard market analysis for short-term trading signals.