本文へ移動
cccskills
無料GitHub で公開

china-clean-data-xls

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".

インストール方法を見る

含まれるファイル(1)

  • SKILL.md7.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

china-clean-data-xls

Purpose

Clean and normalize A股财务数据 — prepare raw financial data from 巨潮 filings for modeling and analysis.

Data Sources

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

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

Tier 1 — 同花顺 iFind(付费精确数据)/ AkShare MCP(Tier-2 免费备选)

get_financials(ticker, "income")     → Raw income statement
get_financials(ticker, "balance")    → Raw balance sheet
get_financials(ticker, "cashflow")   → Raw cash flow statement

Secondary Sources

  • 巨潮 — original filings (PDF/HTML)
  • 审计报告 — audited figures

Workflow

Step 1: Data Extraction

Extract from source documents:

DocumentKey DataFormat
资产负债表Assets, liabilities, equity千元
利润表Revenue, expenses, profit千元
现金流量表Operating, investing, financing CF千元
报表附注Detail breakdownsText/number
审计报告Audit opinion, adjustmentsText

Extraction checklist:

  • All periods extracted (typically 3-5 years)
  • Quarterly data if needed
  • Prior year comparatives
  • Notes and footnotes captured

Step 2: Normalize Units

Unit standardization:

IssueSolution
千元 vs 万元 vs 元Standardize to 万元
Different report datesAlign to same period-end
Segment dataMap to consistent segments
CurrencyAll CNY

Unit conversion:

From 千元: divide by 10 → 万元
From 元: divide by 10,000 → 万元
From 亿元: multiply by 10,000 → 万元

Step 3: Handle CAS-Specific Items

CAS vs IFRS mapping:

CAS Line ItemEquivalentNotes
营业收入RevenueNet of VAT
营业成本COGSIncludes VAT
税金及附加Tax & surcharges城建税, 教育费附加
销售费用SG&A (selling)
管理费用G&A
研发费用R&DSeparated from G&A in new CAS
财务费用Interest & finance costs
投资收益Investment incomeIncluding 联营/合营
公允价值变动Fair value change
信用减值损失Credit impairmentNew CAS 22
资产减值损失Asset impairment
资产处置收益Asset disposal
营业外收入Non-operating incomeIncluding 政府补助
营业外支出Non-operating expense
所得税费用Income tax
净利润Net income
归母净利润Net income to parentKey metric
扣非净利润Non-GAAP net income

Step 4: Fix Common Data Issues

Common issues and fixes:

IssueDetectionFix
Missing periodsGap in dataFlag for manual fill
Restated figuresFootnote "重述"Use most recent restatement
Segment reclassificationNote disclosureMap to new segments
One-time itemsLarge/unusual itemsFlag for normalization
Related party关联交易标注Identify and quantify
Accounting changePolicy change noteAdjust comparables
ErrorDoesn't sumInvestigate and correct

Step 5: Revenue Breakdown

Revenue by type:

TypeCAS LineNotes
主营业务收入Core revenueMain business
其他业务收入Other revenueAncillary
合计Total revenue

Revenue by geography (if disclosed):

RegionCurrent YearPrior YearGrowth
国内
海外
合计

Step 6: Expense Normalization

Normalize non-recurring items:

ItemTreatment
资产处置收益/损失Exclude from operations
政府补助 (non-recurring)Exclude or note separately
诉讼/罚款Exclude
减值 (one-time)Exclude or normalize
并购相关费用Exclude

Adjusted metrics:

调整后营业收入 = 营业收入 - 其他业务收入
调整后营业成本 = 营业成本 (core only)
调整毛利率 = 调整后毛利 / 调整后收入

Step 7: Balance Sheet Clean-up

Balance sheet mapping:

CAS ItemModeling Category
货币资金Cash & equivalents
交易性金融资产Short-term investments
应收票据Notes receivable
应收账款Accounts receivable
预付款项Prepayments
其他应收款Other receivables
存货Inventory
其他流动资产Other current assets
长期股权投资Long-term investments
固定资产PPE
在建工程Construction in progress
无形资产Intangibles
商誉Goodwill
长期待摊费用Deferred charges
其他非流动资产Other non-current
短期借款Short-term debt
应付票据Notes payable
应付账款Accounts payable
合同负债Contract liabilities
应付职工薪酬Accrued compensation
应交税费Taxes payable
其他应付款Other payables
一年内到期非流动负债Current portion LTD
长期借款Long-term debt
应付债券Bonds payable
预计负债Provisions
递延所得税负债DTL
其他非流动负债Other non-current
股本Share capital
资本公积Capital reserve
盈余公积Retained earnings (statutory)
未分配利润Retained earnings
归属于母公司股东权益Parent equity
少数股东权益Minority interest

