financial-benford-test

A-share/HK-share financial-data Benford test tool: given a stock name or ticker, it automatically retrieves the past 12 quarters of balance sheet, income statement, and cash flow statement data, runs Benford's Law tests on all monetary line items, and produces an interactive HTML report with first-digit distribution comparisons, chi-square statistics, and deviation analysis. Intended for financial audit, investment due diligence, and risk identification.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "financial-benford-test" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-529502702ed4df2491f057c65ab719dbde7502f3dc9622a193b2296d702ab21f. Verify the upstream source and version against https://skillhub.cn/skills/user_058048a4/financial-benford-test before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A-share/HK-share financial-data Benford test tool: given a stock name or ticker, it automatically retrieves the past 12 quarters of balance sheet, income statement, and cash flow statement data, runs Benford's Law tests on all monetary line items, and produces an interactive HTML report with first-digit distribution comparisons, chi-square statistics, and deviation analysis. Intended for financial audit, investment due diligence, and risk identification.

0 Downloads

Introduction source: third_party · user_058048a4 · 1.0.0 Reference

SkillPi interpretation

Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: financial-benford-test
slug: financial-benford-test
displayName: A股/港股财务数据本福特检验
version: 1.0.0
description: >-
  A股/港股财务数据本福特检验工具。输入股票名称或代码,自动获取过去12个季度的完整
  资产负债表、利润表、现金流量表数据,对所有金额科目执行本福特定律(Benford's Law)检验,
  生成交互式HTML报告,包含首位数字分布对比图、chi-square统计量、偏差分析。
  当用户提到"本福特检验""财务造假检测""Benford分析""财务数据真实性""数字分布检验"
  "财务异常检测"等需求时触发此技能。适用于财务审计、投资尽调、风险识别等场景。
agent_created: true

财务数据本福特检验 (Benford's Law Test)

功能

输入股票名称或代码(支持A股和港股),自动获取过去12个季度的完整三表数据(资产负债表、利润表、现金流量表),对所有金额科目执行本福特定律检验,生成交互式HTML报告。

使用方法

@skill:financial-benford-test 贵州茅台
@skill:financial-benford-test 600519
@skill:financial-benford-test 腾讯控股
@skill:financial-benford-test 00700

输出

  • 交互式HTML报告,包含:
    • 首位数字频率分布对比图(实际 vs 本福特定律理论值)
    • 三表分别检验结果(资产负债表/利润表/现金流量表)
    • 总体合并检验结果
    • Chi-square统计量与p值
    • 偏差最大的科目列表
    • 检验结论与风险提示

依赖

  • akshare: 获取A股/港股财报数据
  • scipy: 统计检验
  • pandas/numpy: 数据处理

技术说明

  • 本福特定律:自然数据集中首位数字为d的概率为 log10(1+1/d)
  • 检验方法:Chi-square goodness-of-fit test
  • 样本来源:财报中所有非零正数金额科目
  • A股数据源:新浪财经(stock_financial_report_sina)
  • 港股数据源:东方财富(stock_financial_hk_report_em)

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 面向财务审计、投资尽调、风险识别等专业场景,解决用户核心任务痛点
  • 提供 A股/港股财务数据本福特检验,具有明确的高频刚需属性
Trigger Precision90/100

Highlights

  • 触发词覆盖多种变体,边界清晰,减少误触/漏触风险
Structure and Standards90/100

Highlights

  • 结构完整,包含功能说明、使用方法、输出内容、依赖说明和技术说明
  • 有清晰的代码示例,frontmatter 完整
Execution Reliability88/100

Highlights

  • 工具来源明确(akshare、scipy、pandas/numpy),参数正确
  • 技术说明详细,覆盖了主要的数据源和检验方法
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.