Computes financial ratios, a DCF valuation, budget-vs-actual variances and a scenario forecast with a 13-week cash projection from JSON you supply, then flags what is off and how much to change to fix it. Use when asked to run ratios, value a company, explain material budget variances, or check a forecast or cash runway.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Financial Analyst?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/borghei-financial-analyst)
---
name: financial-analyst
description: >
Computes financial ratios, a DCF valuation, budget-vs-actual variances and a scenario forecast with a
13-week cash projection from JSON you supply, then flags what is off and how much to change to fix it.
Use when asked to run ratios, value a company, explain material budget variances, or check a forecast
or cash runway.
license: MIT + Commons Clause
metadata:
version: 1.1.0
author: borghei
category: finance
domain: financial-analysis
updated: 2026-12-03
tags: [financial-analysis, dcf, budgeting, forecasting, ratios]
---
# Financial Analyst
Four stdlib-only tools. Each reads your JSON, says what it parsed, reports missing inputs as missing
(never as zero), and prints findings that quote your numbers, name the threshold and give the amount or
value that fixes it. Thresholds marked "internal heuristic" are rules of thumb, not sourced benchmarks.
## Use when
- "Run financial ratios" on statements: `ratio_calculator.py`
- "Value this business" or a valuation range for a deal, raise or board pack: `dcf_valuation.py`
- Actuals vs budget, which variances are material and what to recover: `budget_variance_analyzer.py`
- A scenario forecast or 13-week cash runway: `forecast_builder.py`
Ask first only for what changes the result: which analysis, the decision it supports, the materiality
threshold, and the source and date of WACC or forecast assumptions. If the user wants a result now, run
it and state the assumptions.
## Commands
Run from the skill folder. Every tool takes a JSON path (or `-` for stdin, or `--input`), `--format text|json`
(`--json` is an alias) and `--help`. Bundled files such as `assets/sample_financial_data.json` are read by
section, so the same file works for all four tools.
```bash
python3 scripts/ratio_calculator.py assets/sample_ratios.json [--category liquidity]
python3 scripts/dcf_valuation.py assets/sample_dcf.json [--projection-years 5]
python3 scripts/budget_variance_analyzer.py assets/sample_budget.json [--threshold-pct 10 --threshold-amt 50000]
python3 scripts/forecast_builder.py assets/sample_forecast.json [--scenarios base,bull,bear]
```
### Exit codes
| Code | Meaning |
|------|---------|
| 0 | Ran; no findings (`PASS`) |
| 1 | Ran; findings to act on (`FIX n issues`) |
| 2 | Unusable input: unreadable, empty, wrong shape, or required assumptions missing (`BLOCKED: <reason>` on stderr) |
### Real example
```bash
python3 scripts/ratio_calculator.py assets/flawed_ratios.json
```
```
FINANCIAL RATIOS
Read: 20 of 20 ratios computed from assets/flawed_ratios.json
...
FINDINGS
1. [current_ratio] current_ratio = 0.75 (Current Assets / Current Liabilities)
Threshold: below 1 (internal rule of thumb, sector-dependent)
Fix: add $2.00M of current assets, or term out $2.00M of current liabilities, to reach 1.0
3. [debt_to_equity] debt_to_equity = 2.73 (Total Debt / Total Equity (needs positive equity))
Threshold: above 2 (internal rule of thumb, sector-dependent)
Fix: repay or convert $16.00M of debt to reach 2.0x
...
FIX 5 issues
```
## Input shapes
Full examples live in `assets/sample_*.json`; malformed and flawed twins sit beside them.
- **Ratios:** `income_statement` (revenue, cost_of_goods_sold, operating_income, net_income, ebitda,
interest_expense, optional `period_days`, default 365), `balance_sheet`, `cash_flow`, optional `market_data`.
A ratio with a missing input is "not computed". Checks: current/quick/cash ratio, margins, ROE/ROA,
debt-to-equity, interest coverage, DSCR, DSO, asset turnover, plus balance-sheet sanity (current assets
above total assets, cash above current assets, net income above revenue).
- **DCF:** `historical` (revenue list, net_debt, shares_outstanding) and `assumptions` (projection_years,
one growth rate and FCF margin per year, `wacc_inputs` with all seven fields, terminal_growth_rate and/or
terminal_ebitda_margin + exit_ev_ebitda_multiple). Nothing is defaulted; a missing one is exit 2.
Checks: WACC vs growth, growth vs risk-free rate, terminal-value share above 75%, the two methods
disagreeing by over 25%, FCF margin and growth far above your own history.
- **Budget:** `line_items` with name, type (revenue or expense), actual, budget, optional department,
category, prior_year. Rows that cannot be parsed are listed under SKIPPED. Every unfavourable
material line is a finding with the amount to recover.
- **Forecast:** historical_periods, assumptions (revenue_growth_rate, gross_margin, opex_pct_revenue,
history_period_months), optional unit x price drivers, scenarios with growth/margin adjustments,
forecast_periods, cash_flow_inputs. Checks: negative or thin cash, growth, margin and opex assumptions
against your history, driver revenue against last run-rate. Cash assumes no opening receivables unless
`receivables_due` is supplied; the output says which.
## Troubleshooting
| Symptom | Cause | Fix |
|---------|-------|-----|
| `BLOCKED: missing or invalid inputs` (DCF) | a WACC input or per-year list is absent | add the named fields; the message lists them |
| "not computed" for a ratio | an input is missing or not meaningful (negative EPS, zero equity) | supply the field; see MISSING INPUTS |
| `unknown scenario` | `--scenarios` name not in `scenarios` | use a name the input defines |
| Every line material | thresholds low for the data scale | raise `--threshold-pct` / `--threshold-amt` |
| `invalid JSON` | trailing commas, comments | `python3 -m json.tool file.json` |
## References
- `references/financial-ratios-guide.md`, `valuation-methodology.md`, `forecasting-best-practices.md`
- `references/analyst-playbook.md`: industry adaptations, success criteria, anti-patterns, integration points
- Templates: `assets/variance_report_template.md`, `dcf_analysis_template.md`, `forecast_report_template.md`
## Scope
Static JSON in, analysis out. No live market data, tax or consolidation treatment, Monte Carlo or
options pricing. Standard library only, no network.