Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Anthropic

swap-curve-strategy — Claude Code skill: what it does, how to install

Analyzes interest rate swap curves, overlays sovereign and inflation data, and recommends DV01-neutral curve trades like steepeners or butterflies.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add anthropics/financial-services --skill swap-curve-strategy -a claude-code
Open on GitHub

What swap-curve-strategy does

This skill orchestrates five MCP financial tools to break down interest rate swap curves. It queries ir_swap to discover available currency templates, then prices standard maturities from 2Y to 30Y. The agent collects par swap rates and DV01 metrics at each tenor. Next, it calls interest_rate_curve for sovereign yields and subtracts government rates from swap quotes, producing the swap spread profile.

The workflow continues into inflation decomposition. By calling inflation_curve, the model isolates inflation breakevens and extracts the real interest rate for each tenor. It calculates curve metrics including the 2s10s slope, 5s30s slope, and 2s5s10s butterfly. From these numbers, it labels curve regimes: normal, flat, inverted, or humped. Macro checks via qa_macroeconomic and historical trends via tscc_historical_pricing_summaries confirm whether signals align with the economic backdrop.

Without configured MCP servers for these financial endpoints, the skill has no curve data to work with. When connected, it delivers complete trade setups. Recommendations specify trade legs, DV01-neutral notionals, three-month carry, roll-down estimates, and stop-loss targets.

What it helps with

  • price multi-tenor interest rate swaps and compute par rates
  • calculate swap spreads against government bond yield curves
  • decompose nominal swap rates into real yields and inflation breakevens
  • evaluate curve slopes and butterflies to classify curve regimes
  • structure DV01-neutral curve trades with carry and roll-down estimates

Example prompts for the agent

  • Build the USD swap curve across 2Y, 5Y, 10Y, and 30Y tenors and show swap spreads to Treasuries.
  • Decompose the 10Y swap rate into inflation breakeven and real yield.
  • Identify swap curve trade opportunities and recommend a DV01-neutral 2s10s steepener.

How to install swap-curve-strategy

1Skills CLI (Vercel)

npx skills add anthropics/financial-services --skill swap-curve-strategy -a claude-code

2Manually: put the files in place

~/.claude/skills/swap-curve-strategy/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/swap-curve-strategy/

From the same set25

The whole set →
earnings-analysis official anthropics Builds quarterly earnings update reports with beat/miss analysis, revised estimates, key metrics, charts, and the effect on the investment thesis. Claude Code CX Codex Cursor +1 3,300installs equity-research official anthropics Builds a stock snapshot from analyst consensus, financials, price history and macro data. Useful when you need to size up a company fast. Claude Code CX Codex Cursor +1 3,200installs competitive-analysis official anthropics A framework for building competitor analysis decks in PowerPoint or chat. It clarifies project scope, then builds verified slides once the outline is approved. Claude Code CX Codex Cursor +1 2,400installs pitch-deck official anthropics Fills an existing investment banking deck template with data from source files. Use it to move figures into established slide layouts, not to build a deck from scratch. Claude Code CX Codex Cursor +1 2,400installs dcf-model official anthropics Builds an institutional-grade DCF valuation model: pulls data from SEC filings and analyst reports, computes WACC and cash flows, and outputs an Excel model with sensitivity analysis. Claude Code CX Codex Cursor +1 2,400installs ppt-template-creator official anthropics A skill that converts PowerPoint templates into self-contained, reusable skills. Analyze your .pptx, extract all layouts and placeholders with exact coordinates, and package everything as a ready-to-use skill. Claude Code CX Codex Cursor +1 2,300installs macro-rates-monitor official anthropics Builds macro and rates dashboards by combining inflation breakevens, yield curves, and swap spreads into a single analysis. Claude Code CX Codex Cursor +1 2,300installs audit-xls official anthropics Audits Excel sheets for formula errors, hardcoded values, and logic breaks. It checks financial model integrity before sharing work with clients or review committees. Claude Code CX Codex Cursor +1 2,200installs

Similar

audit-support official anthropics A skill with SOX 404 control testing methodology, sampling approaches and documentation standards. Useful for audit workpapers and sample selection. Claude Code CX Codex Cursor +1 3,200installs process-optimization official anthropics Analyzes business workflows to find bottlenecks and waiting times. Useful when a procedure takes too many steps or stalls on manual approvals. Claude Code CX Codex Cursor +1 3,200installs status-report official anthropics Generates a structured status report for leadership: KPI metrics with green/yellow/red flags, risks, and decisions needed. Turns project tracker activity into a readable narrative. Claude Code CX Codex Cursor +1 3,100installs journal-entry-prep official anthropics Prepares month-end journal entries with balanced debits and credits, calculation memos, and supporting documentation. Claude Code CX Codex Cursor +1 3,000installs forecast official anthropics Generates commit, best-case, and risk narratives for forecast reviews or manager 1:1s using live CRM data or pipeline exports. Claude Code CX Codex Cursor +1 3,000installs org-planning official anthropics Plans organizational structure, headcount, and hiring sequences. Useful when restructuring teams, balancing reporting lines, and modeling staffing costs. Claude Code CX Codex Cursor +1 2,900installs churn-prevention coreyhaines31 A Claude Code skill for subscription churn: an exit survey at cancellation, an offer matched to the stated reason, and recovery of failed payments. Claude Code CX Codex Cursor +1 120,600installs revops coreyhaines31 This skill helps design RevOps workflows for lead stages, scoring, routing, and marketing-to-sales handoffs. Use it when CRM processes need clear rules. Claude Code CX Codex Cursor +1 113,000installs

