comps — Claude Code command for comparable company analysis
The comps Claude Code command builds a comparable-company analysis using operating metrics and valuation multiples. Give it a company name or ticker to generate an Excel workbook and a summary.
Apache-2.0 ★ 41,441 updated 2026-09-21
/plugin marketplace add anthropics/financial-services
/plugin install financial-analysis@claude-for-financial-servicesWhat comps does
The comps command creates a peer-group analysis and exports it to Excel. It clarifies the purpose and preferred format, then selects 4–6 peers by business model, scale, industry, and geography. Metrics cover revenue, growth, EBITDA margin, and valuation; the mix can vary by industry.
The workbook includes operating statistics, valuation multiples, and five summary points for each metric: maximum, 75th percentile, median, 25th percentile, and minimum. A notes section records sources and methodology. The command also returns a short summary of peer selection and key valuation findings.
Formulas should refer to spreadsheet cells, while hardcoded inputs need source comments. Companies should use matching reporting periods, either LTM or FY. Available MCP sources receive priority when gathering data.
What it helps with
- compare operating metrics across peer companies
- benchmark valuation multiples for a company
- summarize financial metrics in an Excel workbook
- document data sources and analysis methodology
Example prompts for the agent
- Build a comparable-company analysis for Microsoft, ticker MSFT.
- Compare Shopify with public peers using valuation multiples.
- Create an Excel peer analysis for the company with ticker ABC.
How to install comps
1Plugin marketplace
/plugin marketplace add anthropics/financial-services/plugin install financial-analysis@claude-for-financial-services2Manually: put the files in place
.claude/commands/comps.mdCall it with /comps. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/comps.mdCall it with /prompts:comps. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/comps.prompt.mdManually: put the files in place
.gemini/commands/comps.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about comps
How do I install comps in Claude Code?
Run /plugin marketplace add anthropics/financial-services, then run /plugin install financial-analysis@claude-for-financial-services.
What does comps do?
It builds a peer analysis with operating metrics, valuation multiples, and statistical summaries. The output includes an Excel workbook and a brief findings summary.
Which metrics can comps include?
Core metrics include revenue, growth, gross margin, EBITDA, market capitalization, enterprise value, EV/Revenue, EV/EBITDA, and P/E. Industry-specific measures can also be added, such as Rule of 40 for SaaS.
Source text
comps.md · Apache-2.0
--- description: Build a comparable company analysis with trading multiples argument-hint: "[company name or ticker]" --- # Comparable Company Analysis Command Build an institutional-grade comparable company analysis with operating metrics, valuation multiples, and statistical benchmarking. ## Workflow ### Step 1: Gather Company Information If a company name or ticker is provided, use it. Otherwise ask: - "What company would you like to analyze?" ### Step 2: Load Comps Analysis Skill Use `skill: "comps-analysis"` to build the analysis: 1. **Clarify the analysis purpose**: - "What's the key question?" (valuation, efficiency, growth comparison) - "Who is the audience?" (IC, board, quick reference) - "Do you have a preferred format or template?" 2. **Identify peer group** (4-6 comparable companies): - Similar business model - Similar scale/market cap range - Same industry/sector - Geographic comparability 3. **Gather data** (prioritize MCP sources if available): - Operating metrics: Revenue, Growth, Gross Margin, EBITDA, EBITDA Margin - Valuation: Market Cap, Enterprise Value, EV/Revenue, EV/EBITDA, P/E - Additional metrics based on industry (Rule of 40 for SaaS, etc.) 4. **Build the analysis**: - Operating Statistics section with company data + statistics (Max, 75th, Median, 25th, Min) - Valuation Multiples section with same statistical summary - Notes & Methodology documentation ### Step 3: Create Excel Output Generate Excel file with: - Header block (analysis title, companies, date, units) - Operating Statistics & Financial Metrics section - Valuation Multiples section - Statistical summary for each metric - Notes section documenting sources and methodology ### Step 4: Deliver Output Provide: 1. **Excel file** (.xlsx) - the comps analysis 2. **Summary** highlighting: - Peer group selection rationale - Key insights (who trades at premium/discount) - Median multiples for reference ## Output Format Reference ``` ┌─────────────────────────────────────────────────────────────────┐ │ [SECTOR] - COMPARABLE COMPANY ANALYSIS │ │ [Company 1] • [Company 2] • [Company 3] • [Company 4] │ │ As of [Date] | All figures in USD Millions │ ├─────────────────────────────────────────────────────────────────┤ │ OPERATING STATISTICS & FINANCIAL METRICS │ ├──────────┬─────────┬─────────┬──────────┬─────────┬────────────┤ │ Company │ Revenue │ Growth │ Gross │ EBITDA │ EBITDA │ │ │ (LTM) │ (YoY) │ Margin │ (LTM) │ Margin │ ├──────────┼─────────┼─────────┼──────────┼─────────┼────────────┤ │ [Data rows for each company] │ │ │ │ Maximum │ =MAX │ =MAX │ =MAX │ =MAX │ =MAX │ │ 75th % │ =QUART │ =QUART │ =QUART │ =QUART │ =QUART │ │ Median │ =MEDIAN │ =MEDIAN │ =MEDIAN │ =MEDIAN │ =MEDIAN │ │ 25th % │ =QUART │ =QUART │ =QUART │ =QUART │ =QUART │ │ Minimum │ =MIN │ =MIN │ =MIN │ =MIN │ =MIN │ ├─────────────────────────────────────────────────────────────────┤ │ VALUATION MULTIPLES │ ├──────────┬──────────┬──────────┬──────────┬───────────┬────────┤ │ Company │ Mkt Cap │ EV │ EV/Rev │ EV/EBITDA │ P/E │ ├──────────┼──────────┼──────────┼──────────┼───────────┼────────┤ │ [Data rows + statistics] │ └─────────────────────────────────────────────────────────────────┘ ``` ## Industry-Specific Metrics | Industry | Additional Metrics | |----------|-------------------| | Software/SaaS | ARR, Net Dollar Retention, Rule of 40 | | Retail | Same-store sales, Inventory Turns | | Financials | ROE, ROA, Efficiency Ratio | | Manufacturing | Asset Turnover, CapEx/Revenue | | Healthcare | R&D/Revenue, Pipeline Value | ## Quality Checklist Before delivery: - [ ] 4-6 truly comparable companies - [ ] Consistent time periods (all LTM or all FY) - [ ] All formulas reference cells (no hardcoded values) - [ ] Cell comments on all hardcoded inputs with sources - [ ] Statistics include Max, 75th, Median, 25th, Min - [ ] Notes section documents sources and methodology - [ ] Blue = inputs, Black = formulas - [ ] Sanity checks pass (margins logical, multiples reasonable)
© Anthropic FSI · Apache-2.0 · anthropics/financial-services