Skip to main content
skill CX Codex official · Anthropic

bond-relative-value — Claude Code skill: bond rich/cheap analysis

A Claude skill that breaks a bond's spread into components and stress-tests it under rate shifts to judge rich or cheap.

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

What bond-relative-value does

This skill turns Claude into a fixed income analyst. It pulls pricing, government and credit curves from MCP tools, then splits the total spread into risk-free, credit and residual parts. The residual is what tells you whether the bond is rich or cheap.

The workflow chains tools: bond_price returns yield, Z-spread, duration, convexity and DV01; interest_rate_curve and credit_curve are two-phase, list then calculate; yieldbook_scenario gives price change and P&L under parallel shifts from -100 to +100 bp. tscc_historical_pricing_summaries adds historical context, and fixed_income_risk_analytics covers OAS and key rate durations for callable bonds.

Output is a spread decomposition table, a scenario P&L table and a rich/cheap call with a recommendation. The MCP tools do the math; the skill routes and synthesises. Without those MCP servers connected the chain has nothing to run on, since the skill itself doesn't compute anything.

What it helps with

  • decompose a bond's spread into risk-free, credit and residual parts
  • check whether the spread compensates for the risk taken
  • compute P&L under ±50 and ±100 bp rate shifts
  • compare two bonds after adjusting for the curve
  • see where the current spread sits against its history

Example prompts for the agent

  • Decompose the spread on this bond and tell me if it's rich or cheap
  • Run rate shock scenarios from -100 to +100 bp and show the P&L
  • Compare these two bonds by Z-spread and residual spread

How to install bond-relative-value

1Skills CLI (Vercel)

npx skills add anthropics/financial-services --skill bond-relative-value -a claude-code

2Manually: put the files in place

~/.claude/skills/bond-relative-value/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/bond-relative-value/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about bond-relative-value

How do I install bond-relative-value in Claude Code?

Run npx skills add anthropics/financial-services --skill bond-relative-value -a claude-code. The skill lands at ~/.claude/skills/bond-relative-value/SKILL.md.

What does bond-relative-value do?

It runs relative value analysis on a bond: spread decomposition, rate shock scenarios and a rich, cheap or fair verdict.

What does the skill need to work?

The MCP tools bond_price, interest_rate_curve, credit_curve and yieldbook_scenario. The curve tools are two-phase: list first, then calculate.

Source text

SKILL.md · Apache-2.0
---
name: bond-relative-value
description: Perform relative value analysis on bonds by combining pricing, yield curve context, credit spreads, and scenario stress testing. Use when analyzing bond richness/cheapness, computing spread decomposition, comparing bonds, assessing bond value vs curves, or running rate shock scenarios.
---

# Bond Relative Value Analysis

You are an expert fixed income analyst specializing in relative value. Combine bond pricing, yield curves, credit curves, and scenario analysis from MCP tools to assess whether bonds are rich, cheap, or fair. Focus on routing tool outputs into spread decomposition and scenario tables — let the tools compute, you synthesize and recommend.

## Core Principles

Relative value is about whether a bond's spread adequately compensates for its risks relative to comparable instruments. Always decompose total spread into risk-free + credit + residual components. The residual (what's left after rates and credit) reveals true richness or cheapness. Stress test with scenarios to confirm the view holds under different rate environments.

## Available MCP Tools

- **`bond_price`** — Price bonds. Returns clean/dirty price, yield, duration, convexity, DV01, Z-spread. Accepts ISIN, RIC, or CUSIP.
- **`interest_rate_curve`** — Government and swap yield curves. Two-phase: list then calculate. Use to compute G-spreads.
- **`credit_curve`** — Credit spread curves by issuer type. Two-phase: search by country/issuerType, then calculate. Use to isolate credit component.
- **`yieldbook_scenario`** — Scenario analysis with parallel rate shifts. Returns price change and P&L under each scenario.
- **`tscc_historical_pricing_summaries`** — Historical pricing data. Use for historical spread context and Z-score analysis.
- **`fixed_income_risk_analytics`** — OAS, effective duration, key rate durations. Use for callable bonds and deeper risk decomposition.

## Tool Chaining Workflow

1. **Price the Bond(s):** Call `bond_price` for target and any comparison bonds. Extract yield, Z-spread, duration, convexity, DV01.
2. **Get Risk-Free Curve:** Call `interest_rate_curve` (list then calculate) for the bond's currency. Interpolate at bond maturity to compute G-spread.
3. **Get Credit Curve:** Call `credit_curve` for the issuer's country and type. Extract credit spread at the bond's maturity. Compute residual spread = G-spread minus credit curve spread.
4. **Run Scenarios:** Call `yieldbook_scenario` with parallel shifts (-100bp, -50bp, 0, +50bp, +100bp). Extract price changes and P&L per scenario.
5. **Historical Context (optional):** Call `tscc_historical_pricing_summaries` for the bond to assess where current spread sits vs history.
6. **Synthesize:** Combine spread decomposition, scenario results, and historical context into a rich/cheap assessment.

## Output Format

### Spread Decomposition
| Component | Spread (bp) | % of Total |
|-----------|-------------|------------|
| G-spread (total over govt) | ... | 100% |
| Credit curve spread | ... | ...% |
| Residual (liquidity + technicals) | ... | ...% |

### Scenario P&L
| Scenario | Price Change | P&L (per 100 notional) |
|----------|-------------|----------------------|
| -100bp | ... | ... |
| -50bp | ... | ... |
| Base | ... | ... |
| +50bp | ... | ... |
| +100bp | ... | ... |

### Rich/Cheap Summary
State the primary spread metric, its historical context (percentile, comparison to averages), the residual spread signal, and a clear recommendation: rich (avoid/underweight), cheap (buy/overweight), or fair (neutral). Quantify how many bp of spread move would change the recommendation.

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

Similar skills

All skills for Finance and business →

From the same set61

The whole set →
fsi-strip-profile Builds company profile slides for pitch books and client presentations, with financial data, charts and tables. It asks for focus areas and approval before creating slides. CX Codex +1 1,700installs deck-refresh Swaps figures across an existing presentation without rebuilding slides. For quarterly refreshes, earnings updates, comp rolls and rebased market data. CX Codex +1 1,700installs swap-curve-strategy Analyzes interest rate swap curves, overlays sovereign and inflation data, and recommends DV01-neutral curve trades like steepeners or butterflies. CX Codex +1 1,700installs funding-digest Builds a one-page PowerPoint slide from recent funding rounds and capital markets activity. Use it for a deal flow summary, weekly recap, or company and sector briefing. CX Codex +1 1,700installs ib-check-deck A skill that reviews pitch decks for number mismatches across slides, narrative-data gaps, IB language polish, and visual QC. CX Codex +1 1,700installs tear-sheet Creates audience-specific company tear sheets in Word using S&P Capital IQ data via the Kensho MCP server. Handy for M&A and sales prep. CX Codex +1 1,700installs fx-carry-trade Skill to evaluate FX carry trade opportunities: combines spot rates, forward points, interest rate differentials, and volatility surfaces. Finds the optimal tenor and computes risk-adjusted returns using carry-to-vol ratios. CX Codex +1 1,700installs xlsx-author Skill to create .xlsx files on disk without a running Excel when an agent operates headless. Use it to deliver a finished workbook as a file artifact instead of editing live. CX Codex +1 1,400installs

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