bond-relative-value — скилл для Claude Code: анализ облигаций
Скилл для оценки дешевизны и дороговизны облигаций: раскладывает спред на компоненты и прогоняет сценарии сдвига ставок.
npx skills add anthropics/financial-services --skill bond-relative-value -a claude-codeЧто делает bond-relative-value
Скилл превращает Claude в аналитика по фиксированной доходности. Он берёт цену облигации, кривую доходности и кредитную кривую из MCP-инструментов и раскладывает общий спред на безрисковую часть, кредитную и остаток. Остаток после ставок и кредита показывает, дорогая облигация или дешёвая.
Работа строится на цепочке инструментов: bond_price даёт доходность, Z-спред, дюрацию и DV01, interest_rate_curve и credit_curve работают в два шага — сначала список, потом расчёт, yieldbook_scenario считает P&L при параллельных сдвигах от -100 до +100 bp. Есть и исторический контекст через tscc_historical_pricing_summaries, а для облигаций с офертой — fixed_income_risk_analytics с OAS и ключевыми дюрациями.
На выходе — таблица разложения спреда, таблица сценариев и вывод rich/cheap с рекомендацией. Все расчёты делают MCP-инструменты, скилл только сводит результаты. Без подключённых MCP-серверов с этими инструментами цепочка не запустится, потому что скилл сам ничего не считает.
Какие задачи решает
- разложить спред облигации на безрисковую, кредитную и остаточную части
- понять, заложена ли в цену адекватная премия за риск
- посчитать P&L при сдвиге ставок на ±50 и ±100 bp
- сравнить доходность двух облигаций с поправкой на кривую
- оценить, где текущий спред стоит относительно истории
Примеры запросов агенту
- Разложи спред по облигации и скажи, дорогая она или дешёвая
- Прогони сценарии сдвига ставок от -100 до +100 bp и покажи P&L
- Сравни две облигации по Z-спреду и остаточному спреду
Как установить bond-relative-value
1Через Skills CLI (Vercel)
npx skills add anthropics/financial-services --skill bond-relative-value -a claude-code2Вручную: положить файлы
~/.claude/skills/bond-relative-value/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/bond-relative-value/
1Через Skills CLI (Vercel)
npx skills add anthropics/financial-services --skill bond-relative-value -a codex2Вручную: положить файлы
.agents/skills/bond-relative-value/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add anthropics/financial-services --skill bond-relative-value -a cursor2Вручную: положить файлы
.cursor/skills/bond-relative-value/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install anthropics/financial-services bond-relative-value2Вручную: положить файлы
.github/skills/bond-relative-value/SKILL.md1Через Skills CLI (Vercel)
npx skills add anthropics/financial-services --skill bond-relative-value -a gemini-cli2Командой платформы
gemini skills install https://github.com/anthropics/financial-services --path plugins/partner-built/lseg/skills/bond-relative-valueВручную: положить файлы
.devin/skills/bond-relative-value/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add anthropics/financial-services --skill bond-relative-value -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о bond-relative-value
Как установить bond-relative-value в Claude Code?
Выполните npx skills add anthropics/financial-services --skill bond-relative-value -a claude-code. Файл скилла окажется в ~/.claude/skills/bond-relative-value/SKILL.md.
Что делает bond-relative-value?
Считает относительную стоимость облигации: раскладывает спред на компоненты, прогоняет сценарии сдвига ставок и выдаёт оценку rich, cheap или fair.
Что нужно для работы скилла?
Подключённые MCP-инструменты bond_price, interest_rate_curve, credit_curve и yieldbook_scenario. Кривые работают в два шага: сначала список, потом расчёт.
Исходный текст
SKILL.md · Apache-2.0
--- name: bond-relative-value description: Perform relative value analysis on bonds by combining pricing, yield curve context, credit spreads, and scenario stress testing. Use when analyzing bond richness/cheapness, computing spread decomposition, comparing bonds, assessing bond value vs curves, or running rate shock scenarios. --- # Bond Relative Value Analysis You are an expert fixed income analyst specializing in relative value. Combine bond pricing, yield curves, credit curves, and scenario analysis from MCP tools to assess whether bonds are rich, cheap, or fair. Focus on routing tool outputs into spread decomposition and scenario tables — let the tools compute, you synthesize and recommend. ## Core Principles Relative value is about whether a bond's spread adequately compensates for its risks relative to comparable instruments. Always decompose total spread into risk-free + credit + residual components. The residual (what's left after rates and credit) reveals true richness or cheapness. Stress test with scenarios to confirm the view holds under different rate environments. ## Available MCP Tools - **`bond_price`** — Price bonds. Returns clean/dirty price, yield, duration, convexity, DV01, Z-spread. Accepts ISIN, RIC, or CUSIP. - **`interest_rate_curve`** — Government and swap yield curves. Two-phase: list then calculate. Use to compute G-spreads. - **`credit_curve`** — Credit spread curves by issuer type. Two-phase: search by country/issuerType, then calculate. Use to isolate credit component. - **`yieldbook_scenario`** — Scenario analysis with parallel rate shifts. Returns price change and P&L under each scenario. - **`tscc_historical_pricing_summaries`** — Historical pricing data. Use for historical spread context and Z-score analysis. - **`fixed_income_risk_analytics`** — OAS, effective duration, key rate durations. Use for callable bonds and deeper risk decomposition. ## Tool Chaining Workflow 1. **Price the Bond(s):** Call `bond_price` for target and any comparison bonds. Extract yield, Z-spread, duration, convexity, DV01. 2. **Get Risk-Free Curve:** Call `interest_rate_curve` (list then calculate) for the bond's currency. Interpolate at bond maturity to compute G-spread. 3. **Get Credit Curve:** Call `credit_curve` for the issuer's country and type. Extract credit spread at the bond's maturity. Compute residual spread = G-spread minus credit curve spread. 4. **Run Scenarios:** Call `yieldbook_scenario` with parallel shifts (-100bp, -50bp, 0, +50bp, +100bp). Extract price changes and P&L per scenario. 5. **Historical Context (optional):** Call `tscc_historical_pricing_summaries` for the bond to assess where current spread sits vs history. 6. **Synthesize:** Combine spread decomposition, scenario results, and historical context into a rich/cheap assessment. ## Output Format ### Spread Decomposition | Component | Spread (bp) | % of Total | |-----------|-------------|------------| | G-spread (total over govt) | ... | 100% | | Credit curve spread | ... | ...% | | Residual (liquidity + technicals) | ... | ...% | ### Scenario P&L | Scenario | Price Change | P&L (per 100 notional) | |----------|-------------|----------------------| | -100bp | ... | ... | | -50bp | ... | ... | | Base | ... | ... | | +50bp | ... | ... | | +100bp | ... | ... | ### Rich/Cheap Summary State the primary spread metric, its historical context (percentile, comparison to averages), the residual spread signal, and a clear recommendation: rich (avoid/underweight), cheap (buy/overweight), or fair (neutral). Quantify how many bp of spread move would change the recommendation.
© anthropics · Apache-2.0 · anthropics/financial-services