Skills

China Clean Data Xls

Clean and normalize A-share financial data for modeling.

Install

npx skills add jwangkun/claude-for-financial-services-cn --skill china-clean-data-xls -g -a claude-code -y
Category
Engineering
Updated
2mo ago
License
Apache-2.0
Context cost
Mediumabout 1,626 tokens
Runs scripts
No, instructions only

What it does

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

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:

Read the whole SKILL.md on GitHub

More in Engineering