/daloopa-investing:comp-sheet TICKERfrom daloopa-investing
Builds a multi-company industry comp sheet Excel model with deep operational KPIs for a given ticker, comparing it against 6-10 peers across financials, margins, growth, multiples, and operating 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 a multi-company industry comp sheet Excel model for the company specified by the user: $ARGUMENTS
Before starting, read ../data-access.md (tools, citations, peers, reuse), ../design-system.md (number formats, final checks), ../metrics-definitions.md (metric definitions, pull windows, sector applicability, currency), ../valuation-conventions.md (share count, enterprise value, multiples, peer set) and ../kpi-taxonomy.md (operating KPIs). This skill cites them and does not restate them.
The output is an .xlsx workbook comparing the target with 6-10 peers across eight tabs: standard financials, margins and growth, trading multiples and operating KPIs. It is built by infra/comp_builder.py from a context JSON, so this skill has two jobs: compute the numbers correctly, and write them under the exact keys and labels the builder reads.
What the workbook is and is not. The builder writes values. The only formulas are the peer median and mean on the first tab, and no cell carries a citation link. The workbook is therefore a working comparison table, not an auditable model. The citations live in the context JSON, which is saved next to the workbook, and in the summary you give the user.
Run the standard company setup for the target (../data-access.md Section 1.2). Apply the sector gate (../valuation-conventions.md Section 1): for a bank, insurer or REIT the EV-based rows are not meaningful, so leave those keys null and say so.
Peers. The peer set is owned by /comps (../valuation-conventions.md Section 9).
reports/{TICKER}_comps.json or reports/{TICKER}_comps.html passes the reuse rule (../data-access.md Section 7), use its peer set and say so./comps does: call discover_companies(industry_id=...) with the target's industry_id, choose 6-10 from that list by business model, size and growth profile, and label any out-of-industry addition with its reason (../data-access.md Section 8.5).company_id. Name it in the summary as a peer left out for lack of coverage.Look up each peer with its own call and confirm the returned name. Anchor the window on the earliest latest_calendar_quarter in the group and align every company on calendar quarters. Note each company's reporting currency: amounts in another currency are not comparable (../metrics-definitions.md Section 9), so either convert at a stated rate and date or leave that company's absolute-amount rows out of cross-company reading and say so.
Display window: 8 calendar quarters. Pull window: 12 quarters, which gives year-over-year growth for all 8 and LTM figures at the latest quarter (../metrics-definitions.md Section 1).
Start with discover_comparable_companies_metrics and get_comparable_companies_fundamentals for the metrics the whole group shares, then fill gaps per company with discover_company_series. For each company pull:
../metrics-definitions.md Section 2)../kpi-taxonomy.md, searched with the same keywords for every companyPrices. One batched get_stock_prices range call for all companies; take each latest close (../data-access.md Section 1.7). Record the price date as as_of_date.
Every definition comes from the shared references. Apply the same share basis, EV bridge and EBITDA definition to every company.
price_to_sales). Fill it with market cap ÷ LTM revenue, which is what the label says. ../valuation-conventions.md prefers EV/Sales: compute that too and give it in your summary.../valuation-conventions.md Section 4, is written as null, never as a negative or extreme number, so the builder's median ignores it.median_implied.Not rendered by the builder, so report them in your summary and do not spend effort formatting them for the workbook: multiples at past quarter-ends, the peer median multiple and target metric behind each implied price, beta, and a bottom-line statement.
The builder reads only the keys and labels below. Anything else is ignored without warning, except that every series under financials, margins, growth and kpis is dumped into the Raw Data tab.
Top level
| Key | Value |
|---|---|
target_ticker | string |
as_of_date | price date, YYYY-MM-DD |
companies | list, one object per company |
implied_valuation | pe_implied, ev_ebitda_implied, ps_implied, ev_fcf_implied, median_implied (implied share prices) |
Each company
| Key | Value |
|---|---|
ticker, name, is_target | is_target is true for exactly one company |
periods | the 8 calendar quarters, oldest first; the last one is treated as "latest" |
market_data | price, market_cap and enterprise_value (both in $mm), trailing_pe, forward_pe, ev_ebitda, price_to_sales, ev_fcf, dividend_yield, beta, and for the Balance Sheet tab net_debt, net_debt_ebitda, interest_coverage, fcf_yield, shareholder_yield, buyback_yield |
financials | {label: {period: value}}. The Financial Summary tab prints only these labels, spelled exactly: Revenue, Gross Profit, Operating Income, EBITDA, Net Income, EPS |
margins | Gross Margin, Operating Margin, Net Margin, FCF Margin |
growth | Revenue Growth YoY, EPS Growth YoY |
kpis | {KPI name: {period: value}} |
kpi_categories | {category: [KPI names]}. Segment Revenue and Growth KPIs are ordered first on the Revenue Drivers tab; every KPI outside Segment Revenue appears on the Operating KPIs tab |
Rules that follow from how the builder formats cells:
EPS. A series labelled "Diluted EPS" is not printed on the Financial Summary tab.forward_pe and beta are null unless a named source provides them (../data-access.md Sections 2 and 3).sources object per company ({label: {period: id}}). The builder ignores it; it is what makes the numbers traceable.Save the context to reports/.tmp/{TICKERS}_comp_context.json.
A workbook hides errors a report would expose. Run the Final Checks in ../design-system.md that apply to a workbook (arithmetic, periods, labelled estimates, no placeholders) by asserting, in the script that writes the context:
periods, and the medians used for implied value exclude the target and any null.Fix any failure and re-save. Do not render a workbook with a known error.
python3 infra/comp_builder.py --context reports/.tmp/{TICKERS}_comp_context.json --output reports/{TICKERS}_comp_sheet.xlsx
The builder writes eight tabs:
| Tab | What it shows |
|---|---|
| Comp Summary | Price, market cap, EV, the five multiples, dividend yield, latest-quarter growth and margins, beta, peer median and mean, and the implied prices |
| Revenue Drivers | Each company's KPI series for the last 4 quarters, segment revenue first |
| Operating KPIs | Latest value of each KPI, companies as columns |
| Financial Summary | The six financial rows and three margins for the last 4 quarters, per company |
| Growth & Margins | Five trend metrics over up to 8 quarters, companies as rows |
| Valuation Detail | Implied price per method against the current price, and the target's multiples against the peer median |
| Balance Sheet & Capital | Net debt, leverage, coverage and the yields, companies as columns |
| Raw Data | Every series in the context, per company |
Open the workbook and compare it with the context (openpyxl is enough): every company and every expected row is present on each tab, and no row came out blank. The builder drops a row silently when a label is misspelled or a key is missing, so a blank or absent row means the context is wrong. Fix it and render again.
Known limits of the current builder. State the ones that affect the output in your summary; do not try to work around them by renaming standard rows:
Tell the user where the workbook and the context JSON were saved, and give the summary the workbook cannot carry. Cite every figure you quote (../data-access.md Section 4).
../data-access.md Section 7).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
comp-sheet, financial-modeling, excel, kpi-analysis, peer-comparison
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/build-modelBuild a multi-tab Excel financial model/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