技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
financial-ratio-toolkit【数据与研究】Analyzes company fundamentals by computing 20+ financial ratios (profitability, solvency, liquidity, efficiency, and growth) and DuPont Analysis from user-provided financial statements. Triggered by requests for financial ratio calculation, DuPont/ROE analysis, or phrases like "analyze these financials" or "calculate solvency ratios.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Performs comprehensive fundamental analysis on public company financial statements, covering 20+ core financial metrics and DuPont Analysis. Simply provide key data from the balance sheet, income statement, and cash flow statement to get a structured analysis report.
Save the financial data as a JSON file, then run the analysis script:
python3 scripts/analyze.py --input financial_data.json
Output in JSON format (for programmatic consumption):
python3 scripts/analyze.py --input financial_data.json --json
Read data from standard input:
cat financial_data.json | python3 scripts/analyze.py --stdin
Input is in JSON format with the following sections:
| Field | Type | Required | Description |
|---|---|---|---|
company_name | string | No | Company name |
report_period | string | No | Reporting period (e.g., "2025Q4") |
currency | string | No | Currency unit (default: "CNY") |
balance_sheet | object | Yes | Balance sheet data |
income_statement | object | Yes | Income statement data |
cash_flow_statement | object | No | Cash flow statement data |
market_data | object | No | Market data (stock price, shares, etc.) |
prior_year | object | No | Prior year comparative data (for growth rate calculations) |
| Field | Description |
|---|---|
total_assets | Total assets |
total_liabilities | Total liabilities |
shareholders_equity | Shareholders' equity (net assets) |
current_assets | Current assets |
current_liabilities | Current liabilities |
inventory | Inventory |
accounts_receivable | Accounts receivable |
cash_and_equivalents | Cash and cash equivalents |
| Field | Description |
|---|---|
revenue | Revenue |
cost_of_goods_sold | Cost of goods sold |
operating_income | Operating income |
net_income | Net income |
interest_expense | Interest expense |
depreciation_amortization | Depreciation and amortization |
income_tax | Income tax expense |
| Field | Description |
|---|---|
operating_cash_flow | Net cash from operating activities |
capital_expenditure | Capital expenditure |
| Field | Description |
|---|---|
shares_outstanding | Total shares outstanding |
stock_price | Current stock price |
| Field | Description |
|---|---|
revenue | Prior year revenue |
net_income | Prior year net income |
Decomposes ROE into three factors:
ROE = Net Profit Margin x Asset Turnover x Equity Multiplier
The script produces a structured analysis report containing values, reference ranges, and brief assessments for each metric. See scripts/analyze.py --help for detailed usage.