.claude/skills/comp-sheet/SKILL.md
Build an industry comp sheet Excel model with deep operational KPIs
npx skillsauth add daloopa/investing comp-sheetInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build a multi-company industry comp sheet Excel model for the company specified by the user: $ARGUMENTS
This produces an interactive .xlsx workbook — the kind of comp sheet every analyst on a coverage team maintains. Multi-company, multi-tab, with deep operational KPIs alongside standard financials.
Before starting, read ../data-access.md for data access methods and ../design-system.md for formatting conventions. Follow the data access detection logic and design system throughout this skill.
Follow these steps:
Look up the target company by ticker using discover_companies. Capture company_id, latest_calendar_quarter (anchor for all period calculations — see ../data-access.md Section 1.5), and latest_fiscal_quarter. Note the firm name for report attribution (default: "Daloopa") — see ../data-access.md Section 4.5.
Then identify 6-10 comparable companies using the same logic as /comps:
Look up all peer company_ids via Daloopa. If a peer isn't available in Daloopa, include it with market data only and note the limitation.
List the full peer group with brief justification for each.
For each company (target + all peers), pull from Daloopa:
Calculate 8 quarters backward from latest_calendar_quarter. Pull financials:
Segment revenue breakdown (all available segments, 8 quarters)
Company-specific operational KPIs — use the 9-sector taxonomy to know what to search for:
Market data for each company (see ../data-access.md Section 2):
After pulling data, build the KPI mapping:
For each company, calculate:
Margins:
Growth rates:
Capital metrics:
Implied valuation:
Structure the data as a multi-company context JSON for the comp_builder:
{
"target_ticker": "AAPL",
"as_of_date": "YYYY-MM-DD",
"companies": [
{
"ticker": "AAPL",
"name": "Apple Inc.",
"is_target": true,
"market_data": {
"price": ..., "market_cap": ..., "enterprise_value": ...,
"shares_outstanding": ..., "beta": ...,
"trailing_pe": ..., "forward_pe": ...,
"ev_ebitda": ..., "price_to_sales": ...,
"ev_fcf": ..., "dividend_yield": ...
},
"periods": ["2024Q1", "2024Q2", ...],
"financials": {
"Revenue": {"2024Q1": ..., ...},
"Gross Profit": {...}, ...
},
"margins": {
"Gross Margin": {"2024Q1": ..., ...}, ...
},
"growth": {
"Revenue Growth YoY": {"2024Q1": ..., ...}, ...
},
"kpis": {
"iPhone Revenue": {"2024Q1": ..., ...}, ...
},
"kpi_categories": {
"Segment Revenue": ["iPhone Revenue", "Services Revenue", ...],
"Growth KPIs": ["Services Growth YoY"],
"Efficiency": ["R&D % Revenue", "SBC % Revenue"]
}
},
...more companies...
],
"implied_valuation": {
"pe_implied": ...,
"ev_ebitda_implied": ...,
"ps_implied": ...,
"ev_fcf_implied": ...,
"median_implied": ...
}
}
Save to reports/.tmp/{TICKERS}_comp_context.json.
Build the comp sheet workbook (see ../data-access.md Section 5 for infrastructure):
python3 infra/comp_builder.py --context reports/.tmp/{TICKERS}_comp_context.json --output reports/{TICKERS}_comp_sheet.xlsx
The builder creates 8 tabs:
Tell the user where the .xlsx was saved.
Highlight in your summary:
All financial figures in the summary must use Daloopa citation format: $X.XX million
development
Cash conversion cycle, earnings quality, and working capital deep-dive
testing
Refresh existing research note and Excel model with latest data
tools
Bottoms-up unit economics decomposition for any public company
tools
Quick one-page company overview and snapshot