一键导入
three-statement
Three-statement financial analysis — P&L, Balance Sheet, Cash Flow linkages, common-size analysis, cross-statement validation, DuPont decomposition.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Three-statement financial analysis — P&L, Balance Sheet, Cash Flow linkages, common-size analysis, cross-statement validation, DuPont decomposition.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | three-statement |
| description | Three-statement financial analysis — P&L, Balance Sheet, Cash Flow linkages, common-size analysis, cross-statement validation, DuPont decomposition. |
| tags | ["finance","three-statement","pnl","balance-sheet","cash-flow","dupont","common-size","horizontal-analysis"] |
Use this skill when the user asks for:
Operating Cash Flow =
Net Income
+ Depreciation & Amortization
+ Stock-Based Compensation
+ Impairment Charges / Write-downs
+ Deferred Tax Expense
- Gains on Asset Sales
+ Losses on Asset Sales
- Increase in Accounts Receivable
+ Decrease in Accounts Receivable
- Increase in Inventory
+ Decrease in Inventory
+ Increase in Accounts Payable
- Decrease in Accounts Payable
+/- Other working capital changes
Working capital sign rule:
BS Cash (end) = BS Cash (begin) + CFO + CFI + CFF
Retained Earnings (end) = Retained Earnings (begin) + Net Income - Dividends
| Source | Line Item | Target | Line Item |
|---|---|---|---|
| IS | Depreciation Expense | BS | Accumulated depreciation increases |
| IS | Depreciation Expense | CFS | Added back in CFO |
| CFS | CapEx (Investing) | BS | PP&E increases |
| CFS | Debt Issuance | BS | Long-term debt increases |
| CFS | Share Buyback | BS | Treasury stock increases |
| CFS | Dividends Paid | BS | Retained earnings decreases |
Critical insight: The CFS is a reconciliation of YoY changes in every Balance Sheet line. If you take every non-cash BS account's change and classify it into Operating/Investing/Financing, the sum must equal the change in cash.
WITH revenue AS (
SELECT period, SUM(CASE WHEN line_item = 'Revenue' THEN amount END) AS rev
FROM s_income_statement GROUP BY period
)
SELECT f.period, f.line_item, f.amount,
ROUND(f.amount / NULLIF(r.rev, 0) * 100, 2) AS pct_of_revenue
FROM s_income_statement f
JOIN revenue r ON f.period = r.period
ORDER BY f.period, f.line_item;
WITH totals AS (
SELECT period, SUM(CASE WHEN line_item = 'Total Assets' THEN amount END) AS ta
FROM s_balance_sheet GROUP BY period
)
SELECT f.period, f.line_item, f.amount,
ROUND(f.amount / NULLIF(t.ta, 0) * 100, 2) AS pct_of_total_assets
FROM s_balance_sheet f
JOIN totals t ON f.period = t.period
ORDER BY f.period, f.line_item;
SELECT
line_item, period, amount,
LAG(amount) OVER (PARTITION BY line_item ORDER BY period) AS prior_amount,
amount - LAG(amount) OVER (PARTITION BY line_item ORDER BY period) AS abs_change,
CASE WHEN LAG(amount) OVER (PARTITION BY line_item ORDER BY period) = 0 THEN NULL
ELSE ROUND((amount - LAG(amount) OVER (PARTITION BY line_item ORDER BY period))
/ ABS(LAG(amount) OVER (PARTITION BY line_item ORDER BY period)) * 100, 2)
END AS pct_change
FROM s_income_statement
ORDER BY line_item, period;
CAGR = (Ending Value / Beginning Value)^(1/n) - 1
Run these on any uploaded financial data to verify consistency:
| # | Check | Tolerance |
|---|---|---|
| 1 | Total Assets = Total Liabilities + Total Equity | Exact |
| 2 | RE_end = RE_begin + Net Income - Dividends | Exact |
| 3 | BS Cash_end = BS Cash_begin + CFO + CFI + CFF | Exact |
| 4 | PP&E_end = PP&E_begin + CapEx - Depreciation - Disposals | Rounding |
| 5 | Debt_end = Debt_begin + New Issuances - Repayments | Rounding |
| 6 | NI positive but OCF negative -> earnings quality flag | Soft |
| 7 | Revenue growth > 30% YoY with no asset growth -> recognition flag | Soft |
| 8 | Depreciation > CapEx for 3+ periods -> under-investment flag | Soft |
-- Balance sheet balance check
SELECT period,
MAX(CASE WHEN line_item = 'Total Assets' THEN amount END) AS total_assets,
MAX(CASE WHEN line_item = 'Total Liabilities' THEN amount END)
+ MAX(CASE WHEN line_item = 'Total Equity' THEN amount END) AS liab_plus_equity,
MAX(CASE WHEN line_item = 'Total Assets' THEN amount END)
- (MAX(CASE WHEN line_item = 'Total Liabilities' THEN amount END)
+ MAX(CASE WHEN line_item = 'Total Equity' THEN amount END)) AS imbalance
FROM s_balance_sheet
GROUP BY period
HAVING ABS(imbalance) > 0.01;
ROE = (Net Income / Revenue) x (Revenue / Avg Total Assets) x (Avg Total Assets / Avg Equity)
= Net Margin x Asset Turnover x Equity Multiplier
ROE = (NI/EBT) x (EBT/EBIT) x (EBIT/Revenue) x (Revenue/Avg Assets) x (Avg Assets/Avg Equity)
= Tax Burden x Interest Burden x EBIT Margin x Asset Turnover x Equity Multiplier
| Factor | Improving Means | Risk If Too High |
|---|---|---|
| Tax Burden (NI/EBT) | Lower effective tax rate | Unsustainable tax strategies |
| Interest Burden (EBT/EBIT) | Lower interest costs | Already at limit, rate risk |
| EBIT Margin | Better cost control / pricing power | Margin compression |
| Asset Turnover | More revenue per $ of assets | Asset quality deterioration |
| Equity Multiplier | Leverage amplifying returns | Insolvency risk |
NULLIF(denominator, 0) — never produce infinityD2 diagram language — declarative diagrams for architecture, system design, network topology, database schemas, and layered infrastructure diagrams. Renders to SVG/PNG via d2 CLI. Supports sketch mode.
Excalidraw JSON format — hand-drawn whiteboard-style diagrams. Brainstorming, wireframes, informal sketches, and collaborative visual thinking. Output as .excalidraw JSON for desktop rendering.
Mermaid diagram syntax — sequence diagrams, flowcharts, ER diagrams, Gantt charts, state diagrams, class diagrams, and more. Renders to SVG/PNG via mmdc CLI. Native GitHub/markdown rendering support.
Financial consolidation — multi-entity rollup, intercompany elimination, currency translation, CTA, NCI/minority interest, segment reporting.
Expense and OpEx analysis — run-rate, cost per head, OpEx vs CapEx, vendor concentration, fixed vs variable decomposition, SG&A leverage.
FP&A financial planning — forecasting, scenario modeling, budgetary control.