Build institutional-grade comparable company analyses with operating metrics, valuation multiples, and statistical benchmarking in Excel/spreadsheet format.
**Perfect for:**
- Public company valuation (M&A, investment analysis)
- Benchmarking performance vs. industry peers
- Pricing IPOs or funding rounds
- Identifying valuation outliers (over/under-valued)
- Supporting investment committee presentations
- Creating sector overview reports
**Not ideal for:**
- Private companies without comparable public peers
- Highly diversified conglomerates
- Distressed/bankrupt companies
- Pre-revenue startups
- Companies with unique business models
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Prefer site adapters when available, e.g. opencli yahoo-finance, opencli xueqiu, opencli eastmoney, opencli web read, or opencli browser ....
For public JSON endpoints, opencli browser open <api-url> + opencli browser eval 'document.body.innerText' is acceptable when it improves consistency with browser/session-based workflows.
Direct API / Chrome CDP / package fallback third — use direct HTTP APIs, the bundled packages/chrome-cdp, or manual browser extraction only when OpenCLI has no adapter, cannot reach the page, or returns incomplete data.
Web Search last — use search only as the final fallback or for qualitative context/news that requires multiple public sources.
Always cite which layer produced each important datapoint. If layers disagree, say so and prefer the more primary/structured source.
Data Source Priority
Follow jdy data source fallback strategy:
Layer 1: MCP
alpha-vantage — 技术指标、财报日历(25次/天限额)
Layer 2: OpenCLI
When MCP is unavailable, use OpenCLI before lower-level fallbacks.
Launch browser instance 0 first when browser/session access is needed: /Users/jdy/document/web3/ChromeScript/chrome_multi_instance.sh --instance 0.
Prefer relevant adapters (opencli yahoo-finance, opencli xueqiu, opencli eastmoney, opencli web read, opencli browser ...) when available.
finance.yahoo.com, macrotrends.net for financial data
SEC EDGAR for filings
Always annotate: "Source: [source name]" on each data point.
Overview
This skill teaches Claude to build institutional-grade comparable company analyses that combine operating metrics, valuation multiples, and statistical benchmarking. The output is a structured Excel/spreadsheet that enables informed investment decisions through peer comparison.
ALWAYS ask yourself first:
"Do you have a preferred format or should I adapt the template style?"
"Who is the audience?" (Investment committee, board presentation, quick reference, detailed memo)
"What's the key question?" (Valuation, growth analysis, competitive positioning, efficiency)
Industry context: Big tech mega-caps need different metrics than emerging SaaS startups
Sector-specific needs: Add relevant metrics early (e.g., cloud ARR, enterprise customers, developer ecosystem for tech)
Company familiarity: Well-known companies may need less background, more focus on delta analysis
Decision type: M&A requires different emphasis than ongoing portfolio monitoring
Core principle: Use template principles (clear structure, statistical rigor, transparent formulas) but vary execution based on context. The goal is institutional-quality analysis, not institutional-looking templates.
User-provided examples and explicit preferences always take precedence over defaults.
Core Philosophy
"Build the right structure first, then let the data tell the story."
Start with headers that force strategic thinking about what matters, input clean data, build transparent formulas, and let statistics emerge automatically. A good comp should be immediately readable by someone who didn't build it.
CRITICAL: Formulas Over Hardcodes + Step-by-Step Verification
Environment — Python/openpyxl:
Use Python/openpyxl to generate standalone .xlsx files. Write cell.value = "=E7/C7" (formula string).
Every derived value (margin, multiple, statistic) MUST be an Excel formula referencing input cells — never a pre-computed number pasted in.
Formulas, not hardcodes:
Every derived value (margin, multiple, statistic) MUST be an Excel formula referencing input cells — never a pre-computed number pasted in
When using Python/openpyxl to build the sheet: write cell.value = "=E7/C7" (formula string), NOT cell.value = 0.687 (computed result)
The only hardcoded values should be raw input data (revenue, EBITDA, share price, etc.) — and every one of those gets a cell comment with its source
Why: the model must update automatically when an input changes. A hardcoded margin is a silent bug waiting to happen.
Verify step-by-step with the user:
After setting up the structure -> show the user the header layout before filling data
After entering raw inputs -> show the user the input block and confirm sources/periods before building formulas
After building operating metrics formulas -> show the calculated margins and sanity-check with the user before moving to valuation
After building valuation multiples -> show the multiples and confirm they look reasonable before adding statistics
Do NOT build the entire sheet end-to-end and then present it — catch errors early by confirming each section
Section 1: Document Structure & Setup
Header Block (Rows 1-3)
Row 1: [ANALYSIS TITLE] - COMPARABLE COMPANY ANALYSIS
Row 2: [List of Companies with Tickers] * [Company 1 (TICK1)] * [Company 2 (TICK2)] * [Company 3 (TICK3)]
Row 3: As of [Period] | All figures in [USD Millions/Billions] except per-share amounts and ratios
Why this matters: Establishes context immediately. Anyone opening this file knows what they're looking at, when it was created, and how to interpret the numbers.
Visual Convention Standards (OPTIONAL - User preferences and uploaded templates always override)
IMPORTANT: These are suggested defaults only. Always prioritize:
User's explicit formatting preferences
Formatting from any uploaded template files
Company/team style guides
These defaults (only if no other guidance provided)
Suggested Font & Typography:
Font family: Times New Roman (professional, readable, industry standard)
Font size: 11pt for data cells, 12pt for headers
Bold text: Section headers, company names, statistic labels
Default Color & Shading — Professional Blue/Grey Palette (minimal is better):
Keep it restrained — only blues and greys. Do NOT introduce greens, oranges, reds, or multiple accent colors. A clean comps sheet uses 3-4 colors total.
Columns that DON'T need statistics (size metrics):
Revenue, EBITDA, Net Income (absolute size varies by company scale)
Market Cap, Enterprise Value (not comparable across different-sized companies)
Note: Add one blank row between company data and statistics rows for visual separation. Do NOT add a "SECTOR STATISTICS" or "VALUATION STATISTICS" header row.
Why quartiles matter: They show distribution, not just average. A 75th percentile multiple tells you what "premium" companies trade at.
Debt/Equity - Leverage (for capital structure analysis)
Key Principle: Include 3-5 core multiples that matter for your industry. Don't include every possible metric just because you can.
Formula Examples
// Core multiples - always include these
EV/Revenue: =[Enterprise Value]/[LTM Revenue]
EV/EBITDA: =[Enterprise Value]/[LTM EBITDA]
P/E Ratio: =[Market Cap]/[Net Income]
// Optional multiples - include if data available
FCF Yield: =[LTM FCF]/[Market Cap]
PEG Ratio: =[P/E]/[Growth Rate %]
Cross-Reference Rule
CRITICAL: Valuation multiples MUST reference the operating metrics section. Never input the same raw data twice. If revenue is in C7, then EV/Revenue formula should reference C7.
Statistics Block
Same structure as operating section: Max, 75th, Median, 25th, Min for every metric. Add one blank row for visual separation between company data and statistics. Do NOT add a "VALUATION STATISTICS" header row.
Section 4: Notes & Methodology Documentation
Required Components
Data Sources & Quality:
Where did the data come from? (alpha-vantage MCP, Chrome CDP finance.yahoo.com, SEC filings, web search)
What period does it cover? (Q4 2024, audited figures)
How was it verified? (Cross-checked against 10-K/10-Q)
Note: Follow jdy data source fallback: alpha-vantage MCP (Layer 1) → OpenCLI (Layer 2) → Chrome CDP/direct API (Layer 3) → Web Search (Layer 4)
Key Definitions:
EBITDA calculation method (Gross Profit + D&A, or Operating Income + D&A)
Free Cash Flow formula (Operating CF - CapEx)
Special metrics explained (Rule of 40, FCF Conversion)
Time period definitions (LTM, CAGR calculation periods)
Valuation Methodology:
How was Enterprise Value calculated? (Market Cap + Net Debt)
What growth rates were used? (Historical CAGR, forward estimates)
Any adjustments made? (One-time items excluded, normalized margins)
Analysis Framework:
What's the investment thesis? (Cloud/SaaS efficiency)
What metrics matter most? (Cash generation, capital efficiency)
How should readers interpret the statistics? (Quartiles provide context)
Section 5: Choosing the Right Metrics (Decision Framework)
Start with "What question am I answering?"
"Which company is undervalued?"
-> Focus on: EV/Revenue, EV/EBITDA, P/E, Market Cap
-> Skip: Operational details, growth metrics
"Which company is most efficient?"
-> Focus on: Gross Margin, EBITDA Margin, FCF Margin, Asset Turnover
-> Skip: Size metrics, absolute dollar amounts
"Which company is growing fastest?"
-> Focus on: Revenue Growth %, EBITDA CAGR, User/Customer Growth
-> Skip: Margin metrics, leverage ratios
"Which is the best cash generator?"
-> Focus on: FCF, FCF Margin, FCF Conversion, CapEx intensity
-> Skip: EBITDA, P/E ratios
Industry-Specific Metric Selection
Software/SaaS:
Must have: Revenue Growth, Gross Margin, Rule of 40
Optional: ARR, Net Dollar Retention, CAC Payback
Skip: Asset Turnover, Inventory metrics
Manufacturing/Industrials:
Must have: EBITDA Margin, Asset Turnover, CapEx/Revenue
Optional: ROA, Inventory Turns, Backlog
Skip: Rule of 40, SaaS metrics
Financial Services:
Must have: ROE, ROA, Efficiency Ratio, P/E
Optional: Net Interest Margin, Loan Loss Reserves
Skip: Gross Margin, EBITDA (not meaningful for banks)
Retail/E-commerce:
Must have: Revenue Growth, Gross Margin, Inventory Turnover
Optional: Same-Store Sales, Customer Acquisition Cost
Skip: Heavy R&D or CapEx metrics
The "5-10 Rule"
5 operating metrics - Revenue, Growth, 2-3 margins/efficiency metrics
5 valuation metrics - Market Cap, EV, 3 multiples
= 10 total columns - Enough to tell the story, not so many you lose the thread
If you have more than 15 metrics, you're probably including noise. Edit ruthlessly.
Section 6: Best Practices & Quality Checks
Before You Start
Define the peer group - Companies must be truly comparable (similar business model, scale, geography)
Choose the right period - LTM smooths seasonality; quarterly shows trends
Standardize units upfront - Millions vs. billions decision affects everything
Map data sources - Know where each number comes from
As You Build
Input all raw data first - Complete the blue text before writing formulas
Add cell comments to ALL hard-coded inputs - Right-click cell -> Insert Comment -> Document source OR assumption
For sourced data, cite exactly where it came from:
Format cells (blue for inputs, black for formulas)
Lock in units and date references
Gather data (60-90 minutes)
Pull from alpha-vantage MCP (Layer 1), Chrome CDP (finance.yahoo.com, sec.gov/edgar, tipranks.com) (Layer 2); fall back to web search if needed (Layer 3)
Input all raw numbers in blue
Document sources in notes section
Build formulas (30 minutes)
Start with simple ratios (margins)
Progress to multiples (EV/Revenue)
Add cross-checks (do margins make sense?)
Add statistics (15 minutes)
Copy formula structure for all columns
Verify ranges are correct (B7:B9, not B7:B10)
Check quartile logic
Quality control (30 minutes)
Run sanity checks
Verify formula references
Check for #DIV/0! or #REF! errors
Compare against known benchmarks
Documentation (15 minutes)
Complete notes section
Add data sources
Define methodologies
Date-stamp the analysis
Pro Tips
Save templates: Build once, reuse forever
Color-code outliers: Conditional formatting for values >2 standard deviations
Link to source files: Hyperlink to SEC filings or data source pages
Version control: Save as "Comps_v1_2024-12-15" with clear dating
Collaborative reviews: Have someone else check your formulas
Excel Formatting Checklist (Optional - adapt to user preferences)
Font set to user's preferred style (default: Times New Roman, 11pt data, 12pt headers)
Section headers formatted per user's template (default: dark blue #17365D with white bold text)
Column headers formatted per user's template (default: light blue/gray #D9E2F3 with black bold text)
Statistics rows formatted per user's template (default: light gray #F2F2F2)
No borders applied (clean, minimal appearance)
Column widths set to uniform/even width (creates clean, professional appearance)
Row heights set to consistent height (typically 20-25pt for data rows)
Numbers formatted with proper decimal precision and thousands separators
All metrics center-aligned for clean, uniform appearance
One blank row for separation between company data and statistics rows
No separate "SECTOR STATISTICS" or "VALUATION STATISTICS" header rows
Every hard-coded input cell has a comment with either: (1) exact data source, OR (2) assumption explanation
Hyperlinks added to cells where applicable (SEC filings, data provider pages, reports)
Formula auditing shows no errors (#DIV/0!, #REF!, #N/A)
Continuous Improvement
After completing a comp analysis, ask:
Did the statistics reveal unexpected insights?
Were there any data gaps that limited analysis?
Did stakeholders ask for metrics you didn't include?
How long did it take vs. how long should it take?
What would make this more useful next time?
The best comp analyses evolve with each iteration. Save templates, learn from feedback, and refine the structure based on what decision-makers actually use.