Cn Comps Analysis logo

Cn Comps Analysis

Community
ccq1
cn-comps-analysis

构建机构级 A 股可比公司分析,包含经营指标、估值倍数和统计基准,输出 Excel 格式。 **适用场景:** - A 股上市公司估值(并购、投资分析) - 对标行业同行的经营表现 - 识别估值异常(高估/低估) - 支持投资决策报告 - 行业横向比较 **不适用:** - 未上市或无可比同行的公司 - 高度多元化的集团公司 - ST/*ST 退市风险公司 - 尚无营收的初创公司

Overview

Publisherccq1
Repositorycn-financial-services-plugins
Skill namecn-comps-analysis
Stars
43
Forks
5
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Cn Comps Analysis 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/comps-analysis
  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/comps-analysis .claude/skills/cn-comps-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cn Comps Analysis 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 Comps Analysis 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 Comps Analysis 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 股可比公司分析

⚠️ 关键:数据源优先级(必读)

严格遵循以下数据源层级:

  1. 首选:MCP 数据源 — 如果 cn-financial-mcp 可用,优先使用其提供的工具获取财务和交易数据
  2. MCP 可用时不使用网页搜索
  3. 仅当 MCP 不可用时: 使用巨潮资讯网、东方财富网或上交所/深交所公告
  4. 永远不将网页搜索作为主要数据来源 — 缺乏机构级分析所需的准确性和可追溯性

概述

本技能指导 Claude 构建机构级可比公司分析,结合经营指标、估值倍数和统计基准。输出为结构化 Excel 表格,支持基于同行比较的投资决策。

可用 MCP 工具

  • search_stock — 按关键词搜索 A 股股票
  • get_company_info — 获取公司基本信息(行业、主营、注册地)
  • get_realtime_quote — 获取实时行情(最新价、市值、成交量)
  • get_financial_indicators — 获取财务指标(ROE、毛利率、资产负债率)
  • get_valuation_metrics — 获取估值指标(PE-TTM、PB、PS)
  • get_income_statement — 获取利润表
  • get_balance_sheet — 获取资产负债表
  • get_industry_list — 获取申万行业分类列表
  • get_industry_stocks — 获取行业内所有成分股

核心理念

"先搭对框架,再让数据说话。"

从清晰的表头开始,强制思考什么指标真正重要;输入干净数据,构建透明公式,让统计结论自然浮现。好的 Comps 表应该让没有参与构建的人也能一目了然。


第一部分:文档结构

表头区域(第 1-3 行)

第1行: [行业名称] — A 股可比公司分析
第2行: [公司列表及代码] • 贵州茅台(600519) • 五粮液(000858) • 泸州老窖(000568)
第3行: 截至 [日期] | 金额单位:人民币百万元(每股数据及比率除外)

格式规范(默认,用户偏好优先)

  • 字体:微软雅黑 / 宋体,11pt 数据,12pt 表头
  • 表头:深蓝底白字(#17365D)
  • 列头:浅蓝灰底黑字(#D9E2F3)
  • 统计行:浅灰底(#F2F2F2)
  • 精度:百分比 1 位小数(12.3%),倍数 1 位小数(13.5x),金额无小数

第二部分:经营指标

核心列

  1. 公司 — 名称(代码)
  2. 营业收入 — LTM 或年度
  3. 营收增速 — 同比变化
  4. 毛利润 — 营收-营业成本
  5. 毛利率 — 毛利/营收
  6. 归母净利润 — 扣非优先
  7. 净利率 — 归母净利/营收
  8. EBITDA — 如可计算

A 股特色可选列

  • 扣非净利润增速 — 更真实反映经营能力
  • 经营性现金流 — 现金质量
  • ROE(加权) — 盈利能力核心指标
  • 资产负债率 — 杠杆水平
  • 研发费用率 — 科技类公司关键

统计区块(公司数据下方)

[空行分隔]
- 最大值: =MAX(B7:B12)
- 75分位: =QUARTILE(B7:B12,3)
- 中位数: =MEDIAN(B7:B12)
- 25分位: =QUARTILE(B7:B12,1)
- 最小值: =MIN(B7:B12)

需要统计的列(比率和倍数):营收增速、毛利率、净利率、ROE 不需要统计的列(规模指标):营收、净利润绝对值、市值


第三部分:估值倍数

核心列

  1. 公司 — 与经营部分同序
  2. 总市值 — 当前市值
  3. PE-TTM — 滚动市盈率
  4. PB — 市净率
  5. PS-TTM — 滚动市销率
  6. EV/EBITDA — 如有 EBITDA 数据

A 股特色可选列

  • PEG — PE/归母净利增速
  • 股息率 — 分红回报
  • 换手率 — 流动性指标
  • 自由流通市值 — 剔除限售股

交叉引用规则

关键:估值倍数必须引用经营指标部分的数据,不要二次输入。

统计区块

与经营部分相同:最大值、75 分位、中位数、25 分位、最小值。


第四部分:注释与方法论

必须包含

  • 数据来源:cn-financial-mcp / 巨潮资讯网 / 年报
  • 时间范围:LTM / 最近年报 / 最近季报
  • 计算方法:EBITDA 定义、扣非净利说明
  • 估值说明:PE-TTM 计算方式(归母净利 vs 扣非)
  • 行业分类:申万行业分类标准

第五部分:A 股行业选择指引

按投资问题选指标

"哪家公司被低估?" → 重点:PE-TTM、PB、PS、市值 → 忽略:经营细节

"哪家最高效?" → 重点:毛利率、净利率、ROE、资产周转率 → 忽略:规模指标

"哪家增长最快?" → 重点:营收增速、扣非净利增速、PEG → 忽略:估值倍数

申万行业特色指标

白酒/消费: 毛利率、净利率、预收/合同负债、吨价 银行/保险: ROE、不良率、净息差、拨备覆盖率(不用毛利率和 EBITDA) 科技/半导体: 研发费用率、营收增速、毛利率变化趋势 地产/基建: 预售额、土地储备、资产负债率、经营性现金流 新能源/制造: 产能利用率、毛利率趋势、在手订单、CapEx/营收


第六部分:质量检查

合理性检查

  • 利润率:毛利率 > 净利率(定义上恒成立)
  • 估值合理性:
    • PE-TTM:A 股一般 10-80x(行业差异大)
    • PB:制造业 1-3x,消费品 3-15x
    • PS:A 股 0.5-30x
  • 增长-估值相关性:高增长通常对应高 PE

常见错误

❌ 混用市值和企业价值 ❌ 混用不同时间口径(LTM vs 季度) ❌ 公式中硬编码数字而非引用单元格 ❌ 包含不可比公司(商业模式差异大) ❌ 使用过时数据 ❌ 忘记标注扣非 vs 非扣非


输出清单

交付前确认:

  • 所有公司真正可比(同行业、同模式)
  • 数据时间口径一致
  • 金额单位标注清楚(百万/亿)
  • 公式引用单元格,非硬编码
  • 所有硬编码单元格有批注(数据来源或假设说明)
  • 统计至少包含 5 个层级(最大/75/中位/25/最小)
  • 注释部分记录来源和方法论
  • 日期戳为最新
  • 无公式错误(#DIV/0!、#REF!)

Frequently asked questions

What does the Cn Comps Analysis AI skill do?

构建机构级 A 股可比公司分析,包含经营指标、估值倍数和统计基准,输出 Excel 格式。 **适用场景:** - A 股上市公司估值(并购、投资分析) - 对标行业同行的经营表现 - 识别估值异常(高估/低估) - 支持投资决策报告 - 行业横向比较 **不适用:** - 未上市或无可比同行的公司 - 高度多元化的集团公司 - ST/*ST 退市风险公司 - 尚无营收的初创公司

Why use Cn Comps Analysis on TypingMind?

Because you install it once and use it with any model. Cn Comps Analysis 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 Comps Analysis 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/comps-analysis. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cn Comps Analysis?

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 Comps Analysis?

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

Is the Cn Comps Analysis 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 👇