financial-services 是 Anthropic 官方的金融服务业 Claude 插件生态——10 个端到端工作流 Agent、7 大垂直领域插件、50+ 专业技能、11 个 MCP 数据连接器,同一套源码同时支持 Cowork 插件和 Managed Agent API 两种部署方式。
- 🏦 10 个命名 Agent(Pitch Agent、Market Researcher、GL Reconciler 等),覆盖投行、研报、PE、基金运营全流程
- 📊 50+ 专业技能:DCF 估值、可比公司分析、LBO 模型、盈利分析、尽职调查清单等
- 🔌 11 个 MCP 数据连接器:S&P Global、FactSet、Morningstar、LSEG、PitchBook 等
- 🔄 “一套源码,两种部署”架构:Cowork 插件 ↔ Managed Agent API 共享同一系统提示
- 🛠 完整的开发工具链:lint 检查、技能同步、版本管理、Agent 间 handoff 编排
- 📋 30+ 斜杠命令:
/comps、/dcf、/earnings、/ic-memo等金融专业人士的快捷入口
当用户需要进行金融分析(估值、建模、尽调)、投资银行交易材料制作(Pitch Book、CIM、Teaser)、研报撰写、PE 交易流程、财富管理、基金运营等金融业务时,对应的 skill 自动触发。
One-Line Summary
Section titled “One-Line Summary”financial-services is Anthropic’s official Claude plugin ecosystem for the financial services industry — 10 end-to-end workflow agents, 7 vertical plugins, 50+ specialized skills, 11 MCP data connectors. One source deploys two ways: Cowork plugins and Managed Agent API.
Core Capabilities
Section titled “Core Capabilities”- 🏦 10 named agents (Pitch Agent, Market Researcher, GL Reconciler, etc.) covering IB, ER, PE, fund operations
- 📊 50+ specialized skills: DCF valuation, comps analysis, LBO modeling, earnings analysis, DD checklists
- 🔌 11 MCP data connectors: S&P Global, FactSet, Morningstar, LSEG, PitchBook, and more
- 🔄 “One source, two deploys” architecture: Cowork plugin ↔ Managed Agent API sharing the same system prompt
- 🛠 Complete dev toolchain: lint checking, skill syncing, version bumping, agent-to-agent handoff orchestration
- 📋 30+ slash commands:
/comps,/dcf,/earnings,/ic-memoand more
Trigger Scenarios
Section titled “Trigger Scenarios”When users need financial analysis (valuation, modeling, due diligence), investment banking deal materials (pitch books, CIMs, teasers), equity research reports, PE deal workflows, wealth management, or fund operations, the corresponding skill fires automatically.
File Inventory
Section titled “File Inventory”- financial-services
- .gitignore
- CLAUDE.md
- LICENSE
- README.md
- .claude-plugin
- .github
- .githooks
- scripts
- claude-for-msft-365-install
- .claude-plugin
- README.md
- commands
- examples
- python-bootstrap
- scripts
- managed-agent-cookbooks
- README.md
- earnings-reviewer
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- gl-reconciler
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- kyc-screener
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- market-researcher
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- meeting-prep-agent
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- model-builder
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- month-end-closer
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- pitch-agent
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- statement-auditor
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- valuation-reviewer
- agent.yaml
- README.md
- steering-examples.json
- subagents/
- plugins
- agent-plugins
- earnings-reviewer
- agents
- skills
- gl-reconciler
- agents
- skills
- kyc-screener
- agents
- skills
- market-researcher
- agents
- skills
- meeting-prep-agent
- agents
- skills
- model-builder
- agents
- skills
- month-end-closer
- agents
- skills
- pitch-agent
- agents
- skills
- statement-auditor
- agents
- skills
- valuation-reviewer
- agents
- skills
- earnings-reviewer
- partner-built
- lseg
- README.md
- CONNECTORS.md
- commands
- skills
- spglobal
- README.md
- skills
- lseg
- vertical-plugins
- financial-analysis
- commands
- skills
- .mcp.json
- investment-banking
- commands
- skills
- equity-research
- commands
- skills
- private-equity
- commands
- skills
- wealth-management
- commands
- skills
- fund-admin
- operations
- financial-analysis
- agent-plugins
目录结构分析
Section titled “目录结构分析”financial-services 是一个插件架构型项目,采用三层设计:
- 垂直插件层(vertical-plugins/):技能的”单一事实源”。7 个垂直领域各自携带专属技能和斜杠命令。
financial-analysis是核心插件,承载共享建模技能和全部 11 个 MCP 连接器。 - Agent 插件层(agent-plugins/):自包含的端到端工作流 Agent。每个 Agent 从垂直层”打包”所需技能到自己的
skills/目录,加上系统提示agents/<slug>.md。 - CMA 模板层(managed-agent-cookbooks/):将 Agent 转换为 Managed Agent API 可部署的 YAML 模板,每个 Agent 配有 3 个 depth-1 leaf-worker subagent。
核心设计决策:“同一源码,两个出口”——Cowork 插件和 Managed Agent API 引用同一份系统提示和技能,通过 agent.yaml 的 system.file 字段指向 agent-plugins/ 下的内容。
SKILL.md 结构解析
Section titled “SKILL.md 结构解析”每个技能 SKILL.md 遵循严格的指令式工作流模式。以 dcf-model 为例(~1263 行):
- YAML Frontmatter:
name+description(含触发条件和使用场景边界) - Critical Constraints:非协商性约束(Formula over hardcodes、分步验证、敏感性表格奇数行列要求)
- 分步工作流:Data Retrieval → Revenue Projections → Margin Build → WACC → Terminal Value → Sensitivity Tables → Final Output
- 环境适配:Office JS(Excel 内运行)vs Python/openpyxl(独立 .xlsx 生成),同一套原则适配两种 API
Directory Structure Analysis
Section titled “Directory Structure Analysis”financial-services is a plugin-architecture project with a three-layer design:
- Vertical Plugins Layer (vertical-plugins/): The “single source of truth” for skills. 7 verticals each carry domain-specific skills and slash commands.
financial-analysisis the core plugin carrying shared modeling skills and all 11 MCP connectors. - Agent Plugins Layer (agent-plugins/): Self-contained end-to-end workflow agents. Each agent “bundles” required skills from the vertical layer into its own
skills/directory, plus a system prompt atagents/<slug>.md. - CMA Template Layer (managed-agent-cookbooks/): Converts agents into Managed Agent API-deployable YAML templates, each with 3 depth-1 leaf-worker subagents.
Core design decision: “One source, two exits” — Cowork plugins and Managed Agent API reference the same system prompt and skills, with agent.yaml’s system.file field pointing to content under agent-plugins/.
SKILL.md Structure Analysis
Section titled “SKILL.md Structure Analysis”Each skill SKILL.md follows a strict instructional workflow pattern. Taking dcf-model as an example (~1263 lines):
- YAML Frontmatter:
name+description(with trigger conditions and use-case boundaries) - Critical Constraints: Non-negotiable constraints (Formulas over hardcodes, step-by-step verification, odd-numbered sensitivity table rows/columns)
- Step-by-step Workflow: Data Retrieval → Revenue Projections → Margin Build → WACC → Terminal Value → Sensitivity Tables → Final Output
- Environment Adaptation: Office JS (inside Excel) vs Python/openpyxl (standalone .xlsx generation), same principles adapted for two APIs
核心关系链:vertical-plugins(技能源)→ sync-agent-skills.py(同步)→ agent-plugins(打包)→ agent.yaml(引用)→ Managed Agent API(部署)
每个 Agent 的 subagent 结构遵循流水线分工模式:上游读取(Reader)→ 中间处理(Builder/Modeler)→ 下游输出(Writer/Publisher),只给最后一级 subagent 写权限。
Module Relationships
Section titled “Module Relationships”Core chain: vertical-plugins (skill source) → sync-agent-skills.py (sync) → agent-plugins (bundle) → agent.yaml (reference) → Managed Agent API (deploy)
Each agent’s subagent structure follows a pipeline division of labor pattern: upstream reading (Reader) → midstream processing (Builder/Modeler) → downstream output (Writer/Publisher), with write permission only for the last-stage subagent.
financial-services 模块关系图
graph TD VP[vertical-plugins/
7 个垂直领域] -->|技能源| SYNC[sync-agent-skills.py] SYNC -->|同步技能副本| AP[agent-plugins/
10 个命名 Agent] AP -->|system.file 引用| CMA[managed-agent-cookbooks/
agent.yaml + subagents] CMA -->|POST /v1/agents| DEPLOY[Managed Agent API] AP -->|加载为插件| COWORK[Claude Cowork] MP[marketplace.json] -->|注册 20 个插件| AP MP -->|注册 7 个垂直插件| VP MP -->|注册 2 个合作伙伴| PB[partner-built/] MCP[.mcp.json
11 个数据连接器] -->|提供数据| VP SCRIPTS[scripts/] -->|check.py 验证| VP SCRIPTS -->|check.py 验证| AP SCRIPTS -->|check.py 验证| CMA SCRIPTS -->|orchestrate.py 编排| DEPLOY VP -->|commands/
30+ 斜杠命令| COWORK
脚本全量清单
Section titled “脚本全量清单”| 脚本 | 语言 | 行数 | 复杂度 | 功能 |
|---|---|---|---|---|
check.py | Python | ~195 | ⭐⭐⭐⭐ | 全仓库 Lint + 跨文件引用验证 + 技能漂移检测 + Git hooks 自安装 |
sync-agent-skills.py | Python | ~45 | ⭐⭐ | 将垂直层技能同步到所有 Agent 的打包副本 |
orchestrate.py | Python | ~90 | ⭐⭐⭐⭐ | Agent 间 handoff 事件循环 · 参考实现 |
validate.py | Python | — | ⭐⭐⭐ | 插件 manifest 格式校验 |
version_bump.py | Python | — | ⭐⭐⭐ | 自动 patch 版本升级 · pre-commit hook + CI backstop |
deploy-managed-agent.sh | Bash | — | ⭐⭐⭐ | 一键部署 Agent 到 Managed Agent API |
test-cookbooks.sh | Bash | — | ⭐⭐ | Cookbook 配置测试 |
| Script | Language | Lines | Complexity | Purpose |
|---|---|---|---|---|
check.py | Python | ~195 | ⭐⭐⭐⭐ | Repo-wide lint + cross-file reference validation + skill drift detection + Git hooks self-install |
sync-agent-skills.py | Python | ~45 | ⭐⭐ | Sync vertical-layer skills to all agent bundled copies |
orchestrate.py | Python | ~90 | ⭐⭐⭐⭐ | Inter-agent handoff event loop · reference implementation |
validate.py | Python | — | ⭐⭐⭐ | Plugin manifest format validation |
version_bump.py | Python | — | ⭐⭐⭐ | Auto patch version bump · pre-commit hook + CI backstop |
deploy-managed-agent.sh | Bash | — | ⭐⭐⭐ | One-click deploy agent to Managed Agent API |
test-cookbooks.sh | Bash | — | ⭐⭐ | Cookbook config testing |
check.py — 全仓库质量闸门
Section titled “check.py — 全仓库质量闸门”check.py 是整个仓库的”提交前质量闸门”——它 lint 所有 YAML/JSON/markdown 文件,验证跨文件引用,检测 Agent 打包技能是否与垂直源漂移,并自安装 Git hooks。任何 check.py 失败都会阻止提交。
check.py is the “pre-commit quality gate” for the entire repo — it lints all YAML/JSON/markdown files, validates cross-file references, detects if agent-bundled skills have drifted from vertical sources, and self-installs Git hooks. Any check.py failure blocks commits.
sync-agent-skills.py — 技能同步引擎
Section titled “sync-agent-skills.py — 技能同步引擎”sync-agent-skills.py 实现了 DRY 原则中关键的同步逻辑。技能只在垂直层编辑一次,这个脚本通过 shutil.copytree 将修改传播到所有打包该技能的 Agent。配合 check.py 的漂移检测,形成”编辑→同步→验证”的闭环。
sync-agent-skills.py implements the critical sync logic in the DRY principle. Skills are edited once in the vertical layer; this script propagates changes to all agents that bundle that skill via shutil.copytree. Together with check.py’s drift detection, it forms the “edit → sync → verify” loop.
orchestrate.py — Agent 间 Handoff 编排
Section titled “orchestrate.py — Agent 间 Handoff 编排”orchestrate.py 是一个参考级的事件循环实现,展示如何在 Managed Agent 模式下处理 Agent 间的 handoff_request 事件。它包含三个安全层次:目标 Agent 白名单、JSON Schema 验证、正则提取。文档明确声明这是”参考实现”——生产环境应使用 Temporal/Airflow 等工作流引擎替代。
orchestrate.py is a reference-level event loop implementation showing how to handle handoff_request events between agents in Managed Agent mode. It contains three security layers: target agent allowlist, JSON Schema validation, and regex extraction. The documentation explicitly states this is a “reference implementation” — production should use Temporal/Airflow or similar workflow engines.
- “一套源码,两种部署”架构:Cowork 插件和 Managed Agent API 共用同一份系统提示和技能文件。
agent.yaml的system.file字段通过相对路径指向agent-plugins/,消除了代码重复。 - DRY 技能管理 + 漂移检测:技能只在
vertical-plugins/中编辑,sync-agent-skills.py传播到 Agent,check.py用filecmp.dircmp验证一致性——形成”编辑→同步→验证”的闭环。 - Subagent 最小权限原则:每个 Agent 的 3 个 subagent 采用流水线分工——Reader(只读)→ Processor(处理)→ Writer(唯一有写权限的 leaf),降低风险面。
- 安全 Handoff 协议:
orchestrate.py实现了三层安全(白名单 + Schema + 正则),并提供安全威胁模型分析——明确指出不可信文档的注入攻击风险及缓解措施。 - 零依赖开发工具链:
check.py自安装 Git hooks(无需 Husky/Node),version_bump.py在 commit 和 CI 两层确保版本管理,纯标准库或轻量依赖。
| 模式 | 描述 | 适用场景 |
|---|---|---|
| 技能垂直分层 | vertical-plugins 是单一事实源,agent-plugins 打包副本。通过同步脚本 + 漂移检测保证一致性 | 多产品/多 Agent 共享同一套技能库 |
| 双环境适配 | 同一份 SKILL.md 包含 Office JS 和 Python/openpyxl 两套 API 示例,通过环境检测选择 | Skill 需要在不同运行时环境中工作 |
| Formula-over-hardcode 约束 | SKILL.md 中明确标注 NON-NEGOTIABLE 的规则,配合具体代码示例说明正确和错误做法 | 需要确保 AI 输出质量的关键规则 |
| Subagent 流水线 | Reader → Processor → Writer 的三段式分工,仅最后一级有写权限 | 多步骤端到端工作流的 Agent 设计 |
| 安全 Handoff 协议 | 白名单 + JSON Schema + 正则的三层安全模型,附带威胁模型分析 | Agent 间需要安全传递控制权 |
| 插件市场清单 | marketplace.json 注册所有插件,支持从 GitHub URL 一键安装 | 需要分发的多插件生态 |
| Pattern | Description | Use Case |
|---|---|---|
| Vertical skill layering | vertical-plugins as single source of truth, agent-plugins as bundled copies. Sync script + drift detection ensures consistency | Multiple products/agents sharing the same skill library |
| Dual-environment adaptation | Same SKILL.md includes both Office JS and Python/openpyxl API examples, selected by runtime detection | Skills that need to work in different runtime environments |
| Formula-over-hardcode constraint | SKILL.md marks NON-NEGOTIABLE rules with concrete code examples showing correct vs. incorrect approaches | Critical rules where AI output quality must be guaranteed |
| Subagent pipeline | Reader → Processor → Writer three-stage division, only last stage has write permission | Multi-step end-to-end workflow agent design |
| Secure handoff protocol | Allowlist + JSON Schema + regex three-layer security model with threat model analysis | Secure control transfer between agents |
| Plugin marketplace manifest | marketplace.json registers all plugins, supporting one-click install from GitHub URL | Multi-plugin ecosystem for distribution |
财务领域 → 你的领域:将
financial-analysis替换为你的核心垂直插件(如legal-contracts、medical-records),把 DCF/Comps/LBO 技能替换为你的领域专业方法。MCP 连接器换成你的数据源。Agent 命名(Pitch Agent → Case Builder)对应你的工作流。关键保留的部分:check.py的引用校验逻辑、sync-agent-skills.py的同步模式、agent.yaml的system.file引用方式。
- ⚠️ 编辑 Agent 的打包技能副本而非垂直源:只能编辑
vertical-plugins/<vertical>/skills/<name>/,然后运行sync-agent-skills.py。check.py会检测漂移并阻止提交。 - ⚠️ SKILL.md 行数膨胀:财务主题本身复杂,但
dcf-model的 1263 行中约 60% 是 Office JS 和 Python 的双份示例代码。如果技能只需支持一个环境,可以大幅缩减。 - ⚠️ MCP 连接器依赖外部服务:11 个数据连接器都需要各自的 API key/订阅,本地开发时可能需要 mock。
- ⚠️ Agent Subagent 的手工维护:每个 Agent 的 3 个 subagent 定义和对应的 YAML manifest 需要人工保持同步,目前没有自动化创建工具。
Design Highlights
Section titled “Design Highlights”- “One source, two deploys” architecture: Cowork plugins and Managed Agent API share the same system prompt and skill files.
agent.yaml’ssystem.filepoints toagent-plugins/via relative path, eliminating code duplication. - DRY skill management + drift detection: Skills edited only in
vertical-plugins/,sync-agent-skills.pypropagates to agents,check.pyverifies consistency withfilecmp.dircmp— forming the “edit → sync → verify” closed loop. - Subagent least-privilege principle: Each agent’s 3 subagents use pipeline division — Reader (read-only) → Processor (transform) → Writer (sole write permission leaf), reducing attack surface.
- Secure handoff protocol:
orchestrate.pyimplements three security layers (allowlist + Schema + regex) with threat model analysis — explicitly calling out injection risks from untrusted documents and mitigations. - Zero-dependency dev toolchain:
check.pyself-installs Git hooks (no Husky/Node needed),version_bump.pyensures version management at both commit and CI layers, pure stdlib or lightweight deps.
Reusable Patterns
Section titled “Reusable Patterns”| Pattern | Description | Use Case |
|---|---|---|
| Vertical skill layering | vertical-plugins as single source of truth, agent-plugins as bundled copies. Sync script + drift detection ensures consistency | Multiple products/agents sharing the same skill library |
| Dual-environment adaptation | Same SKILL.md includes both Office JS and Python/openpyxl API examples, selected by runtime detection | Skills that need to work in different runtime environments |
| Formula-over-hardcode constraint | SKILL.md marks NON-NEGOTIABLE rules with concrete code examples showing correct vs. incorrect approaches | Critical rules where AI output quality must be guaranteed |
| Subagent pipeline | Reader → Processor → Writer three-stage division, only last stage has write permission | Multi-step end-to-end workflow agent design |
| Secure handoff protocol | Allowlist + JSON Schema + regex three-layer security model with threat model analysis | Secure control transfer between agents |
| Plugin marketplace manifest | marketplace.json registers all plugins, supporting one-click install from GitHub URL | Multi-plugin ecosystem for distribution |
| Pattern | Description | Use Case |
|---|---|---|
| Vertical skill layering | vertical-plugins as single source of truth, agent-plugins as bundled copies. Sync script + drift detection ensures consistency | Multiple products/agents sharing the same skill library |
| Dual-environment adaptation | Same SKILL.md includes both Office JS and Python/openpyxl API examples, selected by runtime detection | Skills that need to work in different runtime environments |
| Formula-over-hardcode constraint | SKILL.md marks NON-NEGOTIABLE rules with concrete code examples showing correct vs. incorrect approaches | Critical rules where AI output quality must be guaranteed |
| Subagent pipeline | Reader → Processor → Writer three-stage division, only last stage has write permission | Multi-step end-to-end workflow agent design |
| Secure handoff protocol | Allowlist + JSON Schema + regex three-layer security model with threat model analysis | Secure control transfer between agents |
| Plugin marketplace manifest | marketplace.json registers all plugins, supporting one-click install from GitHub URL | Multi-plugin ecosystem for distribution |
Porting Guide
Section titled “Porting Guide”Financial domain → Your domain: Replace
financial-analysiswith your core vertical plugin (e.g.,legal-contracts,medical-records), swap DCF/Comps/LBO skills for your domain methods. Point MCP connectors at your data sources. Rename agents (Pitch Agent → Case Builder) to match your workflows. Key parts to preserve:check.py’s reference validation logic,sync-agent-skills.py’s sync pattern,agent.yaml’ssystem.filereferencing approach.
Common Pitfalls
Section titled “Common Pitfalls”- ⚠️ Editing agent-bundled skill copies instead of vertical source: Only edit
vertical-plugins/<vertical>/skills/<name>/, then runsync-agent-skills.py.check.pydetects drift and blocks commits. - ⚠️ SKILL.md line count bloat: Financial topics are inherently complex, but ~60% of
dcf-model’s 1263 lines are dual Office JS and Python examples. If your skill only needs one environment, you can drastically reduce. - ⚠️ MCP connectors depend on external services: All 11 data connectors require their own API keys/subscriptions; you may need mocks for local development.
- ⚠️ Manual maintenance of agent subagents: Each agent’s 3 subagent definitions and corresponding YAML manifests need manual synchronization — there’s currently no automated creation tool.