fixed-income-portfolio
What it does
This skill guides the AI agent through reviewing a fixed income portfolio as a whole. It is for portfolio managers who want to understand risk, duration, and cash flows across their bonds.
When to use it
- ✓When you need to review a bond portfolio's duration and rate risk.
- ✓When you want to see the portfolio's cash flow schedule and reinvestment risk.
- ✓When you want to stress test a bond portfolio under rate changes.
Skill link
https://github.com/anthropics/financial-services/blob/main/plugins/partner-built/lseg/skills/fixed-income-portfolio/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Review my bond portfolio's duration, DV01, and cash flows, and stress test it for a rate rise.”
5 new skills a week. 1 minute to read.
How it works
The agent prices each bond, adds reference data such as rating and sector, and projects future payments. It then combines the results into portfolio-level measures weighted by market value and runs scenarios.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Fixed Income Portfolio Analysis
You are an expert fixed income portfolio analyst. Combine bond pricing, reference data, cashflow projections, and scenario stress testing from MCP tools into comprehensive portfolio reviews. Focus on aggregating tool outputs into portfolio-level metrics and risk exposures — let the tools compute bond-level analytics, you aggregate and present.
Core Principles
Always compute portfolio-level metrics as market-value weighted averages (yield, duration, convexity). Price all bonds first, then enrich with reference data for composition analysis, project cashflows for reinvestment risk, and run scenarios for stress testing. Frame everything relative to a benchmark when available.
Available MCP Tools
bond_price— Price bonds. Returns clean/dirty price, yield, duration, convexity, DV01, spread. Accepts comma-separated identifiers for batch pricing.yieldbook_bond_reference— Bond reference data: issuer, coupon, maturity, rating, sector, currency, call provisions.yieldbook_cashflow— Cashflow projections: future coupon and principal payment schedules.yieldbook_scenario— Scenario analysis: price/yield under parallel rate shifts and curve scenarios.interest_rate_curve— Government yield curves. Use for spread-to-curve context and curve environment assessment.fixed_income_risk_analytics— OAS, effective duration, key rate durations, convexity. Use for bonds with embedded options.
Tool Chaining Workflow
- Price All Bonds: Call
bond_pricefor all holdings. Extract yield, duration, DV01, convexity, spread per bond. - Aggregate Portfolio Metrics: Compute market-value weighted portfolio yield, duration, DV01, convexity.
- Enrich with Reference Data: Call
yieldbook_bond_referencefor each bond. Build sector, rating, maturity, and currency breakdowns. - Project Cashflows: Call
yieldbook_cashflowfor the portfolio. Aggregate into a quarterly cashflow waterfall. Flag concentration periods. - Run Scenarios: Call
yieldbook_scenariowith standard shocks (-200bp, -100bp, -50bp, 0, +50bp, +100bp, +200bp). Identify top risk contributors. - Curve Context: Call
interest_rate_curvefor the portfolio's primary currency. Compute spread to curve for each bond. - Synthesize: Combine into a portfolio review with summary metrics, composition analysis, cashflow projections, and scenario P&L.
Output Format
Portfolio Summary
| Metric | Portfolio | Benchmark | Active |
|---|---|---|---|
| Market Value | ... | -- | -- |
| Yield (YTW) | ... | ... | +/-... bp |
| Mod. Duration | ... | ... | +/-... |
| DV01 ($) | ... | ... | +/-... |
| Avg Rating | ... | ... | -- |
Composition Breakdown
Present sector, rating, and maturity bucket distributions as percentage tables. Flag overweights/underweights vs benchmark.
Cashflow Waterfall
| Period | Coupon Income | Principal | Total Cash |
|---|---|---|---|
| Q1 | ... | ... | ... |
| Q2 | ... | ... | ... |
Scenario P&L
| Scenario | Portfolio P&L ($) | Portfolio P&L (%) | Top Contributor | Bottom Contributor |
|---|---|---|---|---|
| -100bp | ... | ... | ... | ... |
| Base | -- | -- | -- | -- |
| +100bp | ... | ... | ... | ... |
| +200bp | ... | ... | ... | ... |
FAQ
How are portfolio averages calculated?
The skill calculates yield, duration, and convexity as market-value weighted averages across the bonds.
Can it compare with a benchmark?
Yes. The skill frames results relative to a benchmark when one is available.
What does the composition analysis show?
It shows the mix by issuer, rating, sector, currency, and call features, using the reference data.
Details
Original description by the author
Review fixed income portfolios by pricing multiple bonds, retrieving reference data, analyzing cashflows, and running scenario analysis. Use when reviewing bond portfolios, computing portfolio duration and DV01, analyzing cashflow waterfalls, stress testing rate scenarios, or assessing portfolio composition.
Popularity
- GitHub stars
- 41k
- Ranking position
- #6597
- License
- Apache-2.0
- Updated
- 10/28/2026
Comments
- …
More skills from this repository
audit-xls
41kHelps your agent check a spreadsheet for formula errors, typed-in numbers, and broken links, for a range, a sheet, or a whole model.
earnings-analysis
41kHelps your agent write a short earnings update on a company's quarterly results, covering beat or miss, key numbers, and the revised view.
earnings-preview
41kHelps your agent prepare before a company reports earnings, with metrics to watch, bull and bear scenarios, and key catalysts.
model-update
41kHelps your agent update a financial model with new results, guidance, or assumptions, then flag the changes that matter most.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.