Swap curve strategy
Welcome to the skill-jam βοΈπ
npx -y skills add VRIL-LABS/skill-jam --skill swap-curve-strategyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
4.0 KB, 923 tokens by cl100k_base, as published. Nobody here has run it
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
- Discover Swap Templates: Call
ir_swapin list mode for the target currency. Identify available indices and tenors. - Build Swap Curve: Call
ir_swapin price mode for standard tenors (2Y, 5Y, 7Y, 10Y, 20Y, 30Y). Extract par swap rate and DV01 at each point. - 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. - Inflation Decomposition: Call
inflation_curve(search then calculate). Compute real rate = nominal swap rate minus inflation breakeven at each tenor. - Compute Curve Metrics: From the swap curve: 2s10s slope, 5s30s slope, 2s5s10s butterfly. Note curve shape classification.
- 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).