Cn Dcf Model logo

Cn Dcf Model

Community
ccq1
cn-dcf-model

A 股 DCF(现金流折现)估值模型,使用人民币 WACC、中国十年期国债收益率作为无风险利率、A 股 Beta 和中国市场风险溢价。从 MCP 获取财务数据,构建完整现金流预测和敏感性分析,输出专业 Excel 模型。当用户需要 A 股公司内在价值评估、DCF 建模或增长预测时触发。

Overview

Publisherccq1
Repositorycn-financial-services-plugins
Skill namecn-dcf-model
Stars
43
Forks
5
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ccq1 on GitHub. Read the source before you install it.

Installation

Install the Cn Dcf Model AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ccq1/cn-financial-services-plugins/tree/main/cn-financial-analysis/skills/dcf-model
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ccq1/cn-financial-services-plugins.git /tmp/cn-financial-services-plugins
mkdir -p .claude/skills
cp -r /tmp/cn-financial-services-plugins/cn-financial-analysis/skills/dcf-model .claude/skills/cn-dcf-model
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cn Dcf Model in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cn Dcf Model on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cn Dcf Model is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

A 股 DCF 估值模型

概述

本技能创建机构级 A 股 DCF 模型,遵循国内券商研究所和外资投行标准。输出包含详细 Excel 模型和敏感性分析表。

可用 MCP 工具

  • get_income_statement — 利润表(营收、成本、三费、净利润)
  • get_balance_sheet — 资产负债表(总资产、负债、股东权益)
  • get_cash_flow — 现金流量表(经营/投资/筹资现金流)
  • get_financial_indicators — 财务指标(ROE、毛利率、资产负债率)
  • get_realtime_quote — 实时行情(当前股价、市值)
  • get_historical_price — 历史价格(计算 Beta)
  • get_company_info — 公司基本信息

关键约束 — 先阅读

WACC 计算(人民币口径)

无风险利率 Rf:

  • 使用中国 10 年期国债收益率(通常 2.5%-3.5%)
  • 通过 MCP 或网页搜索获取最新值

市场风险溢价 ERP:

  • A 股 ERP 通常取 5%-7%
  • 参考:中证全指长期回报 - 无风险利率
  • 可参考达莫达兰中国市场数据

Beta 计算:

  • 使用 A 股个股 vs 沪深 300 的 Beta
  • 建议周期:过去 2 年周频数据
  • 通过历史价格数据回归计算

股权成本 Ke:

  • Ke = Rf + β × ERP
  • 示例:3.0% + 1.2 × 6.0% = 10.2%

债务成本 Kd:

  • 参考公司发债利率或同评级企业债利率
  • 税率:企业所得税 25%(高新技术企业 15%)
  • Kd_after_tax = Kd × (1 - T)

WACC:

  • WACC = Ke × (E/(D+E)) + Kd_after_tax × (D/(D+E))
  • A 股公司 WACC 通常 8%-14%

终值计算

永续增长法:

  • 终值 = FCFn × (1+g) / (WACC - g)
  • g 取 2%-3%(不超过 GDP 长期增速)
  • 中国 GDP 长期增速预期 4%-5%

退出倍数法:

  • 终值 = EBITDAn × 退出倍数
  • 退出倍数参考同行当前 EV/EBITDA 中位数

DCF 工作流

第一步:数据采集与验证

数据源优先级:

  1. MCP 工具(首选)— 利润表、资产负债表、现金流量表
  2. 用户提供的数据 — 研究假设和预测
  3. 网页搜索 — 当前股价、Beta、国债收益率

采集清单:

  • 近 3-5 年利润表(营收、毛利、三费、净利润)
  • 近 3-5 年资产负债表(总资产、总负债、少数股东权益)
  • 近 3-5 年现金流量表(经营 CF、CapEx、自由现金流)
  • 当前股价和总股本
  • 有息负债总额和平均利率
  • 企业所得税率

第二步:历史分析

构建历史分析表:

  • 营收增速趋势
  • 毛利率、营业利润率、净利率趋势
  • CapEx / 营收比率
  • 营运资本变动
  • 自由现金流转换率(FCF/净利润)

第三步:构建预测

预测期:5-10 年

科目预测方法
营业收入基于行业增速 + 市场份额假设
营业成本基于毛利率假设
销售/管理/研发费用基于费用率假设或绝对增速
折旧摊销基于固定资产 + CapEx 推算
CapEx基于 CapEx/营收比率
营运资本基于周转天数假设
所得税法定税率 × 税前利润

自由现金流(FCFF)计算:

FCFF = EBIT × (1-T) + 折旧摊销 - CapEx - ΔNWC

第四步:折现与估值

  1. 折现每年 FCFF 至现值
  2. 计算终值并折现
  3. 得出企业价值(EV)
  4. EV - 净负债 - 少数股东权益 = 股权价值
  5. 股权价值 / 总股本 = 每股内在价值
  6. 与当前股价比较,得出上涨/下跌空间

第五步:敏感性分析

必须包含 3 张敏感性分析表(每张 5×5 = 25 个单元格):

表格行变量列变量
表1WACC(±2%)永续增长率 g(±1%)
表2营收增速(±5%)终端毛利率(±5%)
表3WACC(±2%)退出 EV/EBITDA 倍数(±3x)

每个单元格必须用完整 DCF 重算公式,不可用线性插值。

第六步:情景分析

情景营收增速净利率WACC永续增长率
悲观偏低压缩偏高偏低
基准中性稳定中性中性
乐观偏高扩张偏低偏高

Excel 输出规范

Sheet 结构

  1. 假设页 — 所有输入假设集中在此
  2. 利润表预测 — 历史 + 预测
  3. 资产负债表预测 — 历史 + 预测
  4. 现金流量表预测 — 历史 + 预测
  5. DCF 估值 — FCFF 折现 + 终值 + 敏感性

格式规范

  • 蓝色字:硬编码输入(附批注说明来源)
  • 黑色字:公式计算
  • 所有硬编码须附单元格批注:"来源:[文件/系统], [日期], [引用]"
  • 金额单位统一(百万元或亿元)

合理性检查

  • WACC 在 8%-14% 范围内(A 股常见)
  • 永续增长率不超过 GDP 长期增速
  • 终值占总价值比例 < 75%(否则预测期太短或增长假设不合理)
  • 每股价值与当前股价偏差可解释
  • 敏感性分析覆盖足够宽的区间
  • 所有公式无错误

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Cn Dcf Model AI skill do?

A 股 DCF(现金流折现)估值模型,使用人民币 WACC、中国十年期国债收益率作为无风险利率、A 股 Beta 和中国市场风险溢价。从 MCP 获取财务数据,构建完整现金流预测和敏感性分析,输出专业 Excel 模型。当用户需要 A 股公司内在价值评估、DCF 建模或增长预测时触发。

Why use Cn Dcf Model on TypingMind?

Because you install it once and use it with any model. Cn Dcf Model is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cn Dcf Model in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ccq1/cn-financial-services-plugins/tree/main/cn-financial-analysis/skills/dcf-model. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Cn Dcf Model?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cn Dcf Model?

As many as you like. As long as a model supports skills, you can use Cn Dcf Model with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cn Dcf Model AI skill free?

It is published on GitHub by ccq1. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