/analyst-kit:creating-financial-modelsfrom analyst-kit
Builds DCF valuations, M&A merger models, sensitivity analyses (tornado charts, data tables), and scenario planning in Python (numpy + pandas).
Ships in analyst-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
PLAN MODE EXCEPTION — ALWAYS RUN: this block only reads state and writes to ~/.analyst-kit/.
_AK="$(cat ~/.analyst-kit/core-path 2>/dev/null)"
if [ ! -x "$_AK/bin/analyst-kit-preamble" ]; then
for d in ~/.claude/skills/analyst-kit-core .claude/skills/analyst-kit-core ~/.codex/skills/analyst-kit-core .codex/skills/analyst-kit-core; do
[ -x "$d/bin/analyst-kit-preamble" ] && _AK="$d" && break
done
[ -x "$_AK/bin/analyst-kit-preamble" ] || _AK="$(find ~/.claude/plugins -maxdepth 6 -type d -name analyst-kit-core 2>/dev/null | head -1)"
[ -n "$_AK" ] && { mkdir -p ~/.analyst-kit; printf '%s' "$_AK" > ~/.analyst-kit/core-path; } || true
fi
[ -x "$_AK/bin/analyst-kit-preamble" ] && "$_AK/bin/analyst-kit-preamble" --skill creating-financial-models 2>/dev/null || echo "AK_CORE: not found (continue without runtime)"
Read the echoed state and act. Skip ALL bullets below if DEDUP: yes or AK_CORE: not found:
DISABLED: yes → this skill is turned off because a required API key isn't
configured. Do not run it. Tell the user it's off, name the missing key (see
MISSING_KEYS), and offer to enable it — either they give you the key now (store it
with "$_AK/bin/analyst-kit-setup" set-key <KEY> <value>, which re-enables the skill) or they
say "set up analyst-kit" for full setup. Then stop; do not attempt the skill's work.ONBOARDED: no → orient the user once, then run
"$_AK/bin/analyst-kit-setup" finish (this covers the telemetry notice, so skip the
TEL_PROMPTED bullet this turn):
~/.analyst-kit); offer to move it with
"$_AK/bin/analyst-kit-setup" home <dir>.git config user.email, gh api user, …) and pass it with --fallback in step 5."$_AK/references/intro.md" and follow it. If no, continue — you'll
ask for a key only when a skill needs one."$_AK/bin/analyst-kit-setup" finish --name "<name>" --email "<email>" (add
--fallback for a discovered email; run plain finish only if no email could be
found at all). If it echoes INVALID_EMAIL, re-ask and run it again."$_AK/references/intro.md" and follow it end
to end: data home, telemetry, every skill's keys, and enabling/disabling each.TEL_PROMPTED: no (returning user) → give the telemetry notice once, then run
"$_AK/bin/analyst-kit-setup" ack-telemetry."$_AK/bin/analyst-kit-config" set telemetry anonymous (drops the device id) as a middle
ground. If they still want out, run "$_AK/bin/analyst-kit-config" set telemetry off
immediately and without further argument..env
and the current directory's .env into the shell so scripts can read stored keys:
set -a; [ -f "$AK_HOME/.env" ] && . "$AK_HOME/.env"; [ -f "./.env" ] && . "./.env"; set +a
(where $AK_HOME is the path printed on the AK_HOME: line above). Full lookup order —
always check these before concluding a key is missing or asking the user:
$AK_HOME/.env (keys stored by analyst-kit-setup).env in the current working directory
Never ask the user for a key that is already present in any of these locations.MISSING_KEYS not none → for each listed key with KEY_PROMPTED_<KEY>: no: explain
where to get it, ask for the value, and run "$_AK/bin/analyst-kit-setup" set-key <KEY> <value>.
If declined, run "$_AK/bin/analyst-kit-setup" skip-key <KEY> (this disables the skills that
need it) and continue — never block the skill.UPGRADE: UPGRADE_AVAILABLE <old> <new> → say "Analyst Kit skills is available
(you have ) — update?". If yes: Read "$_AK/references/upgrade.md" and
follow it. If declined: run "$_AK/bin/analyst-kit-update-check" --snooze <new>.LEARNINGS entries shown → these are past mistakes/preferences for this user;
respect them and do not repeat logged pitfalls.Then proceed with the skill. At the very end, run the Completion block at the bottom of this file.
A financial modeling toolkit for investment analysis, valuation, and risk assessment using industry-standard methodologies. Four capabilities are implemented by the bundled scripts (DCF, M&A accretion/dilution, sensitivity, scenario planning); anything beyond them (charts, Excel workbooks, Monte Carlo, LBO) is something you assemble separately with other tools — never present it as this skill's script output.
scripts/dcf_model.pyscripts/merger_model.pyscripts/sensitivity_analysis.pyscripts/sensitivity_analysis.pybase_values so each scenario starts from the base case and the model
is restored afterwardsAll outputs are Python objects: the DCF model returns dictionaries and a
formatted text summary (generate_summary()); the sensitivity tools return
pandas DataFrames. To deliver charts, Excel files, or formatted reports,
combine these outputs with other skills/tools (e.g. charting or reporting) —
the scripts themselves do not produce them.
"Build a DCF model for this technology company using the attached financials"
"Is this acquisition accretive or dilutive — Acme buying Beta at a 25% premium, 70/30 stock/cash?"
"What pre-tax synergies does this deal need to break even on EPS?"
"Create sensitivity analysis showing impact of growth rate and WACC on valuation"
"What terminal growth rate is needed to justify the current share price?"
"Develop three scenarios for this expansion project with probability weights"
scripts/dcf_model.py: Complete DCF valuation engine (DCFModel class)scripts/merger_model.py: M&A accretion/dilution engine (MergerModel
class) — pure standard library, no third-party dependenciesscripts/sensitivity_analysis.py: Sensitivity testing framework
(SensitivityAnalyzer class)dcf_model.py requires numpy; sensitivity_analysis.py also requires
pandas (pip install numpy pandas or run with uv run --with numpy,pandas). merger_model.py needs neither. Import the classes into a
small driver script, or run them directly to see the built-in examples.
Behavior is pinned by tests/ (python3 -m pytest tests/ from the skill
root) — including a cross-check of the merger model against a known-good,
hand-verified deal scenario.
Audit before you deliver. If this run produced a research deliverable carrying
quantitative or factual claims — a deep dive, thematic/value-chain map, technical
call, company wiki, or financial model — you MUST verify it before presenting it.
If a research-auditor subagent is available (the analyst-kit plugin ships one),
invoke it via the Task tool, handing it the draft and the data artifacts you used;
on a runtime without subagents, run the same checks yourself. Resolve every
CRITICAL finding and disclose any UNVERIFIED ones; never deliver on a FAIL
verdict without fixing it first. Skip this only for pure data-fetch/utility runs
with no analytical claims.
PLAN MODE EXCEPTION — ALWAYS RUN: writes only to ~/.analyst-kit/. Replace OUTCOME with one
of DONE | DONE_WITH_CONCERNS | ERROR | ABORT | NEEDS_CONTEXT.
_AK="$(cat ~/.analyst-kit/core-path 2>/dev/null)"
[ -x "$_AK/bin/analyst-kit-log" ] && "$_AK/bin/analyst-kit-log" end --skill creating-financial-models --outcome OUTCOME 2>/dev/null || true
If this session surfaced a durable pattern, pitfall, or user preference that would save 5+ minutes next time (not obvious, not a transient error), also log it:
"$_AK/bin/analyst-kit-learn" add '{"skill":"creating-financial-models","type":"pitfall|pattern|preference","ticker":"<optional>","insight":"<one line>","confidence":7,"ts":"<iso8601 utc>"}'
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohitjandwani/analyst-kit --plugin analyst-kit18 skills in this plugin
/13f-analysisFetch and read U.S. institutional 13F-HR filings (quarterly long-equity holdings) for any fund manager from SEC EDGAR — free, no API key. Resolve a fund to its filing entity (CIK), pull the latest or a historical quarter's holdings as a ranked CSV with values normalized to whole dollars and positions rolled up by issuer, and interpret them without the common traps. Triggers: "get the 13F for X", "latest 13F holdings of Y", "what does <fund> own", "pull <manager>'s 13F", "find the CIK for <fund>", "who filed this 13F", "13F analysis of Z".
/analyst-kit-coreShared runtime for Analyst Kit skills: the ~/.analyst-kit data home, config store, local usage analytics with opt-in telemetry, daily update checks, and a per-user learnings log every skill reads and appends to. Loaded automatically as a dependency of every other skill. Triggers: "set up analyst-kit", "help me set up Analyst Kit", "configure all skills", "analyst-kit config", "enable/disable a skill", "check for analyst-kit updates", "upgrade analyst-kit skills", "show my analyst-kit learnings", "turn analyst-kit telemetry on/off", "show my analyst-kit usage".
/analyst-playbookHow to structure any financial analysis before fetching a single number: decide the deliverable (report/deck vs financial-model update), align fiscal calendars and data frequencies, normalize units, route each data series to the right skill, and apply sector-specific conventions (reporting calendars, KPIs, seasonality, valuation norms) from per-sector playbooks loaded on demand. Triggers: "how should I structure this analysis", "compare X and Y", "analyze <company> properly", "what matters for this sector", "which metrics should I use for X", "build an analysis plan for Y".
/analyzing-financial-statementsCalculate and interpret key financial ratios from financial statement data (income statement, balance sheet, cash flow, market data) for investment analysis — profitability (ROE, ROA, margins), liquidity (current/quick/cash), leverage (debt-to-equity, interest coverage), efficiency (asset/inventory/ receivables turnover), valuation (P/E, P/B, P/S, EV/EBITDA, PEG), and per-share metrics, with industry-standard interpretation and benchmarking. Pure-stdlib Python, fully offline — no API key. Triggers: "calculate financial ratios for X", "what's the P/E / ROE / debt-to-equity of Y", "analyze the liquidity / leverage / profitability of Z", "interpret these financial statements", "ratio analysis on this balance sheet", "is this company's margin / coverage healthy", "benchmark <company>'s ratios".
/chartingBuild financially-correct charts from company fundamentals — pick the right chart for the question, normalise units (one unit per axis, $B/$M scaling, %-vs-$ dual axes, rebasing for comparisons), and apply finance conventions (green beat / red miss, accounting negatives, dashed estimates, dark totals). A thin Python+Polars layer normalises already-available data into a chart contract; a TypeScript layer emits Highcharts options and renders a self-contained HTML page. Covers revenue trends & YoY, segment mix, margins, dividends, earnings surprise, estimate-vs-reported, revenue→net-income waterfalls, and price (candlestick/Stock). Use whenever the user wants to chart, plot, graph, or visualize financial data. Triggers: "chart revenue over time", "plot YoY growth with event flags", "revenue breakdown by segment", "dividend history and yield", "earnings surprise chart", "estimate vs reported", "waterfall from revenue to net income", "margins over time", "candlestick / price chart", "compare two companies' revenue", "show visual breakdown of income statement"
/company-universe-managerOwn a watchlist ("universe") of companies and everything time-based about them. Maintain the roster (add / update / soft-delete / reactivate / list with metadata, competitors, rationale) and track each company's key dates — earnings, investor days, ex-dividend, AGMs, conferences, guidance, lockups. Run a daily monitor that re-fetches dates and detects what changed (earnings moved, newly announced, confirmed-from-estimated, dropped), and produce a daily brief (key-date changes, upcoming calendar, news + 8-K material events) as markdown or a branded PDF. Storage is pluggable behind one contract: a local folder (~/company-universe) or a connected server (e.g. Google Sheets over MCP). Triggers: "add company to my universe / watchlist", "list my companies", "when does X report earnings", "track earnings / ex-dividend dates for Y", "what changed in earnings dates", "any investor days coming up", "run the daily universe monitor", "daily brief / report for my watchlist", "schedule the daily check", "upcoming key dates for my companies".
Other plugins' skills for the same job