Questions about swap-curve-strategy

How to install swap-curve-strategy in Claude Code?

Run npx skills add anthropics/financial-services --skill swap-curve-strategy -a claude-code in your terminal. This adds the skill directly to your Claude Code environment.

What does swap-curve-strategy do?

It prices interest rate swaps across standard maturities, overlays government curves, and computes swap spreads. The agent also decomposes real rates and suggests DV01-neutral curve trades like steepeners or butterflies.

Which MCP tools are needed for swap-curve-strategy?

The skill requires ir_swap for swap pricing, interest_rate_curve for sovereign yields, and inflation_curve for breakevens. It also integrates with tscc_historical_pricing_summaries and qa_macroeconomic for historical context and macro data.

Source text

SKILL.md · Apache-2.0
---
name: swap-curve-strategy
description: Analyze the interest rate swap curve by pricing swaps at multiple tenors, overlaying government and inflation curves, and identifying curve trade opportunities. Use when analyzing swap curves, computing swap spreads, decomposing real rates, identifying steepener/flattener/butterfly trades, or comparing swap rates across currencies.
---

# Swap Curve Strategy Analysis

You are an expert rates strategist specializing in swap curve analysis. Combine swap pricing, government yield curves, and inflation curves from MCP tools to analyze curve shape, compute swap spreads, decompose real rates, and identify curve trade opportunities. Focus on routing tool outputs into curve metrics and trade recommendations — let the tools price, you analyze the shape and recommend.

## Core Principles

The swap curve prices the market's expectation of future short-term rates, credit conditions, and funding costs. Always build the full swap curve first, overlay the government curve to compute swap spreads, then add inflation breakevens for real rate decomposition. Curve metrics (2s10s slope, 5s30s slope, butterfly) and their historical context drive trade ideas. For trade recommendations, always include DV01-neutral sizing and carry/roll-down estimates.

## Available MCP Tools

- **`ir_swap`** — Swap pricing. Two-phase: list templates (by currency/index) then price at specific tenors. Returns par swap rate, DV01, NPV.
- **`interest_rate_curve`** — Government yield curves. Two-phase: list then calculate. Use for swap spread computation and curve shape context.
- **`inflation_curve`** — Inflation breakeven curves. Two-phase: search then calculate. Use for real rate decomposition.
- **`tscc_historical_pricing_summaries`** — Historical pricing data. Use for historical curve slope context and trend analysis.
- **`qa_macroeconomic`** — Macro data. Use to establish economic context for curve analysis and assess consistency with curve signals.

## Tool Chaining Workflow

1. **Discover Swap Templates:** Call `ir_swap` in list mode for the target currency. Identify available indices and tenors.
2. **Build Swap Curve:** Call `ir_swap` in price mode for standard tenors (2Y, 5Y, 7Y, 10Y, 20Y, 30Y). Extract par swap rate and DV01 at each point.
3. **Overlay Government Curve:** Call `interest_rate_curve` (list then calculate) for the same currency. Compute swap spread = swap rate minus government yield at each tenor.
4. **Inflation Decomposition:** Call `inflation_curve` (search then calculate). Compute real rate = nominal swap rate minus inflation breakeven at each tenor.
5. **Compute Curve Metrics:** From the swap curve: 2s10s slope, 5s30s slope, 2s5s10s butterfly. Note curve shape classification.
6. **Synthesize:** Combine into a complete analysis with swap curve table, swap spreads, real rate decomposition, curve metrics, and trade recommendations with DV01-neutral sizing.

## Output Format

### Swap Curve Table
| Tenor | Swap Rate (%) | Govt Yield (%) | Swap Spread (bp) | DV01 | Inflation BE (%) | Real Rate (%) |
|-------|-------------|----------------|-------------------|------|-------------------|---------------|
| 2Y | ... | ... | ... | ... | ... | ... |
| 5Y | ... | ... | ... | ... | ... | ... |
| 10Y | ... | ... | ... | ... | ... | ... |
| 30Y | ... | ... | ... | ... | ... | ... |

### Curve Metrics
| Metric | Current |
|--------|---------|
| 2s10s slope (bp) | ... |
| 5s30s slope (bp) | ... |
| 2s5s10s butterfly (bp) | ... |
| Curve shape | Normal / Flat / Inverted / Humped |

### Real Rate Decomposition
| Tenor | Nominal Swap | Inflation BE | Real Rate | Signal |
|-------|-------------|-------------|-----------|--------|
| 2Y | ...% | ...% | ...% | Accommodative/Restrictive |
| 5Y | ...% | ...% | ...% | Accommodative/Restrictive |
| 10Y | ...% | ...% | ...% | Accommodative/Restrictive |

### Curve Trade Recommendation
For each trade: structure (e.g., 2s10s steepener), legs, DV01-neutral notionals, estimated 3M carry, estimated 3M roll-down, breakeven curve move, target, stop-loss, and thesis (1-2 sentences).

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

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor