with one click
comp-sheet
Build an industry comp sheet Excel model with deep operational KPIs
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Build an industry comp sheet Excel model with deep operational KPIs
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | comp-sheet |
| description | Build an industry comp sheet Excel model with deep operational KPIs |
| argument-hint | TICKER |
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:
Stock prices & valuation multiples:
Use get_stock_prices (see ../data-access.md Section 1.7) to pull prices for ALL companies in a single batch call. Get:
dates = 3 most recent calendar days for all company_idsdates = quarter-end dates matching the financial periods (for historical multiples)Then compute valuation metrics by combining stock prices with Daloopa fundamentals:
For beta, use infra scripts or web search (see ../data-access.md Section 2). For forward multiples, use consensus estimates if available (Section 3).
After pulling data, build the KPI mapping:
For each company, calculate:
Margins:
Growth rates:
Capital metrics:
Historical multiples (from quarter-end prices pulled in Section 2):
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
Trading comparables analysis with peer multiples and implied valuation
Rapid first-read earnings flash for a given company
Pre-earnings preparation report for the night before a company reports
Full earnings analysis with guidance tracking for a given company
Walk through initial setup and authentication for this Daloopa starter kit
Bull/bear/base case scenario framework for a given company