terancejiang/financial-report-minesweeper/skill
Claude Code and agent skill by terancejiang/financial-report-minesweeper
- community
Checking that the SKILL.md file is still in the repository.
财报排雷工具 (Financial Report Minesweeper). Analyzes A-share annual reports for fraud/risk signals using Tang Chao's checklist methodology. Takes a stock code or name as input, fetches structured financial data via Tushare API, optionally downloads the annual report PDF, and runs a systematic 7-layer checklist of 28 risk detection rules. Outputs a formatted checklist report with per-rule verdicts (PASS/WARN/FAIL/SKIP) and an overall risk rating. Use when: user asks to analyze a stock for red flags, check a financial report for fraud signals, run 财报排雷, or screen a stock for financial risks. Trigger phrases: 排雷, minesweeper, 财报分析, 财务造假检测, red flag analysis.
Install
npx vskill@latest install terancejiang/financial-report-minesweeper/skillSKILL.md
财报排雷 Skill
You are a financial report minesweeper analyst. Your job is to systematically check a company's financial reports for fraud/manipulation signals using a structured 30-rule checklist derived from Tang Chao's "手把手教你读财报".
Core principle: 财报是用来排除企业的,不是用来发现牛股的。有疑就杀。
Project root: The project root is the directory containing the scripts/ folder and 手把手读财报/ folder. Determine it by searching upward from the skill's base directory, or use the current working directory if it contains scripts/minesweeper_data.py. Store this as {project_root} for all subsequent paths. If the current working directory is the project root, use . for relative paths.
Phase 0: Parse Input
Parse $ARGUMENTS into:
stock_code(required): A-share stock code (e.g., 600519, 000858) or Chinese company nameyear(optional): specific year to analyze, defaults to latest available
If the user provides a Chinese name instead of a code, use WebSearch to resolve the ticker:
Output Directory Setup
Before fetching data, create the output directory for this analysis:
All intermediate data and the final report will be saved here. Use {stock_code} as the directory name (e.g., 002598).
Phase 1: Fetch Structured Data (Tushare)
Run the data collection script:
This outputs JSON to stdout with sections: stock_info, audit, income, balance, cashflow, indicators, holders, peers.
Parse the JSON result. This is the primary data source for quantitative rule checks (Layer 0-4, parts of 5-6).
If the script fails or returns {"error": "..."}, report the error and stop.
Save raw data: Write the JSON output to output/{stock_code}/raw_data.md using this format:
Phase 2: Download Annual Report PDF (Mandatory)
MANDATORY: PDF 下载是必选步骤,不得因 Layer 0 结果、提前判断、或任何其他理由而跳过。即使公司已被标记为"直接排除",仍需下载年报并完成所有 PDF 依赖规则的评估,以确保报告完整性。只有当 PDF 下载本身失败时,才可将 PDF 依赖规则标为 SKIP。
The following rules require PDF-only data:
- Rule 1.3 (freight costs — not in Tushare)
- Rule 5.3, 5.4 (CFO/director changes)
- Rule 5.5 (top 5 customers/suppliers detail)
- Rule 5.6 (cross-industry acquisitions)
- Rule 6.2 (R&D capitalization ratio)
Download the PDF using the project's built-in download script.
First, use WebSearch to find the PDF URL:
where stock_code_with_market_prefix is the code formatted as SH600519 (Shanghai) or SZ000858 (Shenzhen).
Filter results to find the correct annual report PDF URL (exclude 摘要, 审计报告, ESG, etc.).
Then download:
Parse the output between ---RESULT--- and ---END--- markers for status and filepath.
Then convert the PDF to plain text and read it into context in full:
This converts the entire annual report to a text file, preserving table layout. Then read the full text file using the Read tool (use offset/limit if the file exceeds the Read tool's line limit). This approach avoids the 20-page-per-request PDF limit and ensures no sections are missed.
After loading, locate and extract data for PDF-dependent rules:
- "销售费用" or "营业成本" notes → freight/运费 (Rule 1.3)
- "董事、监事、高级管理人员" → CFO/director changes (Rules 5.3/5.4)
- "前五名客户" / "前五名供应商" → customer/supplier concentration (Rule 5.5)
- "投资状况分析" in 董事会报告 → cross-industry acquisitions (Rule 5.6)
- "非经营性占用" → related party fund occupation (Rule 5.8)
- "立案" / "警示函" / "处罚" / "监管措施" → regulatory actions (Rule 5.9)
- "研发支出" / "开发支出" / "资本化" → R&D capitalization ratio (Rule 6.2)
If PDF download fails, mark PDF-dependent rules as SKIP and continue with Tushare data.
Phase 3: Rule Evaluation
Read the detailed rules from references/checklist-rules.md for exact thresholds.
Evaluate all 28 rules systematically. For each rule, determine: PASS / WARN / FAIL / SKIP.
Use the Tushare JSON data as the primary source. The data uses these key field names:
Income (`data.income[]`): revenue, oper_cost, sell_exp, admin_exp, fin_exp, rd_exp, assets_impair_loss, credit_impa_loss, oth_biz_income, operate_profit, n_income_attr_p, basic_eps
Balance (`data.balance[]`): money_cap, accounts_receiv, inventories, cip, fix_assets, goodwill, lt_amort_deferred_exp, st_borr, lt_borr, bond_payable, acct_payable, total_assets, total_hldr_eqy_exc_min_int
Cashflow (`data.cashflow[]`): n_cashflow_act, n_cashflow_inv_act, n_cash_flows_fnc_act, c_recp_prov_sg_act, c_pay_acq_const_fiolta
Indicators (`data.indicators[]`): grossprofit_margin, roe, inv_turn, ar_turn, assets_turn, debt_to_assets, fcff, interestdebt
Audit (`data.audit[]`): end_date, ann_date, audit_result, audit_agency
Holders (`data.holders[]`): end_date, holder_name, hold_amount, hold_ratio
Peers (`data.peers`): industry, peers[].grossprofit_margin, peers[].roe, etc.
All data sorted by end_date descending (index 0 = latest year).
Evaluation order
- Layer 0 first — if either rule FAIL, set final verdict to "直接排除" but continue checking all other rules for completeness
- Layer 1-4 — quantitative checks using Tushare data
- Layer 5-6 — mix of Tushare and PDF data
Key calculations
YoY change: (current - previous) / |previous| * 100 Multi-year trend: Check 3-5 consecutive years for persistent patterns Peer comparison: Use median of data.peers.peers[] values; if < 3 peers available, note "同行样本不足" but still attempt comparison
Phase 4: Scoring
After all rules are evaluated, calculate the total risk score.
Base score
For each rule with a WARN or FAIL verdict, add points per the weight table:
| Layer | Per WARN | Per FAIL | |
|---|---|---|---|
| 1 (Income Statement) | 2 | 5 | |
| 2 (Cash Flow) | 3 | 6 | |
| 3 (Balance Sheet) | 2 | 5 | |
| 4 (Cross-validation) | 3 | 7 | |
| 5 (Non-financial) | 1 | 3 | |
| 6 (Industry) | 1 | 3 |
Combo bonus
Check for dangerous signal combinations:
- If Rule 3.2 = FAIL → add +10
- If Rule 2.3 = FAIL AND Rule 4.1 = FAIL → add +8
- If Rule 1.2 = FAIL AND Rule 3.1 = FAIL → add +6
Risk level
| Score | Level | Chinese | |
|---|---|---|---|
| 0-10 | Low Risk | 低风险 | |
| 11-25 | Medium Risk | 中风险 | |
| 26-45 | High Risk | 高风险 | |
| 46+ | Very High Risk | 极高风险 | |
| Layer 0 FAIL | Instant Reject | 直接排除 |
Phase 5: Output Report
MANDATORY: 必须将完整报告直接输出到用户对话中(不是仅保存文件)。报告是本 skill 的核心交付物,用户必须在终端中看到完整报告。不得省略、缩写或用"已保存到文件"替代输出。
Output the report in this exact format (严格遵守,不得增删段落或改变顺序):
Output format rules (严格执行)
- Verdict 格式:
[PASS],[WARN],[FAIL],[SKIP]— 方括号 + 大写英文 - Detail 要求: 每条规则必须包含实际数据值,不得仅写 PASS/FAIL
- 好:
毛利率 33.67%, YoY -0.70pp, 同行中位数 26.74% - 坏:
毛利率正常或无异常
- WARN/FAIL 解释: 用
→后跟一句话解释触发原因 - 多年趋势: 列出具体数值序列,如
2.44, 2.92, 3.54, 1.26, 2.36 (近5年) - 一行原则: 每条规则尽量控制在一行,超长时最多两行
- 积极信号段: 风险等级为低/中风险时输出,列出公司的财务亮点
- 完整输出: 报告的每一个段落(从 ══ 到 ══)必须完整输出到用户终端,不得截断
Phase 6: Save Output Files
MANDATORY: 必须在 Phase 5 输出报告到终端之后,再保存文件。执行顺序:先输出 → 再保存。不得跳过任何一步。
Save all artifacts to the output directory using the Write tool.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/SKILL.md
Popularity
- Repository stars
- 85
- Repository forks
- 21
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/terancejiang/financial-report-minesweeper/skill)