← Back to Skills Marketplace
zhengmengkaizmk

finance-analyzer

by zhengmengkaiZMK · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
304
Downloads
0
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install finance-analyzer
Description
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...
README (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
Usage Guidance
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).
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install finance-analyzer
  3. After installation, invoke the skill by name or use /finance-analyzer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
fix bug
v1.0.0
none
Metadata
Slug finance-analyzer
Version 1.0.1
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 2
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 304 downloads so far.

How do I install finance-analyzer?

Run "/install finance-analyzer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is finance-analyzer free?

Yes, finance-analyzer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does finance-analyzer support?

finance-analyzer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created finance-analyzer?

It is built and maintained by zhengmengkaiZMK (@zhengmengkaizmk); the current version is v1.0.1.

💬 Comments