PluginBench
Skill
Official
Pass
Audit score 90

swap-curve-strategy

anthropics/financial-services

Analyze interest rate swap curves, compute spreads, and identify curve trade opportunities across tenors and currencies.

What is swap-curve-strategy?

Expert rates strategist tool for swap curve analysis that combines swap pricing, government yields, and inflation curves to identify trading opportunities. Use when analyzing curve shape, computing swap spreads, decomposing real rates, or identifying steepener/flattener/butterfly trades.

  • Price swaps at multiple tenors (2Y, 5Y, 7Y, 10Y, 20Y, 30Y) and extract par rates and DV01
  • Overlay government yield curves to compute swap spreads at each tenor
  • Decompose real rates by combining nominal swap rates with inflation breakevens
  • Calculate curve metrics including 2s10s slope, 5s30s slope, and butterfly spreads
  • Generate DV01-neutral curve trade recommendations with carry and roll-down estimates
  • Support multi-currency swap curve analysis and historical trend context

How to install swap-curve-strategy

npx skills add https://github.com/anthropics/financial-services --skill swap-curve-strategy
Prerequisites
  • Access to MCP tools: ir_swap, interest_rate_curve, inflation_curve, tscc_historical_pricing_summaries, qa_macroeconomic
  • Target currency and desired tenor range specified
  • Current market data for swap rates, government yields, and inflation breakevens
Claude Code
Cursor
Windsurf
Cline

How to use swap-curve-strategy

  1. 1.Call ir_swap in list mode to discover available swap templates and indices for your target currency
  2. 2.Call ir_swap in price mode for standard tenors (2Y, 5Y, 7Y, 10Y, 20Y, 30Y) to build the full swap curve
  3. 3.Call interest_rate_curve to retrieve government yields at matching tenors and compute swap spreads
  4. 4.Call inflation_curve to retrieve inflation breakevens and decompose real rates from nominal swap rates
  5. 5.Calculate curve metrics: 2s10s slope, 5s30s slope, 2s5s10s butterfly, and classify curve shape
  6. 6.Synthesize results into a complete analysis table with swap curve, spreads, real rates, and DV01-neutral trade recommendations including carry and roll-down estimates

Use cases

Good for
  • Identify 2s10s steepener or flattener trades based on current curve slope and historical context
  • Decompose real rate signals across the curve to assess monetary policy accommodation
  • Compute swap spreads to evaluate credit conditions and funding cost expectations
  • Analyze curve butterfly trades by examining 2s5s10s convexity
  • Compare swap curves across currencies to identify relative value opportunities
Who it's for
  • Fixed income strategists and traders
  • Rates desk analysts
  • Portfolio managers managing duration and curve exposure
  • Quantitative researchers analyzing yield curve dynamics
  • Financial advisors evaluating macro rate expectations

swap-curve-strategy FAQ

What is a swap spread and why does it matter?

Swap spread = swap rate minus government yield at the same tenor. It reflects credit risk, funding costs, and supply/demand dynamics. Widening spreads signal tightening credit conditions; narrowing spreads suggest easing.

How do I identify a steepener trade?

A 2s10s steepener profits if the 10Y swap rate rises relative to the 2Y rate. Structure: receive 2Y, pay 10Y (DV01-neutral notionals). Thesis typically involves expectations of higher long-term rates or curve normalization.

What does real rate decomposition tell me?

Real rate = nominal swap rate minus inflation breakeven. Decomposition reveals whether curve moves are driven by rate expectations or inflation expectations, helping distinguish monetary policy signals from inflation dynamics.

How should I size curve trades?

Use DV01-neutral sizing: calculate DV01 at each tenor, then set notionals so the trade's net duration is zero. This isolates curve shape risk and removes parallel shift exposure.

What historical context should I consider?

Compare current curve metrics (2s10s slope, butterfly) to historical averages and extremes. Use tscc_historical_pricing_summaries to assess whether the current curve shape is steep/flat relative to history and identify mean-reversion opportunities.

Full instructions (SKILL.md)

Source of truth, from anthropics/financial-services.


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

TenorSwap Rate (%)Govt Yield (%)Swap Spread (bp)DV01Inflation BE (%)Real Rate (%)
2Y..................
5Y..................
10Y..................
30Y..................

Curve Metrics

MetricCurrent
2s10s slope (bp)...
5s30s slope (bp)...
2s5s10s butterfly (bp)...
Curve shapeNormal / Flat / Inverted / Humped

Real Rate Decomposition

TenorNominal SwapInflation BEReal RateSignal
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).