@v587d/capital-generation 2.7.2 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/README.md +10 -9
  3. package/THIRD_PARTY_NOTICES.md +116 -30
  4. package/capital-config/client.js +4 -4
  5. package/capital-config/package.json +1 -1
  6. package/capital-watchlist/package.json +1 -1
  7. package/chart-ui/package.json +1 -1
  8. package/lib/web-retriever/local-fetch.d.ts +1 -1
  9. package/lib/web-retriever/local-fetch.js +1 -1
  10. package/lib/web-retriever/sources.d.ts +1 -1
  11. package/lib/web-retriever/sources.js +1 -1
  12. package/lib/web-retriever/wind-client.d.ts +1 -1
  13. package/lib/web-retriever/wind-client.js +1 -1
  14. package/package.json +3 -1
  15. package/selected-skills/InvestSkill/UPSTREAM.md +9 -0
  16. package/selected-skills/README.md +6 -1
  17. package/selected-skills/catalog.js +353 -0
  18. package/selected-skills/china-stock-research-skills/UPSTREAM.md +2 -1
  19. package/selected-skills/claude-for-financial-services-cn/LICENSE +201 -0
  20. package/selected-skills/claude-for-financial-services-cn/UPSTREAM.md +173 -0
  21. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-3-statement-model/SKILL.md +287 -0
  22. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-accrual-schedule/SKILL.md +182 -0
  23. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-audit-xls/SKILL.md +231 -0
  24. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-break-trace/SKILL.md +217 -0
  25. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-catalyst-calendar/SKILL.md +258 -0
  26. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-clean-data-xls/SKILL.md +237 -0
  27. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-comps/SKILL.md +104 -0
  28. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-comps-analysis/SKILL.md +196 -0
  29. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-dcf/SKILL.md +81 -0
  30. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-dcf-model/SKILL.md +68 -0
  31. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-deal-screening/SKILL.md +212 -0
  32. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-deck-refresh/SKILL.md +221 -0
  33. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-earnings-analysis/SKILL.md +237 -0
  34. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-earnings-preview/SKILL.md +239 -0
  35. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-gl-recon/SKILL.md +232 -0
  36. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-ib-check-deck/SKILL.md +252 -0
  37. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-idea-generation/SKILL.md +277 -0
  38. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-initiating-coverage/SKILL.md +271 -0
  39. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-lbo-model/SKILL.md +273 -0
  40. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-market-data/SKILL.md +229 -0
  41. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-model-update/SKILL.md +219 -0
  42. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-morning-note/SKILL.md +227 -0
  43. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-ppt-template-creator/SKILL.md +231 -0
  44. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-pptx-author/SKILL.md +240 -0
  45. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-roll-forward/SKILL.md +189 -0
  46. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-sector-overview/SKILL.md +257 -0
  47. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-skill-creator/SKILL.md +304 -0
  48. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-tax-loss-harvesting/SKILL.md +200 -0
  49. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-thesis-tracker/SKILL.md +237 -0
  50. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-variance-commentary/SKILL.md +262 -0
  51. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/china-finance/skills/china-xlsx-author/SKILL.md +256 -0
  52. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-accrual-schedule/SKILL.md +190 -0
  53. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-break-trace/SKILL.md +182 -0
  54. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-gl-recon/SKILL.md +200 -0
  55. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-nav-tieout/SKILL.md +233 -0
  56. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-roll-forward/SKILL.md +178 -0
  57. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/fund-admin/skills/china-variance-commentary/SKILL.md +190 -0
  58. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-buyer-list/SKILL.md +198 -0
  59. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-cim-builder/SKILL.md +223 -0
  60. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-competitive-analysis/SKILL.md +233 -0
  61. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-datapack-builder/SKILL.md +232 -0
  62. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-deal-tracker/SKILL.md +151 -0
  63. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-merger-model/SKILL.md +226 -0
  64. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-pitch-deck/SKILL.md +231 -0
  65. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-process-letter/SKILL.md +249 -0
  66. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-strip-profile/SKILL.md +196 -0
  67. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/investment-banking/skills/china-teaser/SKILL.md +235 -0
  68. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/operations/skills/china-kyc-doc-parse/SKILL.md +252 -0
  69. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/operations/skills/china-kyc-rules/SKILL.md +223 -0
  70. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-ai-readiness/SKILL.md +184 -0
  71. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-dd-checklist/SKILL.md +217 -0
  72. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-dd-meeting-prep/SKILL.md +290 -0
  73. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-deal-sourcing/SKILL.md +224 -0
  74. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-ic-memo/SKILL.md +230 -0
  75. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-portfolio-monitoring/SKILL.md +214 -0
  76. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-returns-analysis/SKILL.md +176 -0
  77. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-unit-economics/SKILL.md +192 -0
  78. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/private-equity/skills/china-value-creation-plan/SKILL.md +193 -0
  79. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-client-report/SKILL.md +205 -0
  80. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-client-review/SKILL.md +218 -0
  81. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-financial-plan/SKILL.md +259 -0
  82. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-investment-proposal/SKILL.md +271 -0
  83. package/selected-skills/claude-for-financial-services-cn/vertical-plugins/wealth-management/skills/china-portfolio-rebalance/SKILL.md +191 -0
  84. package/selected-skills/investment-skills/UPSTREAM.md +2 -1
  85. package/selected-skills/peter-lynch-skill/UPSTREAM.md +4 -3
  86. package/selected-skills/trading-skills/LICENSE +21 -0
  87. package/selected-skills/trading-skills/UPSTREAM.md +111 -0
  88. package/selected-skills/trading-skills/skills/catalyst-map/SKILL.md +119 -0
  89. package/selected-skills/trading-skills/skills/catalyst-map/references/catalyst-framework.md +68 -0
  90. package/selected-skills/trading-skills/skills/earnings-preview/SKILL.md +124 -0
  91. package/selected-skills/trading-skills/skills/earnings-preview/references/data-providers.md +26 -0
  92. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/fmp.md +49 -0
  93. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/polygon.md +45 -0
  94. package/selected-skills/trading-skills/skills/earnings-preview/references/providers/tradingeconomics.md +49 -0
  95. package/selected-skills/trading-skills/skills/earnings-preview/references/relevance-ranking.md +24 -0
  96. package/selected-skills/trading-skills/skills/earnings-trade-prep/SKILL.md +134 -0
  97. package/selected-skills/trading-skills/skills/earnings-trade-prep/references/workflow-framework.md +65 -0
  98. package/selected-skills/trading-skills/skills/evidence-gap-check/SKILL.md +120 -0
  99. package/selected-skills/trading-skills/skills/evidence-gap-check/references/gap-framework.md +66 -0
  100. package/selected-skills/trading-skills/skills/execution-plan-check/SKILL.md +121 -0
  101. package/selected-skills/trading-skills/skills/execution-plan-check/references/execution-checklist.md +70 -0
  102. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/SKILL.md +120 -0
  103. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/calculation-helpers.md +16 -0
  104. package/selected-skills/trading-skills/skills/journal-pattern-analyzer/references/pattern-framework.md +74 -0
  105. package/selected-skills/trading-skills/skills/macro-event-analysis/SKILL.md +122 -0
  106. package/selected-skills/trading-skills/skills/macro-event-analysis/references/data-providers.md +23 -0
  107. package/selected-skills/trading-skills/skills/macro-event-analysis/references/interpretation-guide.md +22 -0
  108. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/fmp.md +28 -0
  109. package/selected-skills/trading-skills/skills/macro-event-analysis/references/providers/tradingeconomics.md +40 -0
  110. package/selected-skills/trading-skills/skills/market-regime-analysis/SKILL.md +117 -0
  111. package/selected-skills/trading-skills/skills/market-regime-analysis/references/data-providers.md +26 -0
  112. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/fmp.md +46 -0
  113. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/polygon.md +36 -0
  114. package/selected-skills/trading-skills/skills/market-regime-analysis/references/providers/tradingeconomics.md +46 -0
  115. package/selected-skills/trading-skills/skills/market-regime-analysis/references/regime-framework.md +23 -0
  116. package/selected-skills/trading-skills/skills/portfolio-concentration/SKILL.md +119 -0
  117. package/selected-skills/trading-skills/skills/portfolio-concentration/references/concentration-framework.md +72 -0
  118. package/selected-skills/trading-skills/skills/portfolio-risk-review/SKILL.md +126 -0
  119. package/selected-skills/trading-skills/skills/portfolio-risk-review/references/workflow-framework.md +57 -0
  120. package/selected-skills/trading-skills/skills/position-management/SKILL.md +120 -0
  121. package/selected-skills/trading-skills/skills/position-management/references/management-framework.md +70 -0
  122. package/selected-skills/trading-skills/skills/position-sizing/SKILL.md +83 -0
  123. package/selected-skills/trading-skills/skills/position-sizing/assets/trade-plan-template.md +15 -0
  124. package/selected-skills/trading-skills/skills/position-sizing/references/calculation-helpers.md +13 -0
  125. package/selected-skills/trading-skills/skills/position-sizing/references/methodology.md +28 -0
  126. package/selected-skills/trading-skills/skills/post-trade-debrief/SKILL.md +99 -0
  127. package/selected-skills/trading-skills/skills/post-trade-debrief/references/workflow-framework.md +51 -0
  128. package/selected-skills/trading-skills/skills/post-trade-review/SKILL.md +82 -0
  129. package/selected-skills/trading-skills/skills/post-trade-review/references/review-rubric.md +34 -0
  130. package/selected-skills/trading-skills/skills/pre-trade-check/SKILL.md +136 -0
  131. package/selected-skills/trading-skills/skills/pre-trade-check/references/workflow-framework.md +61 -0
  132. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/SKILL.md +81 -0
  133. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/calculation-helpers.md +14 -0
  134. package/selected-skills/trading-skills/skills/risk-reward-sanity-check/references/failure-modes.md +9 -0
  135. package/selected-skills/trading-skills/skills/thesis-validation/SKILL.md +123 -0
  136. package/selected-skills/trading-skills/skills/thesis-validation/references/thesis-checklist.md +56 -0
  137. package/selected-skills/trading-skills/skills/watchlist-review/SKILL.md +119 -0
  138. package/selected-skills/trading-skills/skills/watchlist-review/references/review-framework.md +57 -0
  139. package/selected-skills/InvestSkill/ADDING-NEW-SKILLS.md +0 -546
  140. package/selected-skills/InvestSkill/CHANGELOG.md +0 -373
  141. package/selected-skills/InvestSkill/CI-CD-GUIDE.md +0 -432
  142. package/selected-skills/InvestSkill/CLAUDE.md +0 -148
  143. package/selected-skills/InvestSkill/CONTRIBUTING.md +0 -291
  144. package/selected-skills/InvestSkill/DEPLOYMENTS.md +0 -321
  145. package/selected-skills/InvestSkill/FAQ.md +0 -509
  146. package/selected-skills/InvestSkill/GEMINI.md +0 -419
  147. package/selected-skills/InvestSkill/PLATFORM-COMPATIBILITY.md +0 -529
  148. package/selected-skills/InvestSkill/README-claude-code.md +0 -435
  149. package/selected-skills/InvestSkill/README-cursor.md +0 -475
  150. package/selected-skills/InvestSkill/README-gemini.md +0 -532
  151. package/selected-skills/InvestSkill/README-ollama.md +0 -106
  152. package/selected-skills/InvestSkill/README-zh-TW.md +0 -461
  153. package/selected-skills/InvestSkill/README.md +0 -311
  154. package/selected-skills/InvestSkill/RELEASE-QUICK-REFERENCE.md +0 -230
  155. package/selected-skills/InvestSkill/RELEASE_NOTES.md +0 -121
  156. package/selected-skills/InvestSkill/SECURITY.md +0 -232
  157. package/selected-skills/InvestSkill/TODO.md +0 -28
  158. package/selected-skills/InvestSkill/package.json +0 -64
  159. package/selected-skills/InvestSkill/plugins/us-stock-analysis/README.md +0 -119
  160. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
  161. package/selected-skills/china-stock-research-skills/.github/ISSUE_TEMPLATE/skill_request.md +0 -28
  162. package/selected-skills/china-stock-research-skills/.github/PULL_REQUEST_TEMPLATE.md +0 -15
  163. package/selected-skills/china-stock-research-skills/CHANGELOG.md +0 -59
  164. package/selected-skills/china-stock-research-skills/CONTRIBUTING.md +0 -121
  165. package/selected-skills/china-stock-research-skills/GITHUB_PUBLISHING.md +0 -259
  166. package/selected-skills/china-stock-research-skills/INSTALL.md +0 -151
  167. package/selected-skills/china-stock-research-skills/PUBLISH_CHECKLIST.md +0 -165
  168. package/selected-skills/china-stock-research-skills/README.en.md +0 -209
  169. package/selected-skills/china-stock-research-skills/README.md +0 -209
  170. package/selected-skills/china-stock-research-skills/RELEASE_ASSETS.md +0 -222
  171. package/selected-skills/china-stock-research-skills/ROADMAP.md +0 -45
  172. package/selected-skills/china-stock-research-skills/SKILLS.md +0 -85
  173. package/selected-skills/china-stock-research-skills/examples/full-report-flow.md +0 -20
  174. package/selected-skills/china-stock-research-skills/examples/module-select-cases.md +0 -26
  175. package/selected-skills/china-stock-research-skills/examples/quickstart-prompts.md +0 -25
  176. package/selected-skills/investment-skills/.github/workflows/validate.yml +0 -25
  177. package/selected-skills/investment-skills/.tbd/config.yml +0 -107
  178. package/selected-skills/investment-skills/README.md +0 -253
  179. package/selected-skills/investment-skills/docs/development.md +0 -37
  180. package/selected-skills/investment-skills/docs/roadmap.md +0 -25
  181. package/selected-skills/peter-lynch-skill/README.md +0 -305
@@ -0,0 +1,237 @@
1
+ ---
2
+ name: china-clean-data-xls
3
+ description: Clean and normalize A-share financial data for modeling. Adapts the original clean-data-xls skill for Chinese financial statements, CAS conventions, and A-share data formats. Triggers on "A股数据清洗", "财务数据清洗", "clean financial data China", "数据清洗", or "normalize financial statements".
4
+ ---
5
+
6
+ # china-clean-data-xls
7
+
8
+ ## Purpose
9
+
10
+ Clean and normalize **A股财务数据** — prepare raw financial data from 巨潮 filings for modeling and analysis.
11
+
12
+ ## Data Sources
13
+
14
+ ### Tier 0 — 万得 Wind(最全面付费数据)
15
+ - 覆盖:A股/港美股/基金/指数/债券/宏观/研报/分析(44个工具)
16
+ - MCP 服务:`wind-mcp`(需 `WIND_API_KEY` 密钥,以 `ak_` 开头)
17
+ - 优势:全市场覆盖面最广、数据最全面、包含研报和量化分析
18
+ - 密钥申请:https://aifinmarket.wind.com.cn/#/home
19
+
20
+ ### Tier 1 — 同花顺 iFind(付费精确数据)/ AkShare MCP(Tier-2 免费备选)
21
+
22
+ ```python
23
+ get_financials(ticker, "income") → Raw income statement
24
+ get_financials(ticker, "balance") → Raw balance sheet
25
+ get_financials(ticker, "cashflow") → Raw cash flow statement
26
+ ```
27
+
28
+ ### Secondary Sources
29
+ - 巨潮 — original filings (PDF/HTML)
30
+ - 审计报告 — audited figures
31
+
32
+ ## Workflow
33
+
34
+ ### Step 1: Data Extraction
35
+
36
+ **Extract from source documents:**
37
+
38
+ | Document | Key Data | Format |
39
+ |----------|----------|--------|
40
+ | 资产负债表 | Assets, liabilities, equity | 千元 |
41
+ | 利润表 | Revenue, expenses, profit | 千元 |
42
+ | 现金流量表 | Operating, investing, financing CF | 千元 |
43
+ | 报表附注 | Detail breakdowns | Text/number |
44
+ | 审计报告 | Audit opinion, adjustments | Text |
45
+
46
+ **Extraction checklist:**
47
+ - [ ] All periods extracted (typically 3-5 years)
48
+ - [ ] Quarterly data if needed
49
+ - [ ] Prior year comparatives
50
+ - [ ] Notes and footnotes captured
51
+
52
+ ### Step 2: Normalize Units
53
+
54
+ **Unit standardization:**
55
+
56
+ | Issue | Solution |
57
+ |-------|----------|
58
+ | 千元 vs 万元 vs 元 | Standardize to 万元 |
59
+ | Different report dates | Align to same period-end |
60
+ | Segment data | Map to consistent segments |
61
+ | Currency | All CNY |
62
+
63
+ **Unit conversion:**
64
+ ```
65
+ From 千元: divide by 10 → 万元
66
+ From 元: divide by 10,000 → 万元
67
+ From 亿元: multiply by 10,000 → 万元
68
+ ```
69
+
70
+ ### Step 3: Handle CAS-Specific Items
71
+
72
+ **CAS vs IFRS mapping:**
73
+
74
+ | CAS Line Item | Equivalent | Notes |
75
+ |---------------|-----------|-------|
76
+ | 营业收入 | Revenue | Net of VAT |
77
+ | 营业成本 | COGS | Includes VAT |
78
+ | 税金及附加 | Tax & surcharges | 城建税, 教育费附加 |
79
+ | 销售费用 | SG&A (selling) | |
80
+ | 管理费用 | G&A | |
81
+ | 研发费用 | R&D | Separated from G&A in new CAS |
82
+ | 财务费用 | Interest & finance costs | |
83
+ | 投资收益 | Investment income | Including 联营/合营 |
84
+ | 公允价值变动 | Fair value change | |
85
+ | 信用减值损失 | Credit impairment | New CAS 22 |
86
+ | 资产减值损失 | Asset impairment | |
87
+ | 资产处置收益 | Asset disposal | |
88
+ | 营业外收入 | Non-operating income | Including 政府补助 |
89
+ | 营业外支出 | Non-operating expense | |
90
+ | 所得税费用 | Income tax | |
91
+ | 净利润 | Net income | |
92
+ | 归母净利润 | Net income to parent | Key metric |
93
+ | 扣非净利润 | Non-GAAP net income | |
94
+
95
+ ### Step 4: Fix Common Data Issues
96
+
97
+ **Common issues and fixes:**
98
+
99
+ | Issue | Detection | Fix |
100
+ |-------|-----------|-----|
101
+ | Missing periods | Gap in data | Flag for manual fill |
102
+ | Restated figures | Footnote "重述" | Use most recent restatement |
103
+ | Segment reclassification | Note disclosure | Map to new segments |
104
+ | One-time items | Large/unusual items | Flag for normalization |
105
+ | Related party | 关联交易标注 | Identify and quantify |
106
+ | Accounting change | Policy change note | Adjust comparables |
107
+ | Error | Doesn't sum | Investigate and correct |
108
+
109
+ ### Step 5: Revenue Breakdown
110
+
111
+ **Revenue by type:**
112
+
113
+ | Type | CAS Line | Notes |
114
+ |------|----------|-------|
115
+ | 主营业务收入 | Core revenue | Main business |
116
+ | 其他业务收入 | Other revenue | Ancillary |
117
+ | 合计 | Total revenue | |
118
+
119
+ **Revenue by geography (if disclosed):**
120
+
121
+ | Region | Current Year | Prior Year | Growth |
122
+ |--------|-------------|------------|--------|
123
+ | 国内 | | | |
124
+ | 海外 | | | |
125
+ | 合计 | | | |
126
+
127
+ ### Step 6: Expense Normalization
128
+
129
+ **Normalize non-recurring items:**
130
+
131
+ | Item | Treatment |
132
+ |------|-----------|
133
+ | 资产处置收益/损失 | Exclude from operations |
134
+ | 政府补助 (non-recurring) | Exclude or note separately |
135
+ | 诉讼/罚款 | Exclude |
136
+ | 减值 (one-time) | Exclude or normalize |
137
+ | 并购相关费用 | Exclude |
138
+
139
+ **Adjusted metrics:**
140
+ ```
141
+ 调整后营业收入 = 营业收入 - 其他业务收入
142
+ 调整后营业成本 = 营业成本 (core only)
143
+ 调整毛利率 = 调整后毛利 / 调整后收入
144
+ ```
145
+
146
+ ### Step 7: Balance Sheet Clean-up
147
+
148
+ **Balance sheet mapping:**
149
+
150
+ | CAS Item | Modeling Category |
151
+ |----------|------------------|
152
+ | 货币资金 | Cash & equivalents |
153
+ | 交易性金融资产 | Short-term investments |
154
+ | 应收票据 | Notes receivable |
155
+ | 应收账款 | Accounts receivable |
156
+ | 预付款项 | Prepayments |
157
+ | 其他应收款 | Other receivables |
158
+ | 存货 | Inventory |
159
+ | 其他流动资产 | Other current assets |
160
+ | 长期股权投资 | Long-term investments |
161
+ | 固定资产 | PPE |
162
+ | 在建工程 | Construction in progress |
163
+ | 无形资产 | Intangibles |
164
+ | 商誉 | Goodwill |
165
+ | 长期待摊费用 | Deferred charges |
166
+ | 其他非流动资产 | Other non-current |
167
+ | 短期借款 | Short-term debt |
168
+ | 应付票据 | Notes payable |
169
+ | 应付账款 | Accounts payable |
170
+ | 合同负债 | Contract liabilities |
171
+ | 应付职工薪酬 | Accrued compensation |
172
+ | 应交税费 | Taxes payable |
173
+ | 其他应付款 | Other payables |
174
+ | 一年内到期非流动负债 | Current portion LTD |
175
+ | 长期借款 | Long-term debt |
176
+ | 应付债券 | Bonds payable |
177
+ | 预计负债 | Provisions |
178
+ | 递延所得税负债 | DTL |
179
+ | 其他非流动负债 | Other non-current |
180
+ | 股本 | Share capital |
181
+ | 资本公积 | Capital reserve |
182
+ | 盈余公积 | Retained earnings (statutory) |
183
+ | 未分配利润 | Retained earnings |
184
+ | 归属于母公司股东权益 | Parent equity |
185
+ | 少数股东权益 | Minority interest |
186
+
187
+ ### Step 8: Quality Checks
188
+
189
+ **Data quality checklist:**
190
+
191
+ | Check | Pass Criteria |
192
+ |-------|--------------|
193
+ | Balance sheet balances | Assets = Liabilities + Equity |
194
+ | Cash flow ties | CF = ending cash - beginning cash |
195
+ | Revenue matches | Cross-check with segment data |
196
+ | Tax reasonable | Tax / pre-tax income ~25% |
197
+ | Depreciation consistent | D&A / PPE stable |
198
+ | Interest matches | Interest / debt reasonable |
199
+
200
+ ## China-Specific Data Issues
201
+
202
+ ### Common Issues
203
+
204
+ | Issue | Example | Fix |
205
+ |-------|---------|-----|
206
+ | 单位不一致 | Some 千元, some 元 | Standardize |
207
+ | 会计政策变更 | Revenue recognition change | Adjust comparables |
208
+ | 报表格式变化 | New line items | Map to old format |
209
+ | 追溯调整 | Prior period restatement | Use restated figures |
210
+ | 外币报表 | Subsidiary in USD | Convert to CNY |
211
+
212
+ ### CAS-Specific Treatments
213
+
214
+ | Item | CAS Treatment |
215
+ |------|--------------|
216
+ | 研发费用 | Must be expensed (not capitalized, generally) |
217
+ | 政府补助 | 总额法 vs 净额法 |
218
+ | 股份支付 | Expensed over vesting period |
219
+ | 保险合同 | CAS 25 (if applicable) |
220
+
221
+ ## Quality Checks
222
+
223
+ Before passing data for modeling:
224
+ - [ ] All periods complete
225
+ - [ ] Units standardized
226
+ - [ ] Balance sheet balances
227
+ - [ ] Cash flow ties
228
+ - [ ] CAS items correctly mapped
229
+ - [ ] Non-recurring items flagged
230
+ - [ ] Restatements applied
231
+ - [ ] Quality issues documented
232
+ > **Data Source Mode Switch**: Set env var `IFIND_DATA_SOURCE_MODE` to control data source preference.
233
+ > - `ifind-only` (strict): Use iFind only, error if unavailable
234
+ > - `ifind-fallback` (default): iFind preferred, fallback to AkShare
235
+ > - `akshare-only`: Skip iFind, use AkShare only
236
+ > - `wind-only`: Wind only, error if unavailable
237
+ > - `wind-fallback`: Wind first, fallback to iFind → AkShare
@@ -0,0 +1,104 @@
1
+ ---
2
+ name: china-comps
3
+ description: 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.
4
+ ---
5
+
6
+ # china-comps
7
+
8
+ ## Data Sources (Multi-Tier)
9
+
10
+ ### Tier 0 — 万得 Wind(最全面付费数据)
11
+ - 覆盖:A股/港美股/基金/指数/债券/宏观/研报/分析(44个工具)
12
+ - MCP 服务:`wind-mcp`(需 `WIND_API_KEY` 密钥,以 `ak_` 开头)
13
+ - 优势:全市场覆盖面最广、数据最全面、包含研报和量化分析
14
+ - 密钥申请:https://aifinmarket.wind.com.cn/#/home
15
+
16
+ ### Tier 1 — 同花顺 iFind(付费精确数据)
17
+ Use ifind MCP when a valid `IFIND_AUTH_TOKEN` is configured.
18
+
19
+ ```python
20
+ ifind_get_stock_info(ticker) → Company profile, multiples
21
+ ifind_get_stock_financials(ticker, ...) → Revenue, net income, margins
22
+ ifind_search_stocks(query) → Industry-wide stock screening
23
+ ```
24
+
25
+ ### Tier 2 — AkShare(免费开源数据)
26
+ Fallback when iFind is unavailable.
27
+
28
+ ```python
29
+ get_quote(ticker) → Price, PE, PB, market cap
30
+ get_financials(ticker, "income", "annual") → Revenue, net income
31
+ get_financials(ticker, "balance", "annual") → Book value
32
+ get_stock_info(ticker) → Business description
33
+ ```
34
+
35
+ > **数据源模式开关**: 当环境变量 `IFIND_DATA_SOURCE_MODE=ifind-only` 时,仅使用 iFind 数据源,禁用 AkShare 降级。
36
+
37
+ ---
38
+ name: china-comps
39
+ 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.
40
+ ---
41
+
42
+ # china-comps
43
+
44
+ ## Workflow
45
+
46
+ ### 1. Define the peer group
47
+
48
+ 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:
49
+
50
+ | Industry | Example Leaders |
51
+ |----------|-----------------|
52
+ | 白酒 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
53
+ | 半导体 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
54
+ | 电池 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
55
+ | 银行 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
56
+ | 证券 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
57
+ | 保险 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
58
+ | 医疗器械 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
59
+ | 光伏设备 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
60
+ | 汽车整车 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
61
+ | 软件开发 | {{SECTOR_LEADER}}, {{CHALLENGER_1}}, {{CHALLENGER_2}} |
62
+
63
+ ### 2. Pull financial data for each peer
64
+
65
+ ```
66
+ For each ticker in the peer set:
67
+ get_quote(ticker) → price, PE, PB, market cap
68
+ get_financials(ticker, "income", "annual") → revenue, net income
69
+ get_financials(ticker, "balance", "annual") → book value, debt
70
+ get_stock_info(ticker) → business description
71
+ ```
72
+
73
+ ### 3. Compute standard multiples
74
+
75
+ | Multiple | Formula | AkShare source field |
76
+ |----------|---------|---------------------|
77
+ | PE (TTM) | Price / EPS TTM | `get_quote` → 动态市盈率 |
78
+ | PB | Price / Book Value per share | `get_quote` → 市净率 |
79
+ | PS (TTM) | Market Cap / Revenue TTM | Compute from market cap + revenue |
80
+ | EV/EBITDA | Enterprise Value / EBITDA | Compute from market cap + debt - cash |
81
+ | Dividend Yield | DPS / Price | `get_quote` → 股息率 |
82
+
83
+ ### 4. Present the comps table
84
+
85
+ Sort by market cap (largest first). Flag outliers (>2 standard deviations from mean). Include:
86
+ - Ticker, company name, price
87
+ - Market cap (亿 CNY)
88
+ - PE, PB, PS
89
+ - Revenue growth %, Net margin %
90
+ - 52-week high/low
91
+
92
+ ### 5. Relative value assessment
93
+
94
+ - If target's PE is >1 std dev above peer mean → potentially overvalued
95
+ - If target's PE is >1 std dev below peer mean → potentially undervalued
96
+ - Flag companies with negative earnings separately
97
+ - Compare PEG ratios (PE / growth rate) when growth data is available
98
+
99
+ ## Notes
100
+
101
+ - All financial data from AkShare is based on Chinese accounting standards (CAS), not IFRS/US GAAP
102
+ - Chinese market has 涨跌停 limits (±10% for main board, ±20% for ChiNext/STAR)
103
+ - A-share market cap includes both circulating (流通) and non-circulating shares — check if the user wants 流通市值 or 总市值
104
+ - For cross-market comps (A-share vs HK-listed), note that A-shares typically trade at a premium
@@ -0,0 +1,196 @@
1
+ ---
2
+ name: china-comps-analysis
3
+ description: Comparable company analysis for A-share equities. Adapts the original comps-analysis skill for Chinese market data sources, A-share trading multiples, and domestic peer selection. Triggers on "A股可比公司", "可比分析", "comps China", "peer comparison A-share", "可比公司分析", or "trading comps [industry]".
4
+ ---
5
+
6
+ # china-comps-analysis
7
+
8
+ > 本文件相对上游 `d7585ca` 快照做过合规改写(取数与凭据口径),逐条记在快照根目录的 UPSTREAM.md;方法论、阈值与输出模板未改。
9
+
10
+ ## Purpose
11
+
12
+ Build **A股可比公司分析** — peer group multiples comparison adapted for the Chinese equity market.
13
+
14
+ ## Data Sources
15
+
16
+ This section says **what to ask the host's retrieval path for**. It is not a set of calls made from here: this plugin obtains data through exactly one entry — the main agent delegating it — and a comps sheet carries no data-service key and issues no interface call.
17
+
18
+ Hand over a brief naming the peer tickers, the fields, and one shared as-of date:
19
+
20
+ - Trading multiples inputs per name: 最新价, PE / PB / PS, 市值, 股本
21
+ - Financials per name: revenue and 归母净利润 for the LTM window, 资产负债表 for book value and 有息负债, plus the 折旧摊销 needed for EBITDA
22
+ - Peer universe: the industry constituents for the 东方财富 category being used
23
+ - Filings: the 定期报告 behind any figure that has to be checked against the disclosure rather than a screen
24
+
25
+ In a host that splits roles, delegate that brief rather than searching from this step, then build the table from what comes back. A peer whose figures did not come back stays out of the median — it is not filled in with a remembered multiple.
26
+
27
+ ## Workflow
28
+
29
+ ### Step 1: Select Peer Group
30
+
31
+ **Peer selection criteria:**
32
+
33
+ | Criterion | China Context |
34
+ |-----------|---------------|
35
+ | Industry | Same 东方财富 industry category |
36
+ | Market cap | ±3x of subject company |
37
+ | Revenue | ±2x of subject company |
38
+ | Growth | Similar revenue growth profile |
39
+ | Profitability | Comparable margins |
40
+ | Business model | Same/related business model |
41
+ | Geography | China-focused (A-share only) |
42
+ | Listing status | All A-share (include 北交所 if relevant) |
43
+
44
+ **Typical peer count:** 8-15 companies
45
+
46
+ ### Step 2: Collect Financial Data
47
+
48
+ **Data to collect for each peer:**
49
+
50
+ | Data Item | Source | Notes |
51
+ |-----------|--------|-------|
52
+ | Current price | 宿主取数返回 | as-of 日期与其余行统一 |
53
+ | Market cap | Calculated | Shares outstanding × price |
54
+ | Revenue (LTM) | 宿主取数返回(利润表) | |
55
+ | Net income (LTM) | 宿主取数返回(归母净利润) | |
56
+ | EPS ( diluted ) | 宿主取数返回 | |
57
+ | Book value | 资产负债表 | |
58
+ | EBITDA | Calculate | Net income + tax + interest + D&A |
59
+ | EV | Calculate | Market cap + net debt |
60
+
61
+ The `Source` column is filled with what the retrieval actually returned — a dataset reference from the host's data path or the disclosure document behind it — never with a vendor name, and never left implied.
62
+
63
+ ### Step 3: Calculate Trading Multiples
64
+
65
+ **Standard multiples:**
66
+
67
+ | Multiple | Formula | Typical Range (A-share) |
68
+ |----------|---------|------------------------|
69
+ | P/E (动态) | Price / 预测EPS | 10-50x |
70
+ | P/E (TTM) | Price / TTM EPS | 10-50x |
71
+ | P/E (静态) | Price / 上年EPS | 10-50x |
72
+ | PB | Price / 每股净资产 | 1-10x |
73
+ | PS | EV / Revenue | 1-10x |
74
+ | EV/EBITDA | EV / EBITDA | 5-20x |
75
+ | PEG | P/E / Growth | 0.5-2.0 |
76
+ | 股息率 | Dividend / Price | 0-5% |
77
+ | ROE | Net income / Equity | 5-30% |
78
+
79
+ **Multiples calculation notes:**
80
+ - P/E: use 归母净利润 (net income attributable to parent)
81
+ - PB: use 归属于母公司股东权益
82
+ - EBITDA: approximate as 营业利润 + 折旧摊销 (if D&A not separately stated)
83
+
84
+ ### Step 4: Peer Comparison Table
85
+
86
+ **Standard comps table:**
87
+
88
+ | Company | Ticker | Market Cap (亿) | P/E (TTM) | P/B | P/S | EV/EBITDA | Revenue Growth | Net Margin | ROE |
89
+ |---------|--------|----------------|-----------|-----|-----|-----------|---------------|------------|-----|
90
+ | Subject | | | X.Xx | X.X | X.X | X.X | X% | X% | X% |
91
+ | Peer 1 | | | X.Xx | X.X | X.X | X.X | X% | X% | X% |
92
+ | Peer 2 | | | X.Xx | X.X | X.X | X.X | X% | X% | X% |
93
+ | Peer 3 | | | X.Xx | X.X | X.X | X.X | X% | X% | X% |
94
+ | ... | | | | | | | | | |
95
+ | Median | | | X.Xx | X.X | X.X | X.X | X% | X% | X% |
96
+ | Mean | | | X.Xx | X.X | X.X | X.X | X% | X% | X% |
97
+
98
+ ### Step 5: Identify Outliers
99
+
100
+ **Outlier analysis:**
101
+
102
+ | Company | P/E | vs Median | Reason for Premium/Discount |
103
+ |---------|-----|-----------|----------------------------|
104
+ | | | ±X% | Growth, margin, quality, sentiment |
105
+
106
+ **Common reasons for A-share premium/discount:**
107
+ - 增速 (Growth rate)
108
+ - 盈利能力 (Profitability / ROE)
109
+ - 行业地位 (Market position)
110
+ - 技术壁垒 (Technology moat)
111
+ - 管理层质量 (Management quality)
112
+ - 流动性 (Liquidity — 北向资金持仓)
113
+ - 概念/题材 (Theme / concept premium)
114
+ - 治理结构 (Corporate governance)
115
+
116
+ ### Step 6: Valuation Range
117
+
118
+ **Derive valuation range:**
119
+
120
+ | Method | Low | Mid | High | Rationale |
121
+ |--------|-----|-----|------|-----------|
122
+ | P/E | Xx | Xx | Xx | Based on peer range |
123
+ | P/B | Xx | Xx | Xx | Based on peer range |
124
+ | P/S | Xx | Xx | Xx | Based on peer range |
125
+ | EV/EBITDA | Xx | Xx | Xx | Based on peer range |
126
+
127
+ **Implied price range:**
128
+ - Low: ¥XX (using low multiples + conservative assumptions)
129
+ - Mid: ¥XX (using median multiples)
130
+ - High: ¥XX (using high multiples + optimistic assumptions)
131
+
132
+ ### Step 7: Relative Valuation Conclusion
133
+
134
+ **Valuation summary:**
135
+
136
+ ```
137
+ 可比公司估值结论
138
+
139
+ 当前股价: ¥XX
140
+ 目标价区间: ¥XX - ¥XX
141
+ 当前估值水平: [Premium/Discount] vs peers
142
+
143
+ 关键结论:
144
+ 1. 相对估值: 较同业 [低/中/高]
145
+ 2. 主要驱动: [Growth / Margin / Quality]
146
+ 3. 估值折价/溢价原因: [Explanation]
147
+
148
+ 投资建议: [Buy / Hold / Sell]
149
+ ```
150
+
151
+ ## China-Specific Considerations
152
+
153
+ ### A-share Multiples Quirks
154
+
155
+ | Issue | Impact | Mitigation |
156
+ |-------|--------|-----------|
157
+ | 盈利波动大 | TTM earnings volatile | Use 3Y average |
158
+ | 一次性损益 | Distorts P/E | Use 扣非净利润 for P/E |
159
+ | 亏损公司 | Negative P/E meaningless | Use P/S or EV/EBITDA |
160
+ | 新股次新股 | Limited history | Use 静态市盈率 cautiously |
161
+ | ST股票 | Distressed | Exclude from peer set |
162
+
163
+ ### Chinese Market Premiums
164
+
165
+ | Factor | Typical Premium |
166
+ |--------|----------------|
167
+ | 消费龙头 (Consumer leader) | +20-50% |
168
+ | 科技/创新 (Tech/innovation) | +30-100% |
169
+ | 医药 (Pharma) | +15-40% |
170
+ | 国企 (SOE) | -10 to -30% |
171
+ | 高股息 (High dividend) | -5 to +10% |
172
+ | 北向资金重仓 | +5-20% |
173
+
174
+ ### 东方财富 Industry Categories
175
+
176
+ **Common categories for peer selection:**
177
+ - 白酒, 啤酒 — Beverages
178
+ - 半导体, 芯片 — Semiconductors
179
+ - 银行, 证券, 保险 — Financial services
180
+ - 创新药, 医疗器械 — Healthcare
181
+ - 光伏设备, 锂电池 — New energy
182
+ - 汽车整车, 汽车零部件 — Auto
183
+ - 软件开发, IT服务 — Software/IT
184
+ - 房地产, 建材 — Real estate / Materials
185
+
186
+ ## Quality Checks
187
+
188
+ Before delivering:
189
+ - [ ] Peer group appropriate (similar size, growth, business model)
190
+ - [ ] Every figure came back through the host's retrieval path, or is written up as missing
191
+ - [ ] Multiples calculated correctly
192
+ - [ ] Outliers explained
193
+ - [ ] Valuation conclusion supported
194
+ - [ ] Current price verified
195
+ > 取数档位(接哪家数据服务、用哪个密钥)由宿主的凭据域决定:这张可比表不配置它,也不向使用者索取凭据。
196
+ > 目标价区间与最后一行投资建议是把上面这些倍数写成一个结论的**推演练习**,本插件不据它下单,也不给仓位。
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: china-dcf
3
+ description: DCF valuation model for A-share stocks on Chinese financial statements, with WACC built from China government bond yields and A-share specific ERP. Use instead of the original dcf-model skill for Chinese equities.
4
+ ---
5
+
6
+ # china-dcf
7
+
8
+ > 本文件相对上游 `d7585ca` 快照做过合规改写(取数与凭据口径),逐条记在快照根目录的 UPSTREAM.md;方法论、阈值与输出模板未改。
9
+
10
+ ## Data Sources
11
+
12
+ A DCF is only as honest as the numbers handed to it, and this plugin has exactly one way to obtain numbers: the main agent delegates retrieval to the role that owns it. Nothing here calls a data interface, holds a key, or runs code.
13
+
14
+ Write one brief that names the ticker, the fields, and the as-of date, and ask for:
15
+
16
+ - 三表(年度,5 年窗口):利润表、资产负债表、现金流量表 — the base for FCF history and for 折旧摊销 / CapEx
17
+ - 行情与股本:最新价、市值、PE / PB、股本结构(beta 需要它和基准指数的收益序列)
18
+ - 基准指数收益:上证指数的历史收益,用于 β 回归
19
+ - 无风险与债务成本输入:中国 10Y 国债收益率(Rf)与 5 年期信用债收益(Kd 的起点)
20
+ - 风险指标:宿主数据侧给出的 β / 波动率;拿不到就用同业 β 并写明用的是哪家同业
21
+
22
+ In a host that splits roles, delegate that brief rather than reaching for a feed from here. Then build the model from what comes back; a field that did not come back stays a named gap, and the valuation runs as a sensitivity over it rather than on an invented level.
23
+
24
+
25
+
26
+
27
+ ## Key differences from US-market DCF
28
+
29
+ | Parameter | US DCF Convention | China DCF Convention |
30
+ |-----------|-------------------|---------------------|
31
+ | Risk-free rate | US 10Y Treasury | China 10Y CGB (国债收益率, ~2.5-3.5%) |
32
+ | Equity risk premium | ~5-6% (historical US) | ~6-8% (China A-share ERP) |
33
+ | Tax rate | US corporate 21% | China corporate 25% (高新技术企业 15%) |
34
+ | Terminal growth | US GDP growth (~2%) | China GDP growth (~4-5%) |
35
+ | Currency | USD | CNY |
36
+ | Reporting standard | US GAAP / IFRS | CAS (中国会计准则) |
37
+
38
+ ## Workflow
39
+
40
+ ### Step 1: Pull financials
41
+
42
+ Retrieve, through the host's data path: 利润表 / 资产负债表 / 现金流量表 on an annual basis for the last 5 years. Ask for them as one brief with the ticker, the three statements, and the window, then take the returned dataset reference as the model's input record.
43
+
44
+ ### Step 2: Get market data
45
+
46
+ Retrieve 最新价、市值、PE / PB for the subject, and the 上证指数 return history needed for β. Both asks go to the host's retrieval path with the same as-of date; β is then estimated from what came back, and if the benchmark history did not come back, say so and use a comparable-firm β labelled as such.
47
+
48
+ ### Step 3: Build projections
49
+
50
+ - Project revenue using historical growth rates adjusted for China macro outlook
51
+ - Assume 65-75% operating margin for 白酒 / high-margin sectors
52
+ - Assume 15-25% operating margin for manufacturing
53
+ - CapEx as % of revenue: check historical from cashflow statement
54
+
55
+ ### Step 4: Compute WACC
56
+
57
+ ```
58
+ WACC = E/(D+E) * Ke + D/(D+E) * Kd * (1 - tax_rate)
59
+
60
+ Ke = Rf + β * ERP
61
+ Rf = China 10Y CGB yield(国债收益率)— ask the host's retrieval path for the current level; if it does not come
62
+ back, run the model as a sensitivity over a stated Rf band instead of assuming a number
63
+ β = regression on 上证指数 returns (or use comparable firm beta)
64
+ ERP = 6-8% (China-specific equity risk premium)
65
+
66
+ Kd = China 5Y corporate bond yield + credit spread
67
+ ```
68
+
69
+ ### Step 5: Terminal value
70
+
71
+ ```
72
+ Terminal Value = FCF_(n+1) / (WACC - g)
73
+ g = 3-4% for mature Chinese companies (China nominal GDP growth)
74
+ ```
75
+
76
+ ## Notes
77
+
78
+ - Chinese fiscal year ends December 31 for most companies
79
+ - 北向资金 (Northbound flow) data can be used as sentiment indicator
80
+ - 商誉 (goodwill) impairments are common in China M&A — flag if goodwill > 30% of equity
81
+ - Some Chinese financial statements are reported in 千元 (thousands of CNY) vs 元 — check the unit
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: china-dcf-model
3
+ description: Discounted cash flow (DCF) valuation model for A-share equities. This alias skill redirects to china-dcf, which provides comprehensive DCF modeling adapted for Chinese market conventions. Triggers on "A股DCF模型", "DCF估值", "DCF model China", "现金流折现", "discounted cash flow A-share", or "DCF [company]".
4
+ ---
5
+
6
+ # china-dcf-model
7
+
8
+ > **Note:** This skill is an alias/wrapper for `china-dcf`. For full DCF modeling guidance, see `china-dcf/SKILL.md`.
9
+
10
+ ## Purpose
11
+
12
+ Provide access to **A股DCF估值** — discounted cash flow valuation adapted for Chinese market parameters.
13
+
14
+ ## Quick Reference
15
+
16
+ ### Core DCF Parameters (China)
17
+
18
+ | Parameter | Typical Value | Source |
19
+ |-----------|--------------|--------|
20
+ | Risk-free rate | 2.0-3.0% | China 10Y CGB yield |
21
+ | Equity risk premium | 6-8% | China-specific |
22
+ | Beta | 0.8-1.2 | A-share historical |
23
+ | Cost of debt | 3-6% | China corporate bond yields |
24
+ | Terminal growth | 3-4% | China GDP long-term |
25
+ | Tax rate | 25% (15% for 高新) | CAS |
26
+
27
+ ### Key Differences from US DCF
28
+
29
+ | Aspect | US | China (A-share) |
30
+ |--------|-----|-----------------|
31
+ | Risk-free rate | UST 10Y | China 10Y CGB |
32
+ | ERP | 5-6% | 6-8% (higher for EM) |
33
+ | Terminal growth | 2-3% | 3-4% |
34
+ | Tax rate | 21% (federal) | 25% (15% for 高新) |
35
+ | Currency | USD | CNY |
36
+ | Revenue units | $M | 万元 / 亿元 |
37
+
38
+ ### Quick Workflow
39
+
40
+ 1. **Project FCF** — 5-year explicit period
41
+ 2. **Calculate WACC** — Use China parameters
42
+ 3. **Discount FCF** — PV of explicit period
43
+ 4. **Terminal value** — Gordon growth or exit multiple
44
+ 5. **Enterprise value** — Sum of PVs
45
+ 6. **Equity value** — EV - Net debt + Minority interest
46
+ 7. **Value per share** — Equity value / Shares
47
+
48
+ ### Common Pitfalls
49
+
50
+ | Pitfall | China-Specific Fix |
51
+ |---------|-------------------|
52
+ | Using US risk-free rate | Use China 10Y CGB |
53
+ | Wrong tax rate | Verify 高新 enterprise status |
54
+ | Revenue in USD | Convert to CNY |
55
+ | Ignoring 增值税 | Revenue should be net of VAT |
56
+ | Western terminal growth | Use 3-4% for China |
57
+
58
+ ### For Full Details
59
+
60
+ See: `china-dcf/SKILL.md`
61
+
62
+ ## Quality Checks
63
+
64
+ - [ ] All parameters China-appropriate
65
+ - [ ] FCF projections reasonable
66
+ - [ ] WACC components sourced
67
+ - [ ] Terminal growth < GDP growth
68
+ - [ ] Sensitivity analysis included