Install
openclaw skills install finance-analyzerThis 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...
openclaw skills install finance-analyzerThis 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 (净利率).
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.
Before running the analysis script, ensure required Python packages are available:
pip install pandas openpyxl
Execute the bundled analysis script to parse the financial data and calculate metrics:
python3 {SKILL_DIR}/scripts/analyze_financials.py <file_path>
Optional arguments:
--sheet <sheet_name> — Analyze a specific sheet only--output <output.json> — Save results to a JSON fileThe script automatically:
After running the script, interpret the JSON output for the user. The output contains:
parsed_data: Raw extracted values from each statement typemetrics: Calculated financial metrics with values, formulas, and component breakdownswarnings: Any data items that could not be found or calculatedWhen presenting results to the user:
references/financial_statements_guide.md for benchmark ranges and contextual analysisExample output format:
| 指标 | 数值 | 公式 |
|------|------|------|
| ROE(净资产收益率) | 18.5% | 净利润 / 股东权益 × 100% |
| ROA(总资产收益率) | 8.2% | 净利润 / 总资产 × 100% |
| 毛利率 | 35.6% | 毛利润 / 营业收入 × 100% |
| 净利率 | 12.3% | 净利润 / 营业收入 × 100% |
--sheetFor detailed information about financial statement structures, metric definitions, benchmark ranges, and interpretation guidance, refer to references/financial_statements_guide.md. This reference covers: