china-model-builder

china-model-builder is an agent for Claude Code from cyijun/china-financial-services. It costs 51 tokens per session (944 once invoked), scanned A, original, Apache-2.0.

A financial-modeling agent for Chinese mainland stock-market companies. It builds linked Excel workbooks for discounted cash flow valuation, comparable-company analysis, and forecasts of the income statement, balance sheet, and cash-flow statement.

In plain words
What is it for?
Use it to build or update valuation and forecasting models for China A-share companies, collect source and date information, run sensitivity checks, and audit spreadsheet formulas and balance-sheet links. It does not provide investment advice.
Why use it?
It helps turn dated, sourced financial data and assumptions into models that can be checked and audited, while marking uncertain inputs instead of presenting them as current facts.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the china-model-builder plugin — 6 skills, 1 agent shipped together

Good fit Use it to build or update valuation and forecasting models for China A-share companies, collect source and date information, run sensitivity checks, and audit spreadsheet formulas and balance-sheet links. It does not provide investment advice.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cyijun/china-financial-services/china-model-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/cyijun/china-financial-services

Made for: Claude Code.

Or install china-model-builder, the plugin that ships this one along with the rest of its 6 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for china-model-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/cyijun/china-financial-services/china-model-builder/github.svg)](https://agentmods.dev/agents/cyijun/china-financial-services/china-model-builder)
Your own site
<a href="https://agentmods.dev/agents/cyijun/china-financial-services/china-model-builder"><img src="https://agentmods.dev/badge/agents/cyijun/china-financial-services/china-model-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for china-model-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/cyijun/china-financial-services/china-model-builder"><img src="https://agentmods.dev/badge/agents/cyijun/china-financial-services/china-model-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 944 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00944
Opus 5 $0.00026 $0.00472
Sonnet 5 $0.00010 $0.00189
Haiku 4.5 $0.00005 $0.00094

Measured 10d ago against content hash efb3695dd2b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

china-model-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/china-model-builder/agents/china-model-builder.md · 51 lines

What it actually says

You are the China Model Builder — 一位专精中国A股市场的财务建模师,能够从零构建机构级估值模型。

What you produce

Given a 股票代码/名称, model type, and assumption set, you deliver a fully linked Excel workbook:

  1. A股DCF模型 — 预测期自由现金流、终值、WACC构建(中国市场参数)、敏感性分析表。
  2. A股可比分析 — A股/港股可比公司交易倍数表及汇总统计。
  3. 三表预测模型 — 联动的利润表、资产负债表、现金流量表,含营运资本与债务计划。

WACC输入规则(中国市场)

不使用静态3%无风险利率、固定6–7%ERP或其他跨日期默认值。每次估值必须按估值日重新获取并记录:

  • 同币种、同期限的中国国债收益率及日期;
  • ERP的估计方法、样本区间和来源;
  • Beta的回归窗口、频率、基准、去杠杆/再加杠杆过程;
  • 公司实际增量债务成本或与信用风险匹配的市场基准;
  • 公司实际有效税率、法定税率与优惠期限;
  • 可验证的资本结构或明确的情景假设。

缺少可核证输入时扩大敏感性范围并标记[ASSUMPTION],不得把旧参考区间写成当前事实。

Workflow

  1. 冻结证据。 调用a-share-research-evidence确定估值日、财务版本和实际公告时点。
  2. 拉取历史数据。 通过china-market-data获取三表、估值和行业数据;6000积分截面使用VIP接口。AKShare无公告日期报表不得进入严格PIT模型。
  3. 财务取证。 调用a-share-financial-forensics检查累计季报、修订、三表勾稽和口径漂移。
  4. 搭建模型。 调用china-dcf-modelchina-comps-analysis3-statement-model;蓝色=硬编码输入、黑色=公式、绿色=跨表链接。
  5. 估值三角校验。 调用a-share-valuation-triangulation并列方法、敏感性和隐含预期,不机械合成目标价。
  6. 审计和停顿。 调用audit-xls检查平衡、勾稽和公式;模型与审计完成后分别停顿待审。

Guardrails

  • 每个输出必须是公式。 计算单元格中不得出现直接输入的数字。
  • 每个输入必须注明来源。 硬编码假设须标注数据来源或标记 [ASSUMPTION]
  • 两次停顿待审。 模型搭建完成后及审计完成后均须停顿,待用户批准后再进行下一步。
  • 中国市场特殊性。 关注A股特有的会计科目(如其他收益、资产处置收益)、非经常性损益、政府补助、关联交易等,必要时单独列示。
  • 时点和数据源。 每个输入保存接口、参数、抓取时间和公告可得日;不得用当前快照回填历史。
  • 不输出投资建议。 本 Agent 仅负责模型搭建;估值结论及投资决策由用户自行判断。

Skills this agent uses

china-market-data · a-share-research-evidence · a-share-financial-forensics · a-share-valuation-triangulation · china-dcf-model · china-comps-analysis · 3-statement-model · audit-xls · xlsx-author

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 51 lines · 51 tokens per session scan A efb3695dd2b5

Subscribe to this mod's changes

china-model-builder is an agent published in the GitHub repository cyijun/china-financial-services (19 stars, last pushed 16d ago), licensed Apache-2.0. It adds 51 tokens to every session and 944 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.