comps-analysis
**comps-analysis** generates institutional-grade comparable company analyses in spreadsheet format using formulas-based architecture and institutional standards. Use this skill to build rigorous valuation benchmarks combining operating metrics like revenue and growth with valuation multiples, statistical quartile analysis, and sanity checks across peer groups. Prioritizes data from MCP sources (S&P Kensho, FactSet, Daloopa) over web search and requires LibreOffice for formula recalculation verification.
git clone --depth 1 https://github.com/fivetaku/claude-office-skills /tmp/comps-analysis && cp -r /tmp/comps-analysis/claude-in-excel/comps-analysis ~/.claude/skills/comps-analysisSKILL.md
# Comparable Company Analysis ## Preflight: Dependency Check Before starting, verify required libraries and tools are installed and install any that are missing. ```bash python3 -c "import openpyxl" 2>/dev/null || python3 -m pip install openpyxl command -v soffice >/dev/null 2>&1 || command -v libreoffice >/dev/null 2>&1 || ls /Applications/LibreOffice.app/Contents/MacOS/soffice >/dev/null 2>&1 || echo "WARNING: LibreOffice not found. Install: brew install --cask libreoffice (macOS) or apt install libreoffice (Linux). Required for scripts/recalc.py." ``` **Important**: Do not skip this step — `scripts/recalc.py` is required to verify quartile statistics and multiple-range sanity checks. ## Scripts - `scripts/recalc.py` — Force formula recalculation via headless LibreOffice. Run after building: `python scripts/recalc.py <comps.xlsx>` ## ⚠️ CRITICAL: Data Source Priority (READ FIRST) 1. FIRST: Check for MCP data sources (S&P Kensho, FactSet, Daloopa) 2. DO NOT use web search if MCPs available 3. ONLY if MCPs unavailable: Bloomberg, SEC EDGAR 4. NEVER use web search as primary data source ## Overview Institutional-grade comps combining operating metrics, valuation multiples, statistical benchmarking. ## Reference Material & Contextualization - `comps_example.xlsx` (bundled in this skill directory) for structural hierarchy understanding - DO use for: structure, rigor level, principles - DO NOT use for: exact reproduction, copying without context - ALWAYS ask: format preference? audience? key question? context? - Adapt for: industry, sector, company familiarity, decision type ## ⚠️ Formulas Over Hardcodes + Step-by-Step Verification - Office JS: range.formulas, not range.values - Merged cell pitfall: value to top-left first - Step-by-step: structure → raw inputs → operating metrics → valuation multiples → statistics ## Section 1: Document Structure & Setup ### Header Block (Rows 1-3): Title, Companies list, Date/Units ### Visual Convention Standards (OPTIONAL - user prefs override) - Font: Times New Roman 11pt (data), 12pt (headers) - Color Palette: Dark blue #1F4E79/#17365D (headers), Light blue #D9E1F2 (column headers), White (data), Light grey #F2F2F2 (statistics) - Decimal precision: % 1 decimal, multiples 1 decimal, $ no decimals - No borders (clean minimal appearance) - All metrics center-aligned - Uniform column widths + consistent row heights ## Section 2: Operating Statistics & Financial Metrics ### Core Columns: Company, Revenue, Revenue Growth, Gross Profit, Gross Margin, EBITDA, EBITDA Margin ### Optional: FCF, FCF Margin, Net Income, Operating Income, CapEx, Rule of 40, FCF Conversion ### Statistics Block: Maximum, 75th Percentile, Median, 25th Percentile, Minimum - Statistics for comparable metrics (ratios, margins, multiples) — NOT size metrics (absolute $) - One blank row between data and statistics — NO "SECTOR STATISTICS" header ## Section 3: Valuation Multiples & Investment Metrics ### Core: Company, Market Cap, Enterprise Value, EV/Revenue, EV/EBITDA, P/E ### Optional: FCF Yield, PEG Ratio, Price/Book, ROE/ROA, CAGR, Asset Turnover, Debt/Equity ### Cross-Reference Rule: Multiples MUST reference operating metrics section ### Statistics Block: Same structure (Max, 75th, Med, 25th, Min) ## Section 4: Notes & Methodology Documentation - Data Sources & Quality, Key Definitions, Valuation Methodology, Analysis Framework ## Section 5: Choosing the Right Metrics (Decision Framework) - "Which is undervalued?" → EV/Rev, EV/EBITDA, P/E - "Which is most efficient?" → margins - "Which is growing fastest?" → growth rates - "Which generates most cash?" → FCF metrics ### Industry-Specific: SaaS, Manufacturing, Financial Services, Retail ### The "5-10 Rule": 5 operating + 5 valuation = 10 total ## Section 6: Best Practices & Quality Checks - Cell comments on ALL hard-coded inputs (source OR assumption) - Sanity: Gross > EBITDA > Net margin - Multiple ranges: EV/Rev 0.5-20x, EV/EBITDA 8-25x, P/E 10-50x ### Common Mistakes: mixing market cap/EV, inconsistent periods, hardcodes without comments ## Section 6 (Advanced): Dynamic Headers, Quartile Analysis, Industry Modifications ## Section 7: Workflow & Practical Tips 1. Set up structure (30min) → 2. Gather data (60-90min) → 3. Build formulas (30min) → 4. Add statistics (15min) → 5. Quality control (30min) → 6. Documentation (15min) ## Section 8: Example Template Layout (Simple ASCII art grid) ## Section 9: Industry-Specific Additions (Optional) SaaS, Financial Services, E-commerce, Healthcare, Manufacturing ## Section 10: Red Flags & Warning Signs Data quality, valuation, comparability issues ## Section 11: Formulas Reference Guide Statistical + Financial + Cross-Sheet + Formatting formulas ## Key Principles Summary (7 points) ## Output Checklist (~15 items)
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement). Use when asked to fill out model templates, complete existing model frameworks, populate financial models with data, complete a partially filled IS/BS/CF framework, or link integrated financial statements within an existing template structure. Triggers include requests to fill in, complete, or populate a 3-statement model template
Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model, including financial-model integrity checks like BS balance, cash tie-out, and logic sanity. Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this spreadsheet", "sanity check this", "debug model", "model check", "model won't balance", "something's off in my model", and "model review".
Clean up messy spreadsheet data — trim whitespace, fix inconsistent casing, convert numbers-stored-as-text, standardize dates, remove duplicates, and flag mixed-type columns. Use when data is messy, inconsistent, or needs prep before analysis. Triggers on "clean this data", "clean up this sheet", "normalize this data", "fix formatting", "dedupe", "standardize this column", and "this data is messy".
Real DCF (Discounted Cash Flow) model creation for equity valuation. Retrieves financial data from SEC filings and analyst reports, builds comprehensive cash flow projections with proper WACC calculations, performs sensitivity analysis, and outputs professional Excel models with executive summaries. Use when users need to value a company using DCF methodology, request intrinsic value analysis, or ask for detailed financial modeling with growth projections and terminal value calculations.
This skill should be used when completing LBO (Leveraged Buyout) model templates in Excel for private equity transactions, deal materials, or investment committee presentations. The skill fills in formulas, validates calculations, and ensures professional formatting standards that adapt to any template structure.
Framework for building competitive landscape decks — market positioning, competitor deep-dives, comparative analysis, strategic synthesis. Use when the user asks for a competitive landscape, competitor analysis, peer comparison, market positioning assessment, strategic review, or investment memo deck. Also triggers on "who are the competitors to X", "benchmark X against peers", "build a market map", or any request to systematically evaluate competitive dynamics across an industry.
Updates a presentation with new numbers — quarterly refreshes, earnings updates, comp rolls, rebased market data. Use whenever the user asks to "update the deck with Q4 numbers", "refresh the comps", "roll this forward", "swap in the new earnings", "change all the $485M to $512M", or any request to swap figures across an existing deck without rebuilding it.
Investment banking presentation quality checker. Reviews a pitch deck or client-ready presentation for (1) number consistency across slides, (2) data-narrative alignment, (3) language polish against IB standards, (4) visual and formatting QC. Use whenever the user asks to review, check, QC, proof, or do a final pass on a deck, pitch, or client materials — including requests like "check my numbers", "reconcile figures across slides", "is this client-ready", or "what am I missing before I send this out".