Skip to main content
command CX Codex official · Anthropic

macro-rates — Claude Code command: what it does, how to install

The macro-rates Claude Code command builds a macro and rates dashboard for a selected country. It covers economic indicators, yield curves, real rates, and swap spreads.

Apache-2.0 ★ 41,441 updated 2026-09-21

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-services
Open on GitHub

What macro-rates does

The command assembles a macroeconomic and rates dashboard for a country. It includes GDP, inflation, unemployment, and the policy rate, plus a government yield curve with slope analysis. A historical period can be supplied; the default is 3Y.

For real rates, it compares nominal yields with inflation breakevens. It also measures swap spreads against government yields at 2Y, 5Y, and 10Y, then adds historical context for the benchmark yield. The workflow uses LSEG macroeconomic data and connector tools for curves, swaps, and historical pricing.

What it helps with

  • assemble a country’s macro indicators in one dashboard
  • compare yield-curve slopes across maturities
  • derive real rates from inflation breakevens
  • measure swap spreads against government yields
  • place current yields in their historical range

Example prompts for the agent

  • Build a macro and rates dashboard for US over 5Y.
  • Show the yield curve, real rates, and swap spreads for DE.
  • Compare macro indicators and historical yields for GB over 3Y.

How to install macro-rates

1Plugin marketplace

/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-services

2Manually: put the files in place

.claude/commands/macro-rates.md

Call it with /macro-rates. For all projects use ~/.claude/commands/

Questions about macro-rates

How do I install macro-rates in Claude Code?

Add the marketplace with /plugin marketplace add anthropics/financial-services, then install the plugin with /plugin install lseg@claude-for-financial-services. The command file is at .claude/commands/macro-rates.md.

What does macro-rates do?

It creates a country-level macro and rates dashboard, covering economic indicators, yield-curve slopes, real rates, swap spreads, and historical yield context.

What does macro-rates need to run?

It uses LSEG macroeconomic data and connector tools for rate and inflation curves, swap pricing, and historical prices.

Source text

macro-rates.md · Apache-2.0
---
description: Build a macro and rates dashboard with economic indicators, yield curves, inflation, and swap spreads
argument-hint: "<country e.g. US> [timeframe e.g. 5Y]"
---

# Macro & Rates Dashboard

> This command uses LSEG macroeconomic data, yield curves, inflation curves, swap pricing, and historical data tools. See [CONNECTORS.md](../CONNECTORS.md) for available tools.

Build a comprehensive macroeconomic and rates dashboard showing key economic indicators, the yield curve with slope analysis, real rate decomposition, and swap spread context.

See the **macro-rates-monitor** skill for domain knowledge on macro-rates analysis.

## Workflow

### 1. Gather Input

Ask the user for:
- Country (required) — e.g., US, DE, GB, JP, CH
- Timeframe for historical series (optional, default 3Y)
- Any specific indicators of interest (optional)

Map country to currency: US→USD, DE→EUR, GB→GBP, JP→JPY.

### 2. Pull Macro Indicators

Call `qa_macroeconomic` for key indicators:
- GDP growth (quarterly series)
- CPI/inflation (monthly series)
- Unemployment rate (monthly series)
- Policy rate / central bank rate

Use wildcard mnemonic patterns to discover available series (e.g., "US\*GDP\*", "US\*CPI\*").

### 3. Get the Yield Curve

Call `interest_rate_curve` (list then calculate) for the country's government curve.

Extract yields at standard tenors. Compute: 2s10s slope, 3M-10Y slope, 5s30s slope. Classify curve shape.

### 4. Decompose Real Rates

Call `inflation_curve` (search then calculate) for the currency.

Compute real rate = nominal minus breakeven at key tenors. Assess whether real rates are accommodative or restrictive.

### 5. Swap Spread Analysis

Call `ir_swap` (list then price) at 2Y, 5Y, 10Y.

Compute swap spread = swap rate minus government yield at each tenor. Assess financial conditions.

### 6. Historical Yield Context

Call `tscc_historical_pricing_summaries` for the benchmark yield RIC with the user's timeframe.

Assess: where current yields sit in the historical range, trend direction.

### 7. Synthesize the Dashboard

Present: macro summary table, yield curve with slope metrics, real rate decomposition, swap spread table, historical context, and overall macro-rates assessment (2-3 sentences).

## Output Format

Present as a dashboard with clearly labeled sections. Lead with the overall macro assessment, then detail each component.

© LSEG · Apache-2.0 · anthropics/financial-services

Similar slash commands

Slash commands catalog →
macro-regime-detector tradermonty macro-regime-detector — a skill for Claude Code and other code assistants that identifies structural macro regime shifts across a 1–2 year horizon using cross-asset ratio analysis. CX Codex +1 4,100installs macro-liquidity star23 macro-liquidity tracks global financial system liquidity and generates risk alerts using four core market indicators. Helps determine whether money is flowing into risk assets. CX Codex +1 572installs llmquant-macro LLMQuant llmquant-macro — a skill for Claude Code and five other environments that routes macro research: dashboards, Fed and central-bank previews, macro-to-portfolio mapping. It opens the matching workflow and pulls data from LLMQuant Data. CX Codex +1 557installs analyzing-macro-malware-in-office-documents mahipal analyzing-macro-malware-in-office-documents examines malicious VBA macros in Word, Excel, and PowerPoint files. Use it to inspect suspicious attachments and reconstruct an attack chain. CX Codex +1 350installs macro_crypto_correlation_scanner_agent_prompt disler The macro_crypto_correlation_scanner_agent_prompt command compares current macro conditions and traditional markets with crypto price action. Use it to examine correlations, sector sensitivity, and upcoming catalysts in a structured report. CX Codex +1 ★ 3,990repo stars Currency Converter — Fiat & Crypto Cross-Rates axel-belfort Currency Converter — Fiat & Crypto Cross-Rates is an MCP server for converting fiat and crypto currencies at live rates in Claude Code, without API keys. CX Codex +1 4,486installs

From the same set116

The whole set →
comps The comps Claude Code command builds a comparable-company analysis using operating metrics and valuation multiples. Give it a company name or ticker to generate an Excel workbook and a summary. CX Codex +1 ★ 41,441repo stars earnings earnings — a command for Claude Code, Codex, GitHub Copilot and Gemini CLI that compiles quarterly financial results and generates an equity research report in DOCX. CX Codex +1 ★ 41,441repo stars review-fi-portfolio The review-fi-portfolio Claude Code command reviews fixed-income portfolios using prices, cashflows, and rate scenarios. Supply bond identifiers to start the analysis. CX Codex +1 ★ 41,441repo stars research-equity research-equity is a Claude Code command that compiles equity research summaries using consensus estimates, company fundamentals, and price data. Runs when analyzing a stock by ticker. CX Codex +1 ★ 41,441repo stars analyze-swap-curve The analyze-swap-curve Claude Code command analyzes swap curves against government yields and inflation breakevens. It calculates spreads and curve metrics, then identifies possible trades. CX Codex +1 ★ 41,441repo stars analyze-option-vol The analyze-option-vol Claude Code command analyzes option volatility through volatility surfaces, Greeks, and an implied-versus-realized comparison. For FX pairs, it selects a separate surface tool. CX Codex +1 ★ 41,441repo stars analyze-fx-carry The analyze-fx-carry Claude Code command evaluates FX carry for a currency pair using forwards, volatility, and historical pricing. Give it a pair to get a tenor-by-tenor carry profile and a summary report. CX Codex +1 ★ 41,441repo stars analyze-bond-rv analyze-bond-rv — a Claude Code command for relative value bond analysis against yield and credit spread curves. It runs parallel rate shock scenarios and determines rich or cheap valuation. CX Codex +1 ★ 41,441repo stars

Project sponsors

Companies that keep this analytics open