china-xlsx-author
Purpose
Create professional A股财务分析Excel模型 — structured workbooks for Chinese equity analysis.
Data Sources
Primary: iFind MCP (Tier-1 付费) / AkShare MCP (Tier-2 免费备选)
get_financials(ticker, "income") → Income statement data
get_financials(ticker, "balance") → Balance sheet data
get_financials(ticker, "cashflow") → Cash flow data
get_quote(ticker) → Market data
Secondary Sources
- 巨潮 — source filings
- 券商研报 — template references
Workflow
Step 1: Workbook Structure
Standard A-share model structure:
| Sheet |
Content |
| 封面 (Cover) |
Company, date, version, disclaimer |
| 假设 (Assumptions) |
All model inputs, drivers |
| 利润表 (Income) |
Historical + forecast P&L |
| 资产负债表 (Balance Sheet) |
Historical + forecast BS |
| 现金流量表 (Cash Flow) |
Historical + forecast CF |
| 营运资本 (Working Capital) |
WC analysis, assumptions |
| 估值 (Valuation) |
DCF, comps, sensitivity |
| 图表 (Charts) |
Key visuals |
| 检查 (Checks) |
Sum checks, balances |
Step 2: Formatting Standards
Chinese financial model formatting:
| Element |
Format |
| Headers |
Bold, background color |
| Inputs |
Blue font, light blue background |
| Calculations |
Black font, no background |
| Hardcodes (to avoid) |
Red font |
| Negative numbers |
Red font or (XXX) |
| Percentage |
% format, 1 decimal |
| Currency |
¥ or 万元 |
| Dates |
YYYY-MM-DD or YYYY年MM月 |
Color coding:
蓝色 = 输入 (Inputs)
黑色 = 公式 (Calculations)
红色 = 警告 (Warnings / hardcodes)
绿色 = 链接 (Links)
灰色 = 标签 (Labels)
Step 3: Income Statement Layout
Standard P&L format (CAS):
| Item |
FY2021 |
FY2022 |
FY2023 |
FY2024E |
FY2025E |
| 营业收入 |
|
|
|
|
|
| 减: 营业成本 |
|
|
|
|
|
| = 毛利 |
|
|
|
|
|
| 毛利率 |
|
|
|
|
|
| 减: 税金及附加 |
|
|
|
|
|
| 减: 销售费用 |
|
|
|
|
|
| 减: 管理费用 |
|
|
|
|
|
| 减: 研发费用 |
|
|
|
|
|
| 减: 财务费用 |
|
|
|
|
|
| 加: 投资收益 |
|
|
|
|
|
| 加: 公允价值变动 |
|
|
|
|
|
| 减: 信用减值损失 |
|
|
|
|
|
| 减: 资产减值损失 |
|
|
|
|
|
| 加: 资产处置收益 |
|
|
|
|
|
| = 营业利润 |
|
|
|
|
|
| 加: 营业外收入 |
|
|
|
|
|
| 减: 营业外支出 |
|
|
|
|
|
| = 利润总额 |
|
|
|
|
|
| 减: 所得税费用 |
|
|
|
|
|
| = 净利润 |
|
|
|
|
|
| 其中: 归母净利润 |
|
|
|
|
|
| 其中: 扣非净利润 |
|
|
|
|
|
| EPS (元/股) |
|
|
|
|
|
Step 4: Balance Sheet Layout
Standard BS format (CAS):
| Item |
FY2021 |
FY2022 |
FY2023 |
FY2024E |
FY2025E |
| 资产 |
|
|
|
|
|
| 货币资金 |
|
|
|
|
|
| 交易性金融资产 |
|
|
|
|
|
| 应收票据 |
|
|
|
|
|
| 应收账款 |
|
|
|
|
|
| 预付款项 |
|
|
|
|
|
| 存货 |
|
|
|
|
|
| 其他流动资产 |
|
|
|
|
|
| 流动资产合计 |
|
|
|
|
|
| 长期股权投资 |
|
|
|
|
|
| 固定资产 |
|
|
|
|
|
| 在建工程 |
|
|
|
|
|
| 无形资产 |
|
|
|
|
|
| 商誉 |
|
|
|
|
|
| 其他非流动资产 |
|
|
|
|
|
| 非流动资产合计 |
|
|
|
|
|
| 资产总计 |
|
|
|
|
|
|
|
|
|
|
|
| 负债 |
|
|
|
|
|
| 短期借款 |
|
|
|
|
|
| 应付票据 |
|
|
|
|
|
| 应付账款 |
|
|
|
|
|
| 合同负债 |
|
|
|
|
|
| 应付职工薪酬 |
|
|
|
|
|
| 应交税费 |
|
|
|
|
|
| 其他应付款 |
|
|
|
|
|
| 流动负债合计 |
|
|
|
|
|
| 长期借款 |
|
|
|
|
|
| 应付债券 |
|
|
|
|
|
| 预计负债 |
|
|
|
|
|
| 非流动负债合计 |
|
|
|
|
|
| 负债合计 |
|
|
|
|
|
|
|
|
|
|
|
| 所有者权益 |
|
|
|
|
|
| 股本 |
|
|
|
|
|
| 资本公积 |
|
|
|
|
|
| 盈余公积 |
|
|
|
|
|
| 未分配利润 |
|
|
|
|
|
| 归母股东权益 |
|
|
|
|
|
| 少数股东权益 |
|
|
|
|
|
| 所有者权益合计 |
|
|
|
|
|
| 负债及权益总计 |
|
|
|
|
|
Step 5: Assumptions Sheet
Key assumptions to centralize:
| Category |
Assumption |
Value |
Source |
| Revenue growth |
FY2024E |
X% |
|
| Revenue growth |
FY2025E |
X% |
|
| Gross margin |
FY2024E |
X% |
|
| SG&A % of revenue |
FY2024E |
X% |
|
| Tax rate |
Effective |
X% |
|
| D&A |
% of PPE |
X% |
|
| CapEx |
% of revenue |
X% |
|
| NWC |
% of revenue |
X% |
|
| Terminal growth |
|
X% |
|
| WACC |
|
X% |
|
Step 6: Valuation Sheet
DCF layout:
| Item |
Value |
Notes |
| Enterprise value |
¥XX亿 |
|
| Less: Net debt |
¥XX亿 |
|
| Equity value |
¥XX亿 |
|
| Shares outstanding |
XX亿股 |
|
| Value per share |
¥XX |
|
| Current price |
¥XX |
|
| Upside/(Downside) |
X% |
|
Football field:
| Method |
Low |
Mid |
High |
| P/E |
|
|
|
| P/B |
|
|
|
| EV/EBITDA |
|
|
|
| DCF |
|
|
|
| Range |
¥XX |
¥XX |
¥XX |
Step 7: Checks Sheet
Essential checks:
| Check |
Formula |
Target |
Result |
| BS balances |
Assets - L - E |
0 |
|
| CF ties |
Ending cash - Beg cash - Net CF |
0 |
|
| Revenue growth |
(Rev - Rev_prev) / Rev_prev |
Reasonable |
|
| Margin check |
GP / Revenue |
Reasonable |
|
| Debt schedule |
ST + LT debt |
= Total |
|
| Retained earnings |
RE beg + NI - Div |
= RE end |
|
| Depreciation |
D&A / PPE |
Reasonable |
|
Step 8: Charts & Presentation
Key charts to include:
| Chart |
Purpose |
| Revenue & profit bridge |
Historical + forecast |
| Margin trends |
Gross, operating, net |
| Valuation multiples |
Historical range |
| DCF sensitivity |
Tornado chart |
| Peer comparison |
Comps scatter plot |
China-Specific Excel Conventions
Unit Standards
| Unit |
Usage |
| 元 |
Per-share items |
| 万元 |
Most financial items |
| 亿元 |
Large totals, market cap |
Naming Conventions
| Item |
Convention |
| Sheet names |
Short, Chinese preferred |
| Cell references |
Named ranges for key cells |
| File naming |
[Ticker][Company][Date]_v[X] |
Formula Conventions
| Convention |
Example |
| Sheet references |
'利润表'!B10 |
| Named ranges |
Revenue, WACC, Shares |
| Chinese function names |
SUM, IF, VLOOKUP |
Quality Checks
Before finalizing:
1---2name: china-xlsx-author3description: Create professional Excel workbooks for A-share financial analysis. Adapts the original xlsx-author skill for Chinese financial modeling standards, CAS conventions, and A-share formatting. Triggers on "A股Excel模型", "财务模型制作", "create model China", "build model xlsx", "制作模型", or "Excel model [company]".4---56# china-xlsx-author78## Purpose910Create professional **A股财务分析Excel模型** — structured workbooks for Chinese equity analysis.1112## Data Sources1314### Primary: iFind MCP (Tier-1 付费) / AkShare MCP (Tier-2 免费备选)1516```python17get_financials(ticker, "income") → Income statement data18get_financials(ticker, "balance") → Balance sheet data19get_financials(ticker, "cashflow") → Cash flow data20get_quote(ticker) → Market data21```2223### Secondary Sources24- 巨潮 — source filings25- 券商研报 — template references2627## Workflow2829### Step 1: Workbook Structure3031**Standard A-share model structure:**3233| Sheet | Content |34|-------|---------|35| 封面 (Cover) | Company, date, version, disclaimer |36| 假设 (Assumptions) | All model inputs, drivers |37| 利润表 (Income) | Historical + forecast P&L |38| 资产负债表 (Balance Sheet) | Historical + forecast BS |39| 现金流量表 (Cash Flow) | Historical + forecast CF |40| 营运资本 (Working Capital) | WC analysis, assumptions |41| 估值 (Valuation) | DCF, comps, sensitivity |42| 图表 (Charts) | Key visuals |43| 检查 (Checks) | Sum checks, balances |4445### Step 2: Formatting Standards4647**Chinese financial model formatting:**4849| Element | Format |50|---------|--------|51| Headers | Bold, background color |52| Inputs | Blue font, light blue background |53| Calculations | Black font, no background |54| Hardcodes (to avoid) | Red font |55| Negative numbers | Red font or (XXX) |56| Percentage | % format, 1 decimal |57| Currency | ¥ or 万元 |58| Dates | YYYY-MM-DD or YYYY年MM月 |5960**Color coding:**61```62蓝色 = 输入 (Inputs)63黑色 = 公式 (Calculations)64红色 = 警告 (Warnings / hardcodes)65绿色 = 链接 (Links)66灰色 = 标签 (Labels)67```6869### Step 3: Income Statement Layout7071**Standard P&L format (CAS):**7273| Item | FY2021 | FY2022 | FY2023 | FY2024E | FY2025E |74|------|--------|--------|--------|---------|---------|75| **营业收入** | | | | | |76| 减: 营业成本 | | | | | |77| = 毛利 | | | | | |78| 毛利率 | | | | | |79| 减: 税金及附加 | | | | | |80| 减: 销售费用 | | | | | |81| 减: 管理费用 | | | | | |82| 减: 研发费用 | | | | | |83| 减: 财务费用 | | | | | |84| 加: 投资收益 | | | | | |85| 加: 公允价值变动 | | | | | |86| 减: 信用减值损失 | | | | | |87| 减: 资产减值损失 | | | | | |88| 加: 资产处置收益 | | | | | |89| = 营业利润 | | | | | |90| 加: 营业外收入 | | | | | |91| 减: 营业外支出 | | | | | |92| = 利润总额 | | | | | |93| 减: 所得税费用 | | | | | |94| = 净利润 | | | | | |95| 其中: 归母净利润 | | | | | |96| 其中: 扣非净利润 | | | | | |97| EPS (元/股) | | | | | |9899### Step 4: Balance Sheet Layout100101**Standard BS format (CAS):**102103| Item | FY2021 | FY2022 | FY2023 | FY2024E | FY2025E |104|------|--------|--------|--------|---------|---------|105| **资产** | | | | | |106| 货币资金 | | | | | |107| 交易性金融资产 | | | | | |108| 应收票据 | | | | | |109| 应收账款 | | | | | |110| 预付款项 | | | | | |111| 存货 | | | | | |112| 其他流动资产 | | | | | |113| 流动资产合计 | | | | | |114| 长期股权投资 | | | | | |115| 固定资产 | | | | | |116| 在建工程 | | | | | |117| 无形资产 | | | | | |118| 商誉 | | | | | |119| 其他非流动资产 | | | | | |120| 非流动资产合计 | | | | | |121| **资产总计** | | | | | |122| | | | | | |123| **负债** | | | | | |124| 短期借款 | | | | | |125| 应付票据 | | | | | |126| 应付账款 | | | | | |127| 合同负债 | | | | | |128| 应付职工薪酬 | | | | | |129| 应交税费 | | | | | |130| 其他应付款 | | | | | |131| 流动负债合计 | | | | | |132| 长期借款 | | | | | |133| 应付债券 | | | | | |134| 预计负债 | | | | | |135| 非流动负债合计 | | | | | |136| **负债合计** | | | | | |137| | | | | | |138| **所有者权益** | | | | | |139| 股本 | | | | | |140| 资本公积 | | | | | |141| 盈余公积 | | | | | |142| 未分配利润 | | | | | |143| 归母股东权益 | | | | | |144| 少数股东权益 | | | | | |145| **所有者权益合计** | | | | | |146| **负债及权益总计** | | | | | |147148### Step 5: Assumptions Sheet149150**Key assumptions to centralize:**151152| Category | Assumption | Value | Source |153|----------|-----------|-------|--------|154| Revenue growth | FY2024E | X% | |155| Revenue growth | FY2025E | X% | |156| Gross margin | FY2024E | X% | |157| SG&A % of revenue | FY2024E | X% | |158| Tax rate | Effective | X% | |159| D&A | % of PPE | X% | |160| CapEx | % of revenue | X% | |161| NWC | % of revenue | X% | |162| Terminal growth | | X% | |163| WACC | | X% | |164165### Step 6: Valuation Sheet166167**DCF layout:**168169| Item | Value | Notes |170|------|-------|-------|171| Enterprise value | ¥XX亿 | |172| Less: Net debt | ¥XX亿 | |173| Equity value | ¥XX亿 | |174| Shares outstanding | XX亿股 | |175| Value per share | ¥XX | |176| Current price | ¥XX | |177| Upside/(Downside) | X% | |178179**Football field:**180181| Method | Low | Mid | High |182|--------|-----|-----|------|183| P/E | | | |184| P/B | | | |185| EV/EBITDA | | | |186| DCF | | | |187| **Range** | **¥XX** | **¥XX** | **¥XX** |188189### Step 7: Checks Sheet190191**Essential checks:**192193| Check | Formula | Target | Result |194|-------|---------|--------|--------|195| BS balances | Assets - L - E | 0 | |196| CF ties | Ending cash - Beg cash - Net CF | 0 | |197| Revenue growth | (Rev - Rev_prev) / Rev_prev | Reasonable | |198| Margin check | GP / Revenue | Reasonable | |199| Debt schedule | ST + LT debt | = Total | |200| Retained earnings | RE beg + NI - Div | = RE end | |201| Depreciation | D&A / PPE | Reasonable | |202203### Step 8: Charts & Presentation204205**Key charts to include:**206207| Chart | Purpose |208|-------|---------|209| Revenue & profit bridge | Historical + forecast |210| Margin trends | Gross, operating, net |211| Valuation multiples | Historical range |212| DCF sensitivity | Tornado chart |213| Peer comparison | Comps scatter plot |214215## China-Specific Excel Conventions216217### Unit Standards218219| Unit | Usage |220|------|-------|221| 元 | Per-share items |222| 万元 | Most financial items |223| 亿元 | Large totals, market cap |224225### Naming Conventions226227| Item | Convention |228|------|-----------|229| Sheet names | Short, Chinese preferred |230| Cell references | Named ranges for key cells |231| File naming | [Ticker]_[Company]_[Date]_v[X] |232233### Formula Conventions234235| Convention | Example |236|------------|---------|237| Sheet references | '利润表'!B10 |238| Named ranges | Revenue, WACC, Shares |239| Chinese function names | SUM, IF, VLOOKUP |240241## Quality Checks242243Before finalizing:244- [ ] All sheets present and linked245- [ ] No hardcodes in calculation cells246- [ ] Historicals cross-checked247- [ ] CAS conventions applied248- [ ] BS balances and CF ties249- [ ] Valuation reasonable250- [ ] Charts update automatically251- [ ] All checks green252- [ ] Documentation complete253> **Data Source Mode Switch**: Set env var `IFIND_DATA_SOURCE_MODE` to control data source preference.254> - `ifind-only` (strict): Use iFind only, error if unavailable255> - `ifind-fallback` (default): iFind preferred, fallback to AkShare256> - `akshare-only, wind-only (Wind only), wind-fallback (Wind first, fallback to iFind → AkShare)`: Skip iFind, use AkShare only