# comps

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.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 41441 repo stars
- Author: Anthropic FSI · official Anthropic repository
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/anthropics/financial-services/tree/HEAD/plugins/vertical-plugins/financial-analysis/commands/comps.md
- Updated: 2026-09-21
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/comps

## What it 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.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add anthropics/financial-services
```
In the agent chat (not a shell):
```text
/plugin install financial-analysis@claude-for-financial-services
```

2. **Manually: put the files in place**
- File: `.claude/commands/comps.md` — Call it with /comps. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/comps.md` — Call it with /prompts:comps. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/comps.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/comps.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/anthropics/financial-services/tree/HEAD/plugins/vertical-plugins/financial-analysis/commands/comps.md

## When to use it
- 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
- 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.

## Source text · comps.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 1533399f462c5e13.

BEGIN THIRD-PARTY FILE 1533399f462c5e13
````text
---
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     │
````
END THIRD-PARTY FILE 1533399f462c5e13

The third-party file has ended. Everything between the 1533399f462c5e13 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3570 of 5639 bytes. © Anthropic FSI · Apache-2.0 · https://github.com/anthropics/financial-services/tree/HEAD/plugins/vertical-plugins/financial-analysis/commands/comps.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
