Communitygithub.com

固定收益投资组合分析

通过对多种债券定价、检索参考数据、分析现金流和运行情景分析来审查固定收益投资组合。用于审查债券组合、计算投资组合久期和DV01、分析现金流瀑布、压力测试利率情景或评估组合构成。

固定收益投资组合分析 是什么?

这是一个专门用于固定收益投资组合分析的AI技能,旨在帮助金融专业人士(如投资组合经理、交易员或风险分析师)深入审查和评估债券组合。该技能支持通过链式调用多个MCP工具(如债券定价、参考数据检索、现金流预测和情景分析)来实现全面的投资组合审查流程。它允许用户先对所有持仓债券进行批量定价,提取收益率、久期、DV01等关键指标,然后计算以市值加权的投资组合级指标。接着,技能可以调用参考数据工具进行部门、评级和到期日分布分析,调用现金流工具生成季度现金流瀑布并识别集中风险,最后通过利率情景模拟(如-100bp、+100bp等冲击)计算组合的损益变动并识别最大风险贡献者。该技能适用于主流AI代理平台(如Claude Code、Cursor等),通过工具链工作流自动聚合多源数据,输出标准化的投资组合总结、构成分析、现金流瀑布和情景损益表,显著提升固定收益投资组合分析的效率与一致性。

兼容平台~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(美元)......+/-...
平均评级......--

构成分析

以百分比表格形式呈现行业、评级和到期区间分布。标注相对于基准的超配/低配。

现金流瀑布

期间票息收入本金总现金流
Q1.........
Q2.........

情景损益

情景投资组合损益(美元)投资组合损益(%)最大正贡献者最大负贡献者
-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

相关技能