macro-rates

macro-rates is a command for Claude Code from yuping322/financial-services-plugins-new. It costs 18 tokens per session (566 once invoked), scanned A, original, Apache-2.0.

A macroeconomic and interest-rate dashboard command. It brings together economic measures such as growth, inflation, unemployment, and policy rates with government yield curves and swap-market information.

In plain words
What is it for?
It is for monitoring a country’s economy, examining yield-curve slopes and real rates, and reviewing swap spreads over a chosen history.
Why use it?
It puts the main signals behind interest-rate markets in one place, making it easier to see how economic conditions relate to borrowing costs and curve shape.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is This command uses LSEG macroeconomic data, yield curves, inflation curves, swap pricing, and historical data tools. See [CONNECTORS.md](../CONNECTORS.md) for av.

Part of the lseg plugin — 8 skills, 8 commands shipped together

Good fit It is for monitoring a country’s economy, examining yield-curve slopes and real rates, and reviewing swap spreads over a chosen history.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/yuping322/financial-services-plugins-new
agentmods
npx agentmods add commands/yuping322/financial-services-plugins-new/macro-rates

Made for: Claude Code.

Or install lseg, the plugin that ships this one along with the rest of its 8 skills, 8 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for macro-rates

README.md
[![agentmods](https://agentmods.dev/badge/commands/yuping322/financial-services-plugins-new/macro-rates/github.svg)](https://agentmods.dev/commands/yuping322/financial-services-plugins-new/macro-rates)
Your own site
<a href="https://agentmods.dev/commands/yuping322/financial-services-plugins-new/macro-rates"><img src="https://agentmods.dev/badge/commands/yuping322/financial-services-plugins-new/macro-rates/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for macro-rates

Your own site · 80×15
<a href="https://agentmods.dev/commands/yuping322/financial-services-plugins-new/macro-rates"><img src="https://agentmods.dev/badge/commands/yuping322/financial-services-plugins-new/macro-rates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00566
Opus 5 $0.00009 $0.00283
Sonnet 5 $0.00004 $0.00113
Haiku 4.5 $0.00002 $0.00057

Measured 5d ago against content hash 5e0c91baa7be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

macro-rates scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

partner-built/lseg/commands/macro-rates.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Macro & Rates Dashboard

This command uses LSEG macroeconomic data, yield curves, inflation curves, swap pricing, and historical data tools. See 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).

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 66 lines · 18 tokens per session scan A 5e0c91baa7be

Subscribe to this mod's changes

macro-rates is a command published in the GitHub repository yuping322/financial-services-plugins-new (17 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 566 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.