Skip to main content
command CX Codex official · Anthropic

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/financial-services
/plugin install financial-analysis@claude-for-financial-services
Open on GitHub

What 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-services

2Manually: put the files in place

.claude/commands/comps.md

Call it with /comps. For all projects use ~/.claude/commands/

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

Similar slash commands

All slash commands for Finance and business →

From the same set116

The whole set →
one-pager The one-pager Claude Code command creates a one-page company profile for pitch books and deal materials. Give it a company name or ticker to assemble a PowerPoint slide with business and financial details. CX Codex +1 ★ 41,441repo stars ppt-template The ppt-template Claude Code command turns a PowerPoint template into a reusable skill. It inspects a .pptx or .potx file, builds the skill package, and checks it with a sample deck. CX Codex +1 ★ 41,441repo stars debug-model debug-model — a Claude Code command that checks financial models for formula and logic errors. Run it to audit an .xlsx model for balance issues, hardcoded overrides, and broken references. CX Codex +1 ★ 41,441repo stars dcf This Claude Code command builds a company DCF valuation and checks it against public peers. It uses comparable-company multiples to shape valuation assumptions. CX Codex +1 ★ 41,441repo stars earnings earnings — a command for Claude Code, Codex, GitHub Copilot and Gemini CLI that compiles quarterly financial results and generates an equity research report in DOCX. CX Codex +1 ★ 41,441repo stars review-fi-portfolio The review-fi-portfolio Claude Code command reviews fixed-income portfolios using prices, cashflows, and rate scenarios. Supply bond identifiers to start the analysis. CX Codex +1 ★ 41,441repo stars research-equity research-equity is a Claude Code command that compiles equity research summaries using consensus estimates, company fundamentals, and price data. Runs when analyzing a stock by ticker. CX Codex +1 ★ 41,441repo stars macro-rates The macro-rates Claude Code command builds a macro and rates dashboard for a selected country. It covers economic indicators, yield curves, real rates, and swap spreads. CX Codex +1 ★ 41,441repo stars

Project sponsors

Companies that keep this analytics open