인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
데이터 및 연구 · SKILL.md

financial-ratio-toolkit

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.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: financial-ratio-toolkit description: "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." license: MIT

Financial Ratio Toolkit (Stock Fundamental Analyzer)

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.

Quick Start

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 Data Format

Input is in JSON format with the following sections:

FieldTypeRequiredDescription
company_namestringNoCompany name
report_periodstringNoReporting period (e.g., "2025Q4")
currencystringNoCurrency unit (default: "CNY")
balance_sheetobjectYesBalance sheet data
income_statementobjectYesIncome statement data
cash_flow_statementobjectNoCash flow statement data
market_dataobjectNoMarket data (stock price, shares, etc.)
prior_yearobjectNoPrior year comparative data (for growth rate calculations)

Balance Sheet (balance_sheet)

FieldDescription
total_assetsTotal assets
total_liabilitiesTotal liabilities
shareholders_equityShareholders' equity (net assets)
current_assetsCurrent assets
current_liabilitiesCurrent liabilities
inventoryInventory
accounts_receivableAccounts receivable
cash_and_equivalentsCash and cash equivalents

Income Statement (income_statement)

FieldDescription
revenueRevenue
cost_of_goods_soldCost of goods sold
operating_incomeOperating income
net_incomeNet income
interest_expenseInterest expense
depreciation_amortizationDepreciation and amortization
income_taxIncome tax expense

Cash Flow Statement (cash_flow_statement)

FieldDescription
operating_cash_flowNet cash from operating activities
capital_expenditureCapital expenditure

Market Data (market_data)

FieldDescription
shares_outstandingTotal shares outstanding
stock_priceCurrent stock price

Prior Year Data (prior_year)

FieldDescription
revenuePrior year revenue
net_incomePrior year net income

Analysis Metrics (20+ Items)

Profitability (6 items)

  • ROE (Return on Equity)
  • ROA (Return on Assets)
  • Gross Profit Margin
  • Net Profit Margin
  • Operating Profit Margin
  • EBITDA Margin

Solvency (4 items)

  • Debt-to-Asset Ratio
  • Equity Multiplier
  • Interest Coverage Ratio (EBIT / Interest Expense)
  • Debt-to-Equity Ratio (Liabilities / Equity)

Liquidity (3 items)

  • Current Ratio
  • Quick Ratio
  • Cash Ratio

Operational Efficiency (6 items)

  • Asset Turnover
  • Inventory Turnover
  • Days Inventory Outstanding
  • Receivables Turnover
  • Days Sales Outstanding
  • Working Capital Turnover

Per-Share Metrics (3 items)

  • Earnings Per Share (EPS)
  • Book Value Per Share (BVPS)
  • Price-to-Earnings Ratio (P/E)

Cash Flow Metrics (3 items)

  • Operating Cash Flow Ratio
  • Free Cash Flow
  • Cash Flow to Net Income Ratio

Growth (2 items)

  • Revenue Growth Rate (YoY)
  • Net Income Growth Rate (YoY)

DuPont Analysis

Decomposes ROE into three factors:

ROE = Net Profit Margin x Asset Turnover x Equity Multiplier

Output Example

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.

Notes

  • All metrics are calculated from user-provided static financial data; no live market data is fetched
  • Reference ranges vary significantly across industries; the assessments in the report are for reference only
  • It is recommended to consider industry characteristics and company-specific context for a comprehensive evaluation
  • The script uses only the Python standard library with no additional dependencies required
저장한 Skills