/daloopa-investing:build-model TICKERfrom daloopa-investing
Builds a multi-tab Excel financial model (.xlsx) for a given ticker, including historical statements, segments, KPIs, guidance, comps, projections, and a DCF. Follows shared conventions for data access, valuation, and metrics.
Ships in daloopa-investing. 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.
None: SKILL.md is the whole skill.
Build an Excel financial model (.xlsx) for the company specified by the user: $ARGUMENTS
Before starting, read ../data-access.md (tools, citations, reuse), ../valuation-conventions.md (share count, enterprise value, multiples, free cash flow, WACC, discounting, peer set), ../metrics-definitions.md (definitions, pull windows, year-to-date cash flows), ../earnings-methods.md (guidance pairing) and ../kpi-taxonomy.md (operating KPIs). Those files define every shared rule. This skill states what is specific to the workbook.
The workbook is written by infra/excel_builder.py (project repo only) from one context JSON.
Tell the user this plainly in the output. Do not describe the file as more than it is.
../valuation-conventions.md Section 1 excludes, stop and tell the user this builder cannot represent them.Run the standard company setup (../data-access.md Section 1.2) and the sector gate. Pull the latest close and a price range for the 52-week high and low (closing basis). Compute market cap, EV and trailing multiples per ../valuation-conventions.md Sections 2-4. Beta and the risk-free rate follow ../data-access.md Section 2, with defaults labelled.
If knowledge/{TICKER}/kpis.md exists, use it as the series map.
Pull 12 quarters (../metrics-definitions.md Section 1), more if Daloopa has them and the user wants a longer history. Run the year-to-date check in ../metrics-definitions.md Section 2 on the first cash-flow pull and convert before anything else.
Pull the three statements, segment revenue (and segment operating income where reported), operating KPIs chosen with ../kpi-taxonomy.md, guidance series, and share count. Keep each value's id in a separate working file (reports/.tmp/{TICKER}_model_sources.json, keyed by section, label and period): the builder's context takes plain numbers only.
Use these exact row labels. The builder recognizes them when it extends statements into projected periods; any other label is carried as a plain row and gets no projected value unless you supply one.
| Section | Labels |
|---|---|
income_statement | Revenue, Cost of Sales, Gross Profit, Research & Development, Selling, General & Administrative, Total Operating Expenses, Operating Income, Other Income/(Expense), Pre-tax Income, Tax Provision, Net Income, Diluted EPS, Diluted Shares, D&A |
balance_sheet | Cash & Equivalents, Short-term Investments, Accounts Receivable, Inventories, Other Current Assets, Total Current Assets, Long-term Investments, PP&E (net), Other Non-current Assets, Total Non-current Assets, Total Assets, Accounts Payable, Deferred Revenue (Current), Current Term Debt, Other Current Liabilities, Total Current Liabilities, Long-term Debt, Other Non-current Liabilities, Total Non-current Liabilities, Total Liabilities, Total Shareholders Equity |
cash_flow | Operating Cash Flow, Depreciation & Amortization, Share-based Compensation, Capital Expenditures, Free Cash Flow, Dividends Paid, Share Repurchases |
Label rules that follow from how the builder formats cells:
Diluted EPS, not EPS. A row labelled exactly EPS makes the Comps tab multiply the peer median P/E by one quarter's EPS and present it as an implied price.Other Non-current Assets and say so, or the projected totals will omit them.cash_flow, Capital Expenditures, Dividends Paid and Share Repurchases are negative (outflows). Free Cash Flow is levered FCF per ../metrics-definitions.md.Reuse the /comps sidecar's peer set if one is fresh. Otherwise build the set by ../valuation-conventions.md Section 9, starting from discover_companies(industry_id=...). Compute each peer's multiples from one batched price call and LTM fundamentals on the Section 3-4 definitions. A third-party multiple for a peer Daloopa does not cover is labelled as such in the output.
Project 20 quarters (five years), so the statements and the DCF rest on the same forecast.
Derive revenue from the KPI build in ../kpi-taxonomy.md where the KPIs support it, and state the driver assumptions. If you use infra/projection_engine.py, follow the table in /research-note Phase G for which of its lines may be used (revenue only after the guidance check; margins, D&A, capex and shares) and which must be recomputed (net income, EPS, FCF). The engine takes capex as positive numbers and calendar period labels; convert signs when moving its output into cash_flow.
Supply projected values for every row you want shown, under projections, keyed by the same labels as the statement rows. Supplied values are kept. For rows you do not supply, the builder fills projected periods with its own roll-forward, which is rough:
Total Operating Expenses is set to revenue minus operating income, so it includes cost of sales in projected columns;The projected balance sheet. The builder's roll-forward does not produce a balance sheet that balances. Either:
projections; orNever present (b) as a balanced three-statement model.
Compute the DCF yourself per ../valuation-conventions.md Sections 6-8: unlevered FCF by projection year (sum the 20 projected quarters into five years), WACC, mid-year discounting, both terminal-value methods with their cross-checks, the Section 3 bridge to equity, diluted shares per Section 2, and the roll-forward to today. Reuse a fresh /dcf sidecar instead if one exists.
The builder prints what you pass and computes nothing. Shapes it expects under dcf:
wacc, terminal_growth, risk_free_rate, equity_risk_premium: fractions (0.095)projected_fcf: a list of five annual unlevered FCF valuesterminal_value, enterprise_value: money, in the statements' unit; implied_share_price: per sharesensitivity: {"wacc_values": [...], "growth_values": [...], "prices": [[...], ...]} with wacc_values and growth_values in percent units (9.5, not 0.095), and prices as one row per WACC value, one column per growth value. The base case must be one of the cells. (The Word-chart path in infra/chart_generator.py expects the transpose, rows by growth: do not reuse the same grid there without transposing.)The tab has no rows for net debt, share count or the bridge. Report the bridge in the output.
Run these on the context in a script before building. Fix data-pull errors; never plug.
| Check | Test |
|---|---|
| Balance sheet balances | Total Assets = Total Liabilities + Total Shareholders Equity, every historical quarter |
| Cash ties | Change in cash on the balance sheet equals the cash flow statement's net change, where both are pulled |
| Statement foots | Revenue − cost of sales = gross profit; gross profit − operating expenses = operating income |
| Segments | Segment revenue sums to revenue, or the gap is shown as other / eliminations |
| Derived rows | EBITDA and FCF match ../metrics-definitions.md; year-to-date conversion sums to the fiscal year |
| Projections | First projected quarter is continuous with the last actual (unit, sign, order of magnitude); projected year-1 growth agrees with guidance or the difference is explained |
| Projected balance sheet | Balances in every projected quarter (path a), or the gap is measured and reported (path b) |
| DCF | EV = PV of flows + PV of terminal value; equity = EV through the bridge; implied price = equity ÷ diluted shares; the sensitivity base cell equals the headline price |
An unresolved difference is reported as an open item with its size.
Write the context to reports/.tmp/{TICKER}_model_context.json and run:
python infra/excel_builder.py --context reports/.tmp/{TICKER}_model_context.json --output reports/{TICKER}_model.xlsx
Context shape (every section optional; a missing section drops its tab). Every statement value is a plain number, never an object:
{
"company": {"name": "", "ticker": "", "exchange": "", "currency": ""},
"market_data": {"price": 0, "market_cap": 0, "shares_outstanding": 0, "beta": 0,
"fifty_two_week_high": 0, "fifty_two_week_low": 0,
"trailing_pe": 0, "ev_ebitda": 0, "dividend_yield": 0},
"periods": ["2023Q4", "2024Q1"],
"projected_periods": ["2026Q4", "2027Q1"],
"income_statement": {"Revenue": {"2023Q4": 0}},
"balance_sheet": {"Total Assets": {"2023Q4": 0}},
"cash_flow": {"Operating Cash Flow": {"2023Q4": 0}},
"segments": {"Revenue by Segment": {"Segment A": {"2023Q4": 0}}},
"kpis": {"KPI name": {"2023Q4": 0}},
"guidance": {"series": {"Revenue Guidance": {"2024Q1": 0}}, "actuals": {"Revenue Actual": {"2024Q1": 0}}},
"projections": {"Revenue": {"2026Q4": 0}},
"projection_assumptions": {"revenue_growth": {"2026Q4": 0.08}, "gross_margin": {}, "op_margin": {},
"capex_pct_revenue": {}, "tax_rate": 0.17, "buyback_rate_qoq": 0.005},
"dcf": {},
"comps": {"peers": [{"ticker": "", "name": "", "trailing_pe": 0, "ev_ebitda": 0,
"price_to_sales": 0, "revenue_growth": 0, "op_margin": 0}]}
}
periods and projected_periods are calendar quarters, the keys of every series.../earnings-methods.md Section 5), and include only basis-matched pairs. Name the pair "{Metric} Guidance" and "{Metric} Actual". Annual guidance does not fit quarterly columns: report it in the output instead.revenue_growth and op_margin are fractions. Leave out forward_pe unless consensus is sourced. The tab shows peer medians; state the peer-implied value range in the output, computed per ../valuation-conventions.md Section 4.reports/.tmp/{TICKER}_model_sources.json holds the id behind every reported value. In the output, give the citation links for the headline figures and tell the user where the full list is.If the builder fails, report the error. The context JSON is kept for inspection. Build a second workbook in a fresh process, not by re-importing the builder in the same session.
Tell the user:
../data-access.md Section 7), for example /reverse-dcf {TICKER} for what the price implies and /research-note {TICKER} for the write-up. To audit the workbook after manual edits, run /fix-debug-audit and name the file explicitly: its auto-detection skips files ending in _model.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
financial-modeling, excel, valuation, dcf, investment-research
Other plugins' skills for the same job
npx claudepluginhub daloopa/investing2 --plugin daloopa-investing42 skills in this plugin
/activismActivist vulnerability assessment — performance gaps, likely activist playbook, and defense analysis/bomInteractive product bill-of-materials dashboard with an exploded view, mapping components, suppliers, unit costs, and gross margin sensitivity/bull-bearBull/bear/base case scenario framework for a given company/buyer-universePotential acquirer screen with capacity to pay, strategic fit, and likelihood tiers/call-diffQuarter-over-quarter diff of management language, disclosures, and tone, cross-checked against the numbers/capital-allocationDeep dive into capital deployment, buybacks, dividends, and shareholder yield