← 返回 Skills 市场
zhengmengkaizmk

finance-analyzer

作者 zhengmengkaiZMK · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
304
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install finance-analyzer
功能描述
This skill should be used when a user needs to analyze financial statements (Income Statement, Balance Sheet, Cash Flow Statement) from Excel or CSV files. I...
使用说明 (SKILL.md)

Finance Analyzer

Overview

This skill enables reading and analyzing financial statements from Excel (.xlsx/.xls) and CSV files. It understands the structure of Income Statements (损益表), Balance Sheets (资产负债表), and Cash Flow Statements (现金流量表), extracts key line items, and calculates core financial metrics including ROE, ROA, gross margin (毛利率), and net margin (净利率).

Workflow

Step 1: Identify the Input File

Confirm the user has provided or referenced an Excel/CSV file containing financial statements. Supported formats:

  • .xlsx / .xls (Excel workbook, may contain multiple sheets)
  • .csv (single sheet)

If the user has not provided a file, ask them to provide the financial statement file.

Step 2: Install Dependencies

Before running the analysis script, ensure required Python packages are available:

pip install pandas openpyxl

Step 3: Run the Analysis Script

Execute the bundled analysis script to parse the financial data and calculate metrics:

python3 {SKILL_DIR}/scripts/analyze_financials.py \x3Cfile_path>

Optional arguments:

  • --sheet \x3Csheet_name> — Analyze a specific sheet only
  • --output \x3Coutput.json> — Save results to a JSON file

The script automatically:

  1. Detects sheet types (Income Statement, Balance Sheet, Cash Flow) by sheet name keywords
  2. Falls back to content-based detection if sheet names are ambiguous
  3. Extracts key financial line items using Chinese and English keyword matching
  4. Calculates all available metrics from the extracted data

Step 4: Interpret and Present Results

After running the script, interpret the JSON output for the user. The output contains:

  • parsed_data: Raw extracted values from each statement type
  • metrics: Calculated financial metrics with values, formulas, and component breakdowns
  • warnings: Any data items that could not be found or calculated

When presenting results to the user:

  1. Display the core metrics the user requested (typically ROE, ROA, gross margin, net margin) in a clear table format
  2. Show the calculation formula and components so the user can verify the numbers
  3. Flag any warnings — explain which metrics could not be calculated and why (e.g., missing data)
  4. Provide professional interpretation — reference references/financial_statements_guide.md for benchmark ranges and contextual analysis

Example output format:

| 指标 | 数值 | 公式 |
|------|------|------|
| ROE(净资产收益率) | 18.5% | 净利润 / 股东权益 × 100% |
| ROA(总资产收益率) | 8.2% | 净利润 / 总资产 × 100% |
| 毛利率 | 35.6% | 毛利润 / 营业收入 × 100% |
| 净利率 | 12.3% | 净利润 / 营业收入 × 100% |

Step 5: Handle Edge Cases

  • Unrecognized sheet names: If the script cannot detect sheet types, prompt the user to specify which sheet contains which statement using --sheet
  • Missing data: If key line items cannot be found, read the file directly to inspect the format, then adjust the approach or guide the user
  • Multiple periods: The script extracts the most recent period's data by default. If the user needs trend analysis across periods, read the file manually and perform the comparison
  • Unit differences: Check if amounts are in 元, 万元, or 百万元, and normalize if needed before interpretation

Reference Material

For detailed information about financial statement structures, metric definitions, benchmark ranges, and interpretation guidance, refer to references/financial_statements_guide.md. This reference covers:

  • Structure of all three financial statements (Chinese and English)
  • Core metric formulas and industry benchmarks
  • DuPont analysis framework
  • Common Excel format patterns and parsing considerations
安全使用建议
This skill appears to do what it says: parse provided Excel/CSV files and compute financial metrics. Before installing/running: (1) Review and run the script in a controlled environment (virtualenv or sandbox) and avoid installing packages system-wide. (2) Only feed data files you intend to analyze — the script will read the files you provide and may write output JSON if --output is used. (3) The script contains no network calls or credential usage in the included code, but installing packages via pip executes code from PyPI during install; if you are cautious, install dependencies in an isolated environment. (4) If you need higher assurance, open the script locally and inspect it (no obfuscated code or external endpoints were found in the provided file).
功能分析
Type: OpenClaw Skill Name: finance-analyzer Version: 1.0.1 The finance-analyzer skill bundle is a legitimate tool designed to parse financial statements from Excel and CSV files. The core logic in `scripts/analyze_financials.py` uses standard data processing libraries (pandas, openpyxl) to extract metrics like ROE and ROA based on keyword matching, with no evidence of network activity, data exfiltration, or malicious execution. The instructions in `SKILL.md` are well-defined and align strictly with the stated purpose of financial analysis.
能力评估
Purpose & Capability
The name/description match the actual artifacts: SKILL.md describes parsing Excel/CSV financial statements and the repository includes a Python script that implements that functionality. The requested Python packages (pandas, openpyxl) are appropriate and proportionate for the task. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
Runtime instructions are limited to: obtain the user's Excel/CSV file, install pandas/openpyxl, run the bundled script, and interpret the JSON output. The script reads only the provided file (and optionally a specified sheet) and computes metrics. The SKILL.md does not instruct reading arbitrary system files, environment variables, or sending data to external endpoints.
Install Mechanism
There is no formal install spec (instruction-only + bundled script). SKILL.md asks the user to run `pip install pandas openpyxl`, which is reasonable for this Python tool. Note: pip installs execute code from PyPI during installation; the listed packages are widely used and expected, but installing any packages should follow your normal safety practices (use a virtualenv/container if concerned).
Credentials
The skill declares no required environment variables, credentials, or config paths. The script does not reference environment variables or other secrets in the provided code. This is proportionate to the described task.
Persistence & Privilege
The skill does not request persistent presence (always:false), does not modify other skills or system-wide settings, and does not store credentials. Autonomous invocation is allowed by default on the platform, which is normal; combined with the other findings this does not increase concern.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install finance-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /finance-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
fix bug
v1.0.0
none
元数据
Slug finance-analyzer
版本 1.0.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 2
常见问题

finance-analyzer 是什么?

This skill should be used when a user needs to analyze financial statements (Income Statement, Balance Sheet, Cash Flow Statement) from Excel or CSV files. I... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 304 次。

如何安装 finance-analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install finance-analyzer」即可一键安装,无需额外配置。

finance-analyzer 是免费的吗?

是的,finance-analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

finance-analyzer 支持哪些平台?

finance-analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 finance-analyzer?

由 zhengmengkaiZMK(@zhengmengkaizmk)开发并维护,当前版本 v1.0.1。

💬 留言讨论