China Comps logo

China Comps

Community
jwangkun
china-comps

Comparable company analysis for A-share stocks. Uses AkShare MCP to build peer groups, pull financial data, compute valuation multiples (PE, PB, PS), and assess relative value within a Chinese industry sector.

Overview

Publisherjwangkun
Repositoryclaude-for-financial-services-cn
Skill namechina-comps
Stars
834
Forks
132
Bundled files
Instructions only
LicenseApache-2.0
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 jwangkun on GitHub. Read the source before you install it.

Installation

Install the China Comps 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/jwangkun/claude-for-financial-services-cn/tree/main/agent-plugins/china-earnings-reviewer/skills/china-comps
  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/jwangkun/claude-for-financial-services-cn.git /tmp/claude-for-financial-services-cn
mkdir -p .claude/skills
cp -r /tmp/claude-for-financial-services-cn/agent-plugins/china-earnings-reviewer/skills/china-comps .claude/skills/china-comps
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable China Comps 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 China Comps 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 China Comps 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.

china-comps

Data Sources (Multi-Tier)

Tier 0 — 万得 Wind(最全面付费数据)

  • 覆盖:A股/港美股/基金/指数/债券/宏观/研报/分析(44个工具)
  • MCP 服务:wind-mcp(需 WIND_API_KEY 密钥,以 ak_ 开头)
  • 优势:全市场覆盖面最广、数据最全面、包含研报和量化分析
  • 密钥申请:https://aifinmarket.wind.com.cn/#/home

Tier 1 — 同花顺 iFind(付费精确数据)

Use ifind MCP when a valid IFIND_AUTH_TOKEN is configured.

python
ifind_get_stock_info(ticker)             → Company profile, multiples
ifind_get_stock_financials(ticker, ...)  → Revenue, net income, margins
ifind_search_stocks(query)               → Industry-wide stock screening

Tier 2 — AkShare(免费开源数据)

Fallback when iFind is unavailable.

python
get_quote(ticker)              → Price, PE, PB, market cap
get_financials(ticker, "income", "annual")  → Revenue, net income
get_financials(ticker, "balance", "annual") → Book value
get_stock_info(ticker)         → Business description

数据源模式开关: 当环境变量 IFIND_DATA_SOURCE_MODE=ifind-only 时,仅使用 iFind 数据源,禁用 AkShare 降级。


name: china-comps description: Comparable company analysis for A-share stocks. Uses the AkShare MCP to build peer groups, pull financial data, compute valuation multiples (PE, PB, PS), and assess relative value within a Chinese industry sector. Use instead of the original comps-analysis skill when dealing with Chinese-listed equities.

china-comps

Workflow

1. Define the peer group

Start with the target stock, then use get_industry_stocks(industry="<行业名称>") to get the full peer set for that industry. Common industry names used in the 东方财富 classification:

IndustryExample Leaders
白酒{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
半导体{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
电池{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
银行{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
证券{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
保险{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
医疗器械{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
光伏设备{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
汽车整车{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}
软件开发{{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}}

2. Pull financial data for each peer

For each ticker in the peer set:
  get_quote(ticker)         → price, PE, PB, market cap
  get_financials(ticker, "income", "annual")     → revenue, net income
  get_financials(ticker, "balance", "annual")    → book value, debt
  get_stock_info(ticker)    → business description

3. Compute standard multiples

MultipleFormulaAkShare source field
PE (TTM)Price / EPS TTMget_quote → 动态市盈率
PBPrice / Book Value per shareget_quote → 市净率
PS (TTM)Market Cap / Revenue TTMCompute from market cap + revenue
EV/EBITDAEnterprise Value / EBITDACompute from market cap + debt - cash
Dividend YieldDPS / Priceget_quote → 股息率

4. Present the comps table

Sort by market cap (largest first). Flag outliers (>2 standard deviations from mean). Include:

  • Ticker, company name, price
  • Market cap (亿 CNY)
  • PE, PB, PS
  • Revenue growth %, Net margin %
  • 52-week high/low

5. Relative value assessment

  • If target's PE is >1 std dev above peer mean → potentially overvalued
  • If target's PE is >1 std dev below peer mean → potentially undervalued
  • Flag companies with negative earnings separately
  • Compare PEG ratios (PE / growth rate) when growth data is available

Notes

  • All financial data from AkShare is based on Chinese accounting standards (CAS), not IFRS/US GAAP
  • Chinese market has 涨跌停 limits (±10% for main board, ±20% for ChiNext/STAR)
  • A-share market cap includes both circulating (流通) and non-circulating shares — check if the user wants 流通市值 or 总市值
  • For cross-market comps (A-share vs HK-listed), note that A-shares typically trade at a premium

Frequently asked questions

What does the China Comps AI skill do?

Comparable company analysis for A-share stocks. Uses AkShare MCP to build peer groups, pull financial data, compute valuation multiples (PE, PB, PS), and assess relative value within a Chinese industry sector.

Why use China Comps on TypingMind?

Because you install it once and use it with any model. China Comps 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 China Comps in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jwangkun/claude-for-financial-services-cn/tree/main/agent-plugins/china-earnings-reviewer/skills/china-comps. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use China Comps?

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

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

Is the China Comps AI skill free?

Yes. It is published on GitHub by jwangkun under the Apache-2.0 license. 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 👇