Step 8: Quality Checks

Data quality checklist:

CheckPass Criteria
Balance sheet balancesAssets = Liabilities + Equity
Cash flow tiesCF = ending cash - beginning cash
Revenue matchesCross-check with segment data
Tax reasonableTax / pre-tax income ~25%
Depreciation consistentD&A / PPE stable
Interest matchesInterest / debt reasonable

China-Specific Data Issues

Common Issues

IssueExampleFix
单位不一致Some 千元, some 元Standardize
会计政策变更Revenue recognition changeAdjust comparables
报表格式变化New line itemsMap to old format
追溯调整Prior period restatementUse restated figures
外币报表Subsidiary in USDConvert to CNY

CAS-Specific Treatments

ItemCAS Treatment
研发费用Must be expensed (not capitalized, generally)
政府补助总额法 vs 净额法
股份支付Expensed over vesting period
保险合同CAS 25 (if applicable)

Quality Checks

Before passing data for modeling:

  • All periods complete
  • Units standardized
  • Balance sheet balances
  • Cash flow ties
  • CAS items correctly mapped
  • Non-recurring items flagged
  • Restatements applied
  • Quality issues documented

Data Source Mode Switch: Set env var IFIND_DATA_SOURCE_MODE to control data source preference.

  • ifind-only (strict): Use iFind only, error if unavailable
  • ifind-fallback (default): iFind preferred, fallback to AkShare
  • akshare-only: Skip iFind, use AkShare only
  • wind-only: Wind only, error if unavailable
  • wind-fallback: Wind first, fallback to iFind → AkShare

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Three-statement financial model for A-share stocks. Adapts the standard 3-statement-model methodology for Chinese accounting standards (CAS), Chinese GAAP differences, and AkShare-sourced financials. Use instead of the original 3-statement-model skill when building integrated IS/BS/CF models for Chinese listed companies.

日本語の概要は準備中です。原文の説明を表示しています。

jwangkun/claude-for-financial-services-cn8342026年9月14日 更新

Build accrual schedules for A-share companies tracking revenue recognition, expense accruals, and working capital timing. Adapted from the original accrual-schedule skill for CAS accounting and Chinese business practices. Triggers on "A股应计项目", "应计计提", "accrual schedule China", "应计账款分析", or "working capital accruals [company]".

日本語の概要は準備中です。原文の説明を表示しています。

jwangkun/claude-for-financial-services-cn8342026年9月14日 更新

Build accrual schedules for A-share fund administration. Tracks revenue recognition, expense accruals, and working capital timing for fund accounting. Adapted from the original accrual-schedule skill for fund accounting standards. Triggers on "基金应计项目", "应计计提基金", "accrual schedule fund", "NAV accruals", or "accruals [fund]".

日本語の概要は準備中です。原文の説明を表示しています。

jwangkun/claude-for-financial-services-cn8342026年9月14日 更新

Assess an A-share portfolio company's AI readiness for China-focused private equity investments. Evaluates data infrastructure, technology stack, talent, and AI adoption opportunities in the Chinese market context. Triggers on "A股公司AI评估", "AI readiness China", "AI assessment portfolio company", "AI转型评估", or "artificial intelligence readiness [company]".

日本語の概要は準備中です。原文の説明を表示しています。

jwangkun/claude-for-financial-services-cn8342026年9月14日 更新

Audit financial models and Excel workbooks for A-share analysis. Adapts the original audit-xls skill for Chinese financial modeling standards, CAS conventions, and A-share-specific checks. Triggers on "A股模型审计", "财务模型核查", "audit model China", "audit xlsx", "模型QC", or "check model [company]".

日本語の概要は準備中です。原文の説明を表示しています。

jwangkun/claude-for-financial-services-cn8342026年9月14日 更新

Forensic financial analysis for A-share fund holdings and portfolio companies. Adapts the original break-trace skill for fund administration context and Chinese market standards. Triggers on "基金持仓核查", "持仓异常", "forensic fund analysis China", "持仓质量分析", or "investigate [fund] holdings".

日本語の概要は準備中です。原文の説明を表示しています。

jwangkun/claude-for-financial-services-cn8342026年9月14日 更新

jwangkun のスキルをすべて見る

このスキルの問題を報告する