Communitygithub.com

固定收益投資組合分析

透過對多檔債券定價、擷取參考資料、分析現金流量以及執行情境分析,審查固定收益投資組合。適用於債券投資組合審查、計算投資組合久期與DV01、分析現金流量瀑布、壓力測試利率情境或評估投資組合組成。

固定收益投資組合分析 是什麼?

此技能可讓AI代理解析固定收益投資組合,利用多個MCP工具進行全面的投資組合審查。它透過工具鏈結工作流程,引導AI代理按標準步驟操作:首先對所有債券定價以計算收益、存續期與DV01;接著用參考資料豐富每個債券的資訊;然後預測現金流量以評估再投資風險;最後進行利率情境壓力測試。支援的MCP工具包括債券定價(bond_price)、參考資料查詢(yieldbook_bond_reference)、現金流量預測(yieldbook_cashflow)、情境分析(yieldbook_scenario)、公債殖利率曲線(interest_rate_curve)以及內含選擇權債券風險分析(fixed_income_risk_analytics)。對於需要彙總投資組合層級指標、比較基準指數、並提供結構化輸出(包括投資組合摘要表、組成分析、現金流量瀑布以及情境損益表)的開發者而言,此技能相當實用。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/leecyno1/boutique-skills/tree/HEAD/skills/default/anthropic-fs-lseg-fixed-income-portfolio

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

固定收益投資組合分析 是做什麼的?

您是固定收益投資組合分析的專家。將來自MCP工具的債券定價、參考資料、現金流量預測以及情境壓力測試結果整合成全面的投資組合審查報告。專注於將工具輸出彙總為投資組合層級指標與風險暴露——讓工具計算個別債券分析,您負責彙總與呈現。

核心原則

始終以市值加權平均值計算投資組合層級指標(收益率、存續期、凸性)。先對所有債券進行定價,再用參考資料豐富資料以進行組成分析,預測現金流量以評估再投資風險,最後執行情境壓力測試。當有基準指數時,所有分析均相對於基準指數進行比較。

可用MCP工具

  • bond_price — 債券定價。傳回淨價/含息價格、收益率、存續期、凸性、DV01、利差。接受逗號分隔的識別碼進行批次定價。
  • yieldbook_bond_reference — 債券參考資料:發行人、票面利率、到期日、評級、行業、幣別、贖回條款。
  • yieldbook_cashflow — 現金流量預測:未來利息和本金的支付時間表。
  • yieldbook_scenario — 情境分析:在平行利率變動與曲線情境下的價格/收益率。
  • interest_rate_curve — 政府公債殖利率曲線。用於利差對曲線的背景分析與曲線環境評估。
  • fixed_income_risk_analytics — OAS、有效存續期、關鍵利率存續期、凸性。用於含內嵌選擇權的債券。

工具鏈結工作流程

  1. 對所有債券定價: 對所有持倉呼叫 bond_price。提取每個債券的收益率、存續期、DV01、凸性、利差。
  2. 彙總投資組合指標: 計算市值加權的投資組合收益率、存續期、DV01、凸性。
  3. 用參考資料豐富資料: 對每個債券呼叫 yieldbook_bond_reference。建立行業、評級、到期日與幣別的分佈。
  4. 預測現金流量: 對投資組合呼叫 yieldbook_cashflow。彙總為季度現金流量瀑布。標記集中償還期間。
  5. 執行情境分析: 使用標準衝擊(-200bp、-100bp、-50bp、0、+50bp、+100bp、+200bp)呼叫 yieldbook_scenario。識別最大風險貢獻者。
  6. 曲線背景: 對投資組合的主要幣別呼叫 interest_rate_curve。計算每個債券對曲線的利差。
  7. 綜合整理: 將所有結果整合為一份投資組合審查報告,包含摘要指標、組成分析、現金流量預測以及情境損益。

輸出格式

投資組合摘要

指標投資組合基準指數主動差異
市值...----
收益率(最差)......+/-... bp
修正存續期......+/-...
DV01(美元)......+/-...
平均評級......--

組成分析

以百分比表格呈現行業、評級和到期區間的分佈。與基準指數相比,標記超配/低配。

現金流量瀑布

期間利息收入本金總現金
第1季.........
第2季.........

情境損益

情境投資組合損益(美元)投資組合損益(%)最大正貢獻最大負貢獻
-100bp............
基準--------
+100bp............
+200bp............

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

leecyno1/boutique-skills

Track and analyze portfolio company performance against plan. Ingests monthly/quarterly financial packages (Excel, PDF), extracts KPIs, flags variances to budget, and produces summary dashboards. Use when reviewing portfolio company financials, preparing board materials, or monitoring covenant compliance. Triggers on "review portfolio company", "monthly financials", "how is [company] performing", "covenant check", or "portfolio update".

leecyno1/boutique-skills

Analyze portfolio allocation drift and generate rebalancing trade recommendations across accounts. Considers tax implications, transaction costs, and wash sale rules. Triggers on "rebalance", "portfolio drift", "allocation check", "rebalancing trades", or "my portfolio is out of balance".

leecyno1/boutique-skills

Router skill for LLMQuant portfolio-lab workflows. Use when the user needs portfolio exposure maps, what-if simulations, scenario states, or virtual portfolio comparisons.

leecyno1/boutique-skills

Router skill for LLMQuant portfolio workflows. Use when the user needs company profiles, thesis tracking, theme research, watchlist monitoring, or alert management.

leecyno1/boutique-skills

Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.

leecyno1/boutique-skills

Best practices for Remotion - Video creation in React

leecyno1/boutique-skills

Agent skill at skills/default/video-autopilot-kit/SKILL.md

相關技能