Skip to content
Skillpedia
Analysis & spreadsheets41k · #6601

swap-curve-strategy

What it does

This skill guides the AI agent through studying the shape of interest rate swap curves and how they compare with government bonds. It is for rates traders and strategists looking for curve trade ideas.

When to use it

  • ✓When you want to analyze the shape of a swap curve.
  • ✓When you need the spread between swap rates and government yields.
  • ✓When you are looking for steepener, flattener, or butterfly trade ideas.

Skill link

https://github.com/anthropics/financial-services/blob/main/plugins/partner-built/lseg/skills/swap-curve-strategy/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/anthropics/financial-services/blob/main/plugins/partner-built/lseg/skills/swap-curve-strategy/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Analyze the dollar swap curve, compare it with government yields, and suggest a curve trade if one stands out.”

5 new skills a week. 1 minute to read.

How it works

The agent prices swaps at several tenors, overlays the government and inflation curves, and computes curve measures. It then suggests trade ideas with sizing and carry notes.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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).

FAQ

What is a swap spread?

It is the difference between a swap rate and a government yield at the same tenor, which the skill computes.

How are trade ideas sized?

The skill says to include DV01-neutral sizing and carry and roll-down estimates with any recommendation.

Can it compare currencies?

Yes. The skill can compare swap rates across currencies.

Details

Original description by the author

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.

repo: anthropics/financial-services

Popularity

GitHub stars
41k
Ranking position
#6601
License
Apache-2.0
Updated
10/28/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills