Skip to main content
command CX Codex official · Anthropic

review-fi-portfolio — Claude Code command for portfolio analysis

The review-fi-portfolio Claude Code command reviews fixed-income portfolios using prices, cashflows, and rate scenarios. Supply bond identifiers to start the analysis.

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 review-fi-portfolio does

The command builds a risk and return report for a fixed-income portfolio. It retrieves bond prices and metrics, adds reference data, projects quarterly cashflows, and tests rate shifts from -200bp to +200bp. The report also breaks down portfolio composition, risk contributions by bond, and spreads to the yield curve.

Bond identifiers are required: ISINs, CUSIPs, or RICs. Position sizes are optional; when omitted, the command assigns equal weights. A scenario can be passed as an argument, while the valuation date defaults to today.

Calculations call LSEG tools for bond pricing, YieldBook analytics, and yield curves. Per-bond figures include price, yield, duration, convexity, and DV01, alongside portfolio-level aggregates.

What it helps with

  • measure yield and rate risk across a bond portfolio
  • compare portfolio results under different rate shifts
  • break down holdings by sector, rating, and currency
  • map quarterly coupon payments and maturities

Example prompts for the agent

  • Review the portfolio containing bonds US0378331005,US5949181045
  • Run a +100bp scenario for bonds US0378331005,US5949181045
  • Create a report for bond US0378331005 with a 25% position weight

How to install review-fi-portfolio

1Plugin marketplace

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

2Manually: put the files in place

.claude/commands/review-fi-portfolio.md

Call it with /review-fi-portfolio. For all projects use ~/.claude/commands/

Questions about review-fi-portfolio

How do I install review-fi-portfolio in Claude Code?

Run /plugin marketplace add anthropics/financial-services, then run /plugin install lseg@claude-for-financial-services. The command file is .claude/commands/review-fi-portfolio.md.

What does review-fi-portfolio do?

It prepares a fixed-income portfolio report with bond pricing, reference data, projected cashflows, rate-scenario analysis, and yield-curve exposure.

What does review-fi-portfolio need to run?

Provide bond identifiers as ISINs, CUSIPs, or RICs. The command calls LSEG tools for pricing, YieldBook analytics, and yield curves.

Source text

review-fi-portfolio.md · Apache-2.0
---
description: Review a fixed income portfolio with pricing, reference data, cashflows, and scenario analysis
argument-hint: "<ISIN1,ISIN2,...> [scenario e.g. +100bp]"
---

# Review Fixed Income Portfolio

> This command uses LSEG bond pricing, YieldBook analytics, and yield curve tools. See [CONNECTORS.md](../CONNECTORS.md) for available tools.

Produce a consolidated fixed income portfolio risk and return report by pricing all holdings, enriching with reference data, projecting cashflows, and stress testing under rate scenarios.

See the **fixed-income-portfolio** skill for domain knowledge on portfolio analytics and scenario analysis.

## Workflow

### 1. Gather Portfolio Holdings

Ask the user for:
- Bond identifiers (required) — comma-separated ISINs, CUSIPs, or RICs
- Position sizes/weights (optional — if not provided, assume equal weight)
- Specific scenario to test (optional — e.g., "+100bp", defaults to standard grid)
- Valuation date (optional, defaults to today)

### 2. Price All Bonds

Call `bond_price` with all identifiers.

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

Aggregate portfolio-level: weighted yield, weighted duration, total DV01, total market value.

### 3. Enrich with Reference Data

Call `yieldbook_bond_reference` for each bond.

Extract: security type, sector, ratings, coupon type, call features, issuer, country.

Build composition breakdowns: by sector, rating, maturity bucket, currency.

### 4. Project Cashflows

Call `yieldbook_cashflow` for each bond.

Aggregate into quarterly cashflow waterfall. Flag periods with concentrated maturities.

### 5. Run Scenario Analysis

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

Identify which bonds contribute most to upside and downside risk.

### 6. Curve Context

Call `interest_rate_curve` for the portfolio's primary currency.

Compute spread to curve for each bond. Assess curve environment.

### 7. Synthesize the Report

Present: portfolio summary metrics, composition breakdowns, cashflow waterfall, scenario P&L table with risk contributors, and curve exposure.

## Output Format

Lead with the portfolio summary metrics, then detail composition, cashflows, and risk analysis in sections.

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

Similar slash commands

All slash commands for Finance and business →

From the same set116

The whole set →
debug-model debug-model — a Claude Code command that checks financial models for formula and logic errors. Run it to audit an .xlsx model for balance issues, hardcoded overrides, and broken references. CX Codex +1 ★ 41,441repo stars dcf This Claude Code command builds a company DCF valuation and checks it against public peers. It uses comparable-company multiples to shape valuation assumptions. CX Codex +1 ★ 41,441repo stars comps The comps Claude Code command builds a comparable-company analysis using operating metrics and valuation multiples. Give it a company name or ticker to generate an Excel workbook and a summary. CX Codex +1 ★ 41,441repo stars earnings earnings — a command for Claude Code, Codex, GitHub Copilot and Gemini CLI that compiles quarterly financial results and generates an equity research report in DOCX. CX Codex +1 ★ 41,441repo stars research-equity research-equity is a Claude Code command that compiles equity research summaries using consensus estimates, company fundamentals, and price data. Runs when analyzing a stock by ticker. CX Codex +1 ★ 41,441repo stars 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

Project sponsors

Companies that keep this analytics open