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
/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-servicesWhat 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-services2Manually: put the files in place
.claude/commands/analyze-bond-rv.mdCall it with /analyze-bond-rv. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/analyze-bond-rv.mdCall it with /prompts:analyze-bond-rv. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/analyze-bond-rv.prompt.mdManually: put the files in place
.gemini/commands/analyze-bond-rv.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
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