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
/plugin marketplace add anthropics/financial-services
/plugin install lseg@claude-for-financial-servicesWhat 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
+100bpscenario for bondsUS0378331005,US5949181045 - Create a report for bond
US0378331005with a 25% position weight
How to install review-fi-portfolio
1Plugin marketplace
/plugin marketplace add anthropics/financial-services/plugin install lseg@claude-for-financial-services2Manually: put the files in place
.claude/commands/review-fi-portfolio.mdCall it with /review-fi-portfolio. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/review-fi-portfolio.mdCall it with /prompts:review-fi-portfolio. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/review-fi-portfolio.prompt.mdManually: put the files in place
.gemini/commands/review-fi-portfolio.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
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