Skip to main content
command CX Codex official · Anthropic

analyze-bond-rv — Claude Code command: what it does, how to install

analyze-bond-rv — a Claude Code command for relative value bond analysis against yield and credit spread curves. It runs parallel rate shock scenarios and determines rich or cheap valuation.

Apache-2.0 ★ 41,441 updated 2026-09-21

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-services
Open on GitHub

What analyze-bond-rv does

The command calculates bond analytics using an ISIN, RIC, or CUSIP identifier against risk-free yield curves and credit spreads. It fetches clean and dirty pricing, yield, duration, convexity, and DV01 through bond_price. If provided with a benchmark bond, it evaluates both instruments side by side.

Next, the workflow queries interest_rate_curve to interpolate the G-spread and retrieves the issuer curve via credit_curve. Residual spread dictates the final assessment: positive indicates cheap, negative marks rich. It then triggers yieldbook_scenario to simulate parallel rate shocks across -100bp, -50bp, +50bp, and +100bp shifts.

Execution depends on LSEG analytics tools. Without configured connectors for bond pricing and Yield Book scenarios, the command cannot pull curve data.

What it helps with

  • calculate bond yield, duration, convexity, and DV01 using ISIN, RIC, or CUSIP
  • decompose spreads into G-spread and credit curves to identify rich or cheap bonds
  • run parallel rate shift stress tests from -100bp to +100bp with P&L estimation
  • compare target bond pricing directly against a benchmark issue

Example prompts for the agent

  • /analyze-bond-rv US912828ZT04
  • /analyze-bond-rv XS2010038842 vs DE0001102580
  • Analyze relative value for bond US037833EK13 vs benchmark US912828ZT04

How to install analyze-bond-rv

1Plugin marketplace

/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-services

2Manually: put the files in place

.claude/commands/analyze-bond-rv.md

Call it with /analyze-bond-rv. For all projects use ~/.claude/commands/

Questions about analyze-bond-rv

How to install analyze-bond-rv in Claude Code?

Add the marketplace by running /plugin marketplace add anthropics/financial-services, then install the package with /plugin install lseg@claude-for-financial-services.

What does analyze-bond-rv do?

It prices bonds, decomposes spreads across risk-free and credit curves, runs rate shock scenarios, and outputs a rich or cheap relative value verdict.

What is required to run analyze-bond-rv?

The command requires configured LSEG analytics tools, specifically bond_price, interest_rate_curve, credit_curve, and yieldbook_scenario.

Source text

analyze-bond-rv.md · Apache-2.0
---
description: Analyze a bond's relative value vs yield curves and credit spreads with scenario stress testing
argument-hint: "<ISIN, RIC, or CUSIP> [vs benchmark]"
---

# Analyze Bond Relative Value

> This command uses LSEG bond pricing, yield curves, credit curves, and scenario analysis tools. See [CONNECTORS.md](../CONNECTORS.md) for available tools.

Perform relative value analysis on one or more bonds by combining pricing analytics, yield curve context, credit spread decomposition, and rate shock scenarios.

See the **bond-relative-value** skill for domain knowledge on spread frameworks and rich/cheap assessment.

## Workflow

### 1. Gather Bond Identifiers

Ask the user for:
- Bond identifier(s) — ISIN, RIC, or CUSIP (required)
- Optional benchmark bond for comparison
- Valuation date (optional, defaults to today)

### 2. Price the Bond(s)

Call `bond_price` with the identifier(s).

Extract: clean/dirty price, yield, duration, convexity, DV01, currency.

If benchmark provided, price that too.

### 3. Get the Risk-Free Yield Curve

Call `interest_rate_curve` (list then calculate) for the bond's currency.

Interpolate at the bond's maturity to compute G-spread.

### 4. Get the Credit Spread Curve

Call `credit_curve` (search by country/issuerType, then calculate).

Compute residual spread = bond G-spread minus credit curve spread at matching maturity. Positive residual = cheap; negative = rich.

### 5. Run Scenario Analysis

Call `yieldbook_scenario` with parallel rate shifts: -100bp, -50bp, 0bp, +50bp, +100bp.

Extract price change and P&L under each scenario.

### 6. Synthesize the Report

Present: bond summary table, spread decomposition (G-spread, credit spread, residual), scenario P&L table, and rich/cheap assessment.

If benchmark provided, include side-by-side comparison.

## Output Format

Lead with the rich/cheap assessment and supporting evidence. Follow with spread decomposition and scenario tables.

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

Similar slash commands

All slash commands for Finance and business →

From the same set116

The whole set →
macro-rates The macro-rates Claude Code command builds a macro and rates dashboard for a selected country. It covers economic indicators, yield curves, real rates, and swap spreads. CX Codex +1 ★ 41,441repo stars analyze-swap-curve The analyze-swap-curve Claude Code command analyzes swap curves against government yields and inflation breakevens. It calculates spreads and curve metrics, then identifies possible trades. CX Codex +1 ★ 41,441repo stars analyze-option-vol The analyze-option-vol Claude Code command analyzes option volatility through volatility surfaces, Greeks, and an implied-versus-realized comparison. For FX pairs, it selects a separate surface tool. CX Codex +1 ★ 41,441repo stars analyze-fx-carry The analyze-fx-carry Claude Code command evaluates FX carry for a currency pair using forwards, volatility, and historical pricing. Give it a pair to get a tenor-by-tenor carry profile and a summary report. CX Codex +1 ★ 41,441repo stars analyze-bond-basis The analyze-bond-basis command for Claude Code analyzes bond futures basis. It assesses trading opportunities by identifying cheapest-to-deliver bonds and calculating implied repo rates. CX Codex +1 ★ 41,441repo stars valuation-reviewer valuation-reviewer — a Claude Code subagent reviews fund portfolio valuations and prepares LP reporting materials. It handles quarter-end valuation reviews, not deal-time underwriting. CX Codex ★ 41,441repo stars statement-auditor statement-auditor — a subagent for Claude Code that audits batches of LP capital-account statements before distribution. It reconciles balances, allocations, and fees against the fund NAV pack. CX Codex ★ 41,441repo stars pitch-agent pitch-agent is a Claude Code subagent that drafts an investment pitch from a target company and its strategic situation. It builds valuation materials and fills a bank PowerPoint template. CX Codex ★ 41,441repo stars

Project sponsors

Companies that keep this analytics open