{"kind":"Skill","metadata":{"namespace":"community","name":"comps-analysis","version":"0.1.0"},"spec":{"description":"|","files":{"SKILL.md":"---\nname: comps-analysis\ndescription: |\n  Build institutional-grade comparable company analyses with operating metrics, valuation multiples, and statistical benchmarking in Excel/spreadsheet format.\n\n  **Perfect for:**\n  - Public company valuation (M\u0026A, investment analysis)\n  - Benchmarking performance vs. industry peers\n  - Pricing IPOs or funding rounds\n  - Identifying valuation outliers (over/under-valued)\n  - Supporting investment committee presentations\n  - Creating sector overview reports\n\n  **Not ideal for:**\n  - Private companies without comparable public peers\n  - Highly diversified conglomerates\n  - Distressed/bankrupt companies\n  - Pre-revenue startups\n  - Companies with unique business models\n---\n\n# Comparable Company Analysis\n\n## ⚠️ CRITICAL: Data Source Priority (READ FIRST)\n\n**ALWAYS follow this data source hierarchy:**\n\n1. **FIRST: Check for MCP data sources** - If S\u0026P Kensho MCP, FactSet MCP, or Daloopa MCP are available, use them exclusively for financial and trading information\n2. **DO NOT use web search** if the above MCP data sources are available\n3. **ONLY if MCPs are unavailable:** Then use Bloomberg Terminal, SEC EDGAR filings, or other institutional sources\n4. **NEVER use web search as a primary data source** - it lacks the accuracy, audit trails, and reliability required for institutional-grade analysis\n\n**Why this matters:** MCP sources provide verified, institutional-grade data with proper citations. Web search results can be outdated, inaccurate, or unreliable for financial analysis.\n\n---\n\n## Overview\nThis 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.\n\n**Reference Material \u0026 Contextualization:**\n\nAn example comparable company analysis is provided in `examples/comps_example.xlsx`. When using this or other example files in this skill directory, use them intelligently:\n\n**DO use examples for:**\n- Understanding structural hierarchy (how sections flow)\n- Grasping the level of rigor expected (statistical depth, documentation standards)\n- Learning principles (clear headers, transparent formulas, audit trails)\n\n**DO NOT use examples for:**\n- Exact reproduction of format or metrics\n- Copying layout without considering context\n- Applying the same visual style regardless of audience\n\n**ALWAYS ask yourself first:**\n1. **\"Do you have a preferred format or should I adapt the template style?\"**\n2. **\"Who is the audience?\"** (Investment committee, board presentation, quick reference, detailed memo)\n3. **\"What's the key question?\"** (Valuation, growth analysis, competitive positioning, efficiency)\n4. **\"What's the context?\"** (M\u0026A evaluation, investment decision, sector benchmarking, performance review)\n\n**Adapt based on specifics:**\n- **Industry context**: Big tech mega-caps need different metrics than emerging SaaS startups\n- **Sector-specific needs**: Add relevant metrics early (e.g., cloud ARR, enterprise customers, developer ecosystem for tech)\n- **Company familiarity**: Well-known companies may need less background, more focus on delta analysis\n- **Decision type**: M\u0026A requires different emphasis than ongoing portfolio monitoring\n\n**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.\n\nUser-provided examples and explicit preferences always take precedence over defaults.\n\n## Core Philosophy\n**\"Build the right structure first, then let the data tell the story.\"**\n\nStart 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.\n\n---\n\n## ⚠️ CRITICAL: Formulas Over Hardcodes + Step-by-Step Verification\n\n**Environment — Office JS vs Python:**\n- **If running inside Excel (Office Add-in / Office JS):** Use Office JS directly (`Excel.run(async (context) =\u003e {...})`). Write formulas via `range.formulas = [[\"=E7/C7\"]]`, not `range.values`. No separate recalc step — Excel handles it natively. Use `range.format.*` for colors/fonts.\n- **If generating a standalone .xlsx file:** Use Python/openpyxl. Write `cell.value = \"=E7/C7\"` (formula string).\n- Same principles either way — just translate the API calls.\n- **Office JS merged cell pitfall:** Do NOT call `.merge()` then set `.values` on the merged range (throws `InvalidArgument` — range still reports its pre-merge dimensions). Instead write the value to the top-left cell alone, then merge + format the full range:\n  ```js\n  ws.getRange(\"A1\").values = [[\"TECHNOLOGY — COMPARABLE COMPANY ANALYSIS\"]];\n  const hdr = ws.getRange(\"A1:H1\");\n  hdr.merge();\n  hdr.format.fill.color = \"#1F4E79\";\n  hdr.format.font.color = \"#FFFFFF\";\n  hdr.format.font.bold = true;\n  ```\n\n**Formulas, not hardcodes:**\n- Every derived value (margin, multiple, statistic) MUST be an Excel formula referencing input cells — never a pre-computed number pasted in\n- When using Python/openpyxl to build the sheet: write `cell.value = \"=E7/C7\"` (formula string), NOT `cell.value = 0.687` (computed result)\n- 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\n- Why: the model must update automatically when an input changes. A hardcoded margin is a silent bug waiting to happen.\n\n**Verify step-by-step with the user:**\n- After setting up the structure → show the user the header layout before filling data\n- After entering raw inputs → show the user the input block and confirm sources/periods before building formulas\n- After building operating metrics formulas → show the calculated margins and sanity-check with the user before moving to valuation\n- After building valuation multiples → show the multiples and confirm they look reasonable before adding statistics\n- Do NOT build the entire sheet end-to-end and then present it — catch errors early by confirming each section\n\n---\n\n## Section 1: Document Structure \u0026 Setup\n\n### Header Block (Rows 1-3)\n```\nRow 1: [ANALYSIS TITLE] - COMPARABLE COMPANY ANALYSIS\nRow 2: [List of Companies with Tickers] • [Company 1 (TICK1)] • [Company 2 (TICK2)] • [Company 3 (TICK3)]\nRow 3: As of [Period] | All figures in [USD Millions/Billions] except per-share amounts and ratios\n```\n\n**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.\n\n### Visual Convention Standards (OPTIONAL - User preferences and uploaded templates always override)\n\n**IMPORTANT: These are suggested defaults only. Always prioritize:**\n1. User's explicit formatting preferences\n2. Formatting from any uploaded template files\n3. Company/team style guides\n4. These defaults (only if no other guidance provided)\n\n**Suggested Font \u0026 Typography:**\n- **Font family**: Times New Roman (professional, readable, industry standard)\n- **Font size**: 11pt for data cells, 12pt for headers\n- **Bold text**: Section headers, company names, statistic labels\n\n**Default Color \u0026 Shading — Professional Blue/Grey Palette (minimal is better):**\n- **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.\n- **Section headers** (e.g., \"OPERATING STATISTICS \u0026 FINANCIAL METRICS\"):\n  - Dark blue background (`#1F4E79` or `#17365D` navy)\n  - White bold text\n  - Full row shading across all columns\n- **Column headers** (e.g., \"Company\", \"Revenue\", \"Margin\"):\n  - Light blue background (`#D9E1F2` or similar pale blue)\n  - Black bold text\n  - Centered alignment\n- **Data rows**:\n  - White background for company data\n  - Black text for formulas; blue text for hardcoded inputs\n- **Statistics rows** (Maximum, 75th Percentile, etc.):\n  - Light grey background (`#F2F2F2`)\n  - Black text, left-aligned labels\n- **That's the whole palette**: dark blue + light blue + light grey + white. Nothing else unless the user's template says otherwise.\n\n**Suggested Formatting Conventions:**\n- **Decimal precision**:\n  - Percentages: 1 decimal (12.3%)\n  - Multiples: 1 decimal (13.5x)\n  - Dollar amounts: No decimals, thousands separator (69,632)\n  - Margins shown as percentages: 1 decimal (68.7%)\n- **Borders**: No borders (clean, minimal appearance)\n- **Alignment**: All metrics center-aligned for clean, uniform appearance\n- **Cell dimensions**: All column widths should be uniform/even, all row heights should be consistent (creates clean, professional grid)\n\n**Note:** If the user provides a template file or specifies different formatting, use that instead.\n\n---\n\n## Section 2: Operating Statistics \u0026 Financial Metrics\n\n### Core Columns (Start with these)\n1. **Company** - Names with consistent formatting\n2. **Revenue** - Size metric (can be LTM, quarterly, or annual depending on context)\n3. **Revenue Growth** - Year-over-year percentage change\n4. **Gross Profit** - Revenue minus cost of goods sold\n5. **Gross Margin** - GP/Revenue (fundamental profitability)\n6. **EBITDA** - Earnings before interest, tax, depreciation, amortization\n7. **EBITDA Margin** - EBITDA/Revenue (operating efficiency)\n\n### Optional Additions (Choose based on industry/purpose)\n- **Quarterly vs LTM** - Include both if seasonality matters\n- **Free Cash Flow** - For capital-intensive or SaaS businesses\n- **FCF Margin** - FCF/Revenue (cash generation efficiency)\n- **Net Income** - For mature, profitable companies\n- **Operating Income** - For businesses with varying D\u0026A\n- **CapEx metrics** - For asset-heavy industries\n- **Rule of 40** - Specifically for SaaS (Growth % + Margin %)\n- **FCF Conversion** - For quality of earnings analysis (advanced)\n\n### Formula Examples (Using Row 7 as example)\n```excel\n// Core ratios - these are always calculated\nGross Margin (F7): =E7/C7\nEBITDA Margin (H7): =G7/C7\n\n// Optional ratios - include if relevant\nFCF Margin: =[FCF]/[Revenue]\nNet Margin: =[Net Income]/[Revenue]\nRule of 40: =[Growth %]+[FCF Margin %]\n```\n\n**Golden Rule:** Every ratio should be [Something] / [Revenue] or [Something] / [Something from this sheet]. Keep it simple.\n\n### Statistics Block (After company data)\n\n**CRITICAL: Add statistics formulas for all comparable metrics (ratios, margins, growth rates, multiples).**\n\n```\n[Leave one blank row for visual separation]\n- Maximum: =MAX(B7:B9)\n- 75th Percentile: =QUARTILE(B7:B9,3)\n- Median: =MEDIAN(B7:B9)\n- 25th Percentile: =QUARTILE(B7:B9,1)\n- Minimum: =MIN(B7:B9)\n```\n\n**Columns that NEED statistics (comparable metrics):**\n- Revenue Growth %, Gross Margin %, EBITDA Margin %, EPS\n- EV/Revenue, EV/EBITDA, P/E, Dividend Yield %, Beta\n\n**Columns that DON'T need statistics (size metrics):**\n- Revenue, EBITDA, Net Income (absolute size varies by company scale)\n- Market Cap, Enterprise Value (not comparable across different-sized companies)\n\n**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.\n\n**Why quartiles matter:** They show distribution, not just average. A 75th percentile multiple tells you what \"premium\" companies trade at.\n\n---\n\n## Section 3: Valuation Multiples \u0026 Investment Metrics\n\n### Core Valuation Columns (Start with these)\n1. **Company** - Same order as operating section\n2. **Market Cap** - Current market valuation\n3. **Enterprise Value** - Market Cap ± Net Debt/Cash\n4. **EV/Revenue** - How much market pays per dollar of sales\n5. **EV/EBITDA** - How much market pays per dollar of earnings\n6. **P/E Ratio** - Price relative to net earnings\n\n### Optional Valuation Metrics (Choose based on context)\n- **FCF Yield** - FCF/Market Cap (for cash-focused analysis)\n- **PEG Ratio** - P/E/Growth Rate (for growth companies)\n- **Price/Book** - Market value vs. book value (for asset-heavy businesses)\n- **ROE/ROA** - Return metrics (for profitability comparison)\n- **Revenue/EBITDA CAGR** - Historical growth rates (for trend analysis)\n- **Asset Turnover** - Revenue/Assets (for operational efficiency)\n- **Debt/Equity** - Leverage (for capital structure analysis)\n\n**Key Principle:** Include 3-5 core multiples that matter for your industry. Don't include every possible metric just because you can.\n\n### Formula Examples\n```excel\n// Core multiples - always include these\nEV/Revenue: =[Enterprise Value]/[LTM Revenue]\nEV/EBITDA: =[Enterprise Value]/[LTM EBITDA]\nP/E Ratio: =[Market Cap]/[Net Income]\n\n// Optional multiples - include if data available\nFCF Yield: =[LTM FCF]/[Market Cap]\nPEG Ratio: =[P/E]/[Growth Rate %]\n```\n\n### Cross-Reference Rule\n**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.\n\n### Statistics Block\nSame 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.\n\n---\n\n## Section 4: Notes \u0026 Methodology Documentation\n\n### Required Components\n\n**Data Sources \u0026 Quality:**\n- Where did the data come from? (S\u0026P Kensho MCP, FactSet MCP, Daloopa MCP, Bloomberg, SEC filings)\n- What period does it cover? (Q4 2024, audited figures)\n- How was it verified? (Cross-checked against 10-K/10-Q)\n- Note: Prioritize MCP data sources (S\u0026P Kensho, FactSet, Daloopa) if available for better accuracy and traceability\n\n**Key Definitions:**\n- EBITDA calculation method (Gross Profit + D\u0026A, or Operating Income + D\u0026A)\n- Free Cash Flow formula (Operating CF - CapEx)\n- Special metrics explained (Rule of 40, FCF Conversion)\n- Time period definitions (LTM, CAGR calculation periods)\n\n**Valuation Methodology:**\n- How was Enterprise Value calculated? (Market Cap + Net Debt)\n- What growth rates were used? (Historical CAGR, forward estimates)\n- Any adjustments made? (One-time items excluded, normalized margins)\n\n**Analysis Framework:**\n- What's the investment thesis? (Cloud/SaaS efficiency)\n- What metrics matter most? (Cash generation, capital efficiency)\n- How should readers interpret the statistics? (Quartiles provide context)\n\n---\n\n## Section 5: Choosing the Right Metrics (Decision Framework)\n\n### Start with \"What question am I answering?\"\n\n**\"Which company is undervalued?\"**\n→ Focus on: EV/Revenue, EV/EBITDA, P/E, Market Cap\n→ Skip: Operational details, growth metrics\n\n**\"Which company is most efficient?\"**\n→ Focus on: Gross Margin, EBITDA Margin, FCF Margin, Asset Turnover\n→ Skip: Size metrics, absolute dollar amounts\n\n**\"Which company is growing fastest?\"**\n→ Focus on: Revenue Growth %, EBITDA CAGR, User/Customer Growth\n→ Skip: Margin metrics, leverage ratios\n\n**\"Which is the best cash generator?\"**\n→ Focus on: FCF, FCF Margin, FCF Conversion, CapEx intensity\n→ Skip: EBITDA, P/E ratios\n\n### Industry-Specific Metric Selection\n\n**Software/SaaS:**\nMust have: Revenue Growth, Gross Margin, Rule of 40\nOptional: ARR, Net Dollar Retention, CAC Payback\nSkip: Asset Turnover, Inventory metrics\n\n**Manufacturing/Industrials:**\nMust have: EBITDA Margin, Asset Turnover, CapEx/Revenue\nOptional: ROA, Inventory Turns, Backlog\nSkip: Rule of 40, SaaS metrics\n\n**Financial Services:**\nMust have: ROE, ROA, Efficiency Ratio, P/E\nOptional: Net Interest Margin, Loan Loss Reserves\nSkip: Gross Margin, EBITDA (not meaningful for banks)\n\n**Retail/E-commerce:**\nMust have: Revenue Growth, Gross Margin, Inventory Turnover\nOptional: Same-Store Sales, Customer Acquisition Cost\nSkip: Heavy R\u0026D or CapEx metrics\n\n### The \"5-10 Rule\"\n\n**5 operating metrics** - Revenue, Growth, 2-3 margins/efficiency metrics\n**5 valuation metrics** - Market Cap, EV, 3 multiples\n**= 10 total columns** - Enough to tell the story, not so many you lose the thread\n\nIf you have more than 15 metrics, you're probably including noise. Edit ruthlessly.\n\n---\n\n## Section 6: Best Practices \u0026 Quality Checks\n\n### Before You Start\n1. **Define the peer group** - Companies must be truly comparable (similar business model, scale, geography)\n2. **Choose the right period** - LTM smooths seasonality; quarterly shows trends\n3. **Standardize units upfront** - Millions vs. billions decision affects everything\n4. **Map data sources** - Know where each number comes from\n\n### As You Build\n1. **Input all raw data first** - Complete the blue text before writing formulas\n2. **Add cell comments to ALL hard-coded inputs** - Right-click cell → Insert Comment → Document source OR assumption\n\n   **For sourced data, cite exactly where it came from:**\n   - Example: \"Bloomberg Terminal - MSFT Equity DES, accessed 2024-10-02\"\n   - Example: \"Q4 2024 10-K filing, page 42, line item 'Total Revenue'\"\n   - Example: \"FactSet consensus estimate as of 2024-10-02\"\n   - **Include hyperlinks when possible**: Right-click cell → Link → paste URL to SEC filing, data source, or report\n\n   **For assumptions, explain the reasoning:**\n   - Example: \"Assumed 15% EBITDA margin based on peer median, company does not disclose\"\n   - Example: \"Estimated Enterprise Value as Market Cap + $50M net debt (from Q3 balance sheet, Q4 not yet available)\"\n   - Example: \"Forward P/E based on street consensus EPS of $3.45 (average of 12 analyst estimates)\"\n\n   **Why this matters**: Enables audit trails, data verification, assumption transparency, and future updates\n3. **Build formulas row by row** - Test each calculation before moving on\n4. **Use absolute references for headers** - $C$6 locks the header row\n5. **Format consistently** - Percentages as percentages, not decimals\n6. **Add conditional formatting** - Highlight outliers automatically\n\n### Sanity Checks\n- **Margin test**: Gross margin \u003e EBITDA margin \u003e Net margin (always true by definition)\n- **Multiple reasonableness**: \n  - EV/Revenue: typically 0.5-20x (varies widely by industry)\n  - EV/EBITDA: typically 8-25x (fairly consistent across industries)\n  - P/E: typically 10-50x (depends on growth rate)\n- **Growth-multiple correlation**: Higher growth usually means higher multiples\n- **Size-efficiency trade-off**: Larger companies often have better margins (scale benefits)\n\n### Common Mistakes to Avoid\n❌ Mixing market cap and enterprise value in formulas\n❌ Using different time periods for numerator and denominator (LTM vs quarterly)\n❌ Hardcoding numbers into formulas instead of cell references\n❌ **Hard-coded inputs without cell comments citing the source OR explaining the assumption**\n❌ Missing hyperlinks to SEC filings or data sources when available\n❌ Including too many metrics without clear purpose\n❌ Including non-comparable companies (different business models)\n❌ Using outdated data without disclosure\n❌ Calculating averages of percentages incorrectly (should be median)\n\n---\n\n## Section 6: Advanced Features\n\n### Dynamic Headers\nFor columns showing calculations, use clear unit labels:\n```\nRevenue Growth (YoY) % | EBITDA Margin | FCF Margin | Rule of 40\n```\n\n### Quartile Analysis Benefits\nInstead of just mean/median, quartiles show:\n- **75th percentile** = \"Premium\" companies trade here\n- **Median** = Typical market valuation\n- **25th percentile** = \"Discount\" territory\n\nThis helps answer: \"Is our target company trading rich or cheap vs. peers?\"\n\n### Industry-Specific Modifications\n\n**Software/SaaS:**\n- Add: ARR, Net Dollar Retention, CAC Payback Period\n- Emphasize: Rule of 40, FCF margins, gross margins \u003e70%\n\n**Healthcare:**\n- Add: R\u0026D/Revenue, Pipeline value, Regulatory status\n- Emphasize: EBITDA margins, growth rates, reimbursement risk\n\n**Industrials:**\n- Add: Backlog, Order book trends, Geographic mix\n- Emphasize: ROIC, asset turnover, cyclical adjustments\n\n**Consumer:**\n- Add: Same-store sales, Customer acquisition cost, Brand value\n- Emphasize: Revenue growth, gross margins, inventory turns\n\n---\n\n## Section 7: Workflow \u0026 Practical Tips\n\n### Step-by-Step Process\n1. **Set up structure** (30 minutes)\n   - Create all headers\n   - Format cells (blue for inputs, black for formulas)\n   - Lock in units and date references\n\n2. **Gather data** (60-90 minutes)\n   - Pull from primary sources (S\u0026P Kensho MCP, FactSet MCP, Daloopa MCP if available; otherwise Bloomberg, SEC)\n   - Input all raw numbers in blue\n   - Document sources in notes section\n\n3. **Build formulas** (30 minutes)\n   - Start with simple ratios (margins)\n   - Progress to multiples (EV/Revenue)\n   - Add cross-checks (do margins make sense?)\n\n4. **Add statistics** (15 minutes)\n   - Copy formula structure for all columns\n   - Verify ranges are correct (B7:B9, not B7:B10)\n   - Check quartile logic\n\n5. **Quality control** (30 minutes)\n   - Run sanity checks\n   - Verify formula references\n   - Check for #DIV/0! or #REF! errors\n   - Compare against known benchmarks\n\n6. **Documentation** (15 minutes)\n   - Complete notes section\n   - Add data sources\n   - Define methodologies\n   - Date-stamp the analysis\n\n### Pro Tips\n- **Save templates**: Build once, reuse forever\n- **Color-code outliers**: Conditional formatting for values \u003e2 standard deviations\n- **Link to source files**: Hyperlink to Bloomberg screenshots or SEC filings\n- **Version control**: Save as \"Comps_v1_2024-12-15\" with clear dating\n- **Collaborative reviews**: Have someone else check your formulas\n\n### Excel Formatting Checklist (Optional - adapt to user preferences)\n- [ ] Font set to user's preferred style (default: Times New Roman, 11pt data, 12pt headers)\n- [ ] Section headers formatted per user's template (default: dark blue #17365D with white bold text)\n- [ ] Column headers formatted per user's template (default: light blue/gray #D9E2F3 with black bold text)\n- [ ] Statistics rows formatted per user's template (default: light gray #F2F2F2)\n- [ ] No borders applied (clean, minimal appearance)\n- [ ] **Column widths set to uniform/even width** (creates clean, professional appearance)\n- [ ] **Row heights set to consistent height** (typically 20-25pt for data rows)\n- [ ] Numbers formatted with proper decimal precision and thousands separators\n- [ ] **All metrics center-aligned** for clean, uniform appearance\n- [ ] **One blank row for separation between company data and statistics rows**\n- [ ] **No separate \"SECTOR STATISTICS\" or \"VALUATION STATISTICS\" header rows**\n- [ ] **Every hard-coded input cell has a comment with either: (1) exact data source, OR (2) assumption explanation**\n- [ ] **Hyperlinks added to cells where applicable** (SEC filings, data provider pages, reports)\n\n---\n\n## Section 8: Example Template Layout\n\n**Simple Version (Start here):**\n```\n┌─────────────────────────────────────────────────────────────┐\n│ TECHNOLOGY - COMPARABLE COMPANY ANALYSIS                    │\n│ Microsoft • Alphabet • Amazon                               │\n│ As of Q4 2024 | All figures in USD Millions                │\n├─────────────────────────────────────────────────────────────┤\n│ OPERATING METRICS                                           │\n├──────────┬─────────┬─────────┬──────────┬──────────────────┤\n│ Company  │ Revenue │ Growth  │ Gross    │ EBITDA  │ EBITDA │\n│          │ (LTM)   │ (YoY)   │ Margin   │ (LTM)   │ Margin │\n├──────────┼─────────┼─────────┼──────────┼─────────┼────────┤\n│ MSFT     │ 261,400 │ 12.3%   │ 68.7%    │ 205,100 │ 78.4%  │\n│ GOOGL    │ 349,800 │ 11.8%   │ 57.9%    │ 239,300 │ 68.4%  │\n│ AMZN     │ 638,100 │ 10.5%   │ 47.3%    │ 152,600 │ 23.9%  │\n│          │         │         │          │         │        │ [blank row]\n│ Median   │ =MEDIAN │ =MEDIAN │ =MEDIAN  │ =MEDIAN │=MEDIAN │\n│ 75th %   │ =QUART  │ =QUART  │ =QUART   │ =QUART  │=QUART  │\n│ 25th %   │ =QUART  │ =QUART  │ =QUART   │ =QUART  │=QUART  │\n├─────────────────────────────────────────────────────────────┤\n│ VALUATION MULTIPLES                                         │\n├──────────┬──────────┬──────────┬──────────┬────────────────┤\n│ Company  │ Mkt Cap  │ EV       │ EV/Rev   │ EV/EBITDA │ P/E│\n├──────────┼──────────┼──────────┼──────────┼───────────┼────┤\n│ MSFT     │3,550,000 │3,530,000 │ 13.5x    │ 17.2x     │36.0│\n│ GOOGL    │2,030,000 │1,960,000 │  5.6x    │  8.2x     │24.5│\n│ AMZN     │2,226,000 │2,320,000 │  3.6x    │ 15.2x     │58.3│\n│          │          │          │          │           │    │ [blank row]\n│ Median   │ =MEDIAN  │ =MEDIAN  │ =MEDIAN  │ =MEDIAN   │=MED│\n│ 75th %   │ =QUART   │ =QUART   │ =QUART   │ =QUART    │=QRT│\n│ 25th %   │ =QUART   │ =QUART   │ =QUART   │ =QUART    │=QRT│\n└──────────┴──────────┴──────────┴──────────┴───────────┴────┘\n```\n\n**Add complexity only when needed:**\n- Include quarterly AND LTM if seasonality matters\n- Add FCF metrics if cash generation is key story\n- Include industry-specific metrics (Rule of 40 for SaaS, etc.)\n- Add more statistics rows if you have \u003e5 companies\n\n---\n\n## Section 9: Industry-Specific Additions (Optional)\n\nOnly add these if they're critical to your analysis. Most comps work fine with just core metrics.\n\n**Software/SaaS:**\nAdd if relevant: ARR, Net Dollar Retention, Rule of 40\n\n**Financial Services:**\nAdd if relevant: ROE, Net Interest Margin, Efficiency Ratio\n\n**E-commerce:**\nAdd if relevant: GMV, Take Rate, Active Buyers\n\n**Healthcare:**\nAdd if relevant: R\u0026D/Revenue, Pipeline Value, Patent Timeline\n\n**Manufacturing:**\nAdd if relevant: Asset Turnover, Inventory Turns, Backlog\n\n---\n\n## Section 10: Red Flags \u0026 Warning Signs\n\n### Data Quality Issues\n🚩 Inconsistent time periods (mixing quarterly and annual)  \n🚩 Missing data without explanation  \n🚩 Significant differences between data sources (\u003e10% variance)\n\n### Valuation Red Flags\n🚩 Negative EBITDA companies being valued on EBITDA multiples (use revenue multiples instead)  \n🚩 P/E ratios \u003e100x without hypergrowth story  \n🚩 Margins that don't make sense for the industry\n\n### Comparability Issues\n🚩 Different fiscal year ends (causes timing problems)  \n🚩ixing pure-play and conglomerates  \n🚩 Materially different business models labeled as \"comps\"\n\n**When in doubt, exclude the company.** Better to have 3 perfect comps than 6 questionable ones.\n\n---\n\n## Section 11: Formulas Reference Guide\n\n### Essential Excel Formulas\n```excel\n// Statistical Functions\n=AVERAGE(range)          // Simple mean\n=MEDIAN(range)           // Middle value\n=QUARTILE(range, 1)      // 25th percentile\n=QUARTILE(range, 3)      // 75th percentile\n=MAX(range)              // Maximum value\n=MIN(range)              // Minimum value\n=STDEV.P(range)          // Standard deviation\n\n// Financial Calculations\n=B7/C7                   // Simple ratio (Margin)\n=SUM(B7:B9)/3            // Average of multiple companies\n=IF(B7\u003e0, C7/B7, \"N/A\")  // Conditional calculation\n=IFERROR(C7/D7, 0)       // Handle divide by zero\n\n// Cross-Sheet References\n='Sheet1'!B7             // Reference another sheet\n=VLOOKUP(A7, Table1, 2)  // Lookup from data table\n=INDEX(MATCH())          // Advanced lookup\n\n// Formatting\n=TEXT(B7, \"0.0%\")        // Format as percentage\n=TEXT(C7, \"#,##0\")       // Thousands separator\n```\n\n### Common Ratio Formulas\n```excel\nGross Margin = Gross Profit / Revenue\nEBITDA Margin = EBITDA / Revenue\nFCF Margin = Free Cash Flow / Revenue\nFCF Conversion = FCF / Operating Cash Flow\nROE = Net Income / Shareholders' Equity\nROA = Net Income / Total Assets\nAsset Turnover = Revenue / Total Assets\nDebt/Equity = Total Debt / Shareholders' Equity\n```\n\n---\n\n## Key Principles Summary\n\n1. **Structure drives insight** - Right headers force right thinking\n2. **Less is more** - 5-10 metrics that matter beat 20 that don't\n3. **Choose metrics for your question** - Valuation analysis ≠ efficiency analysis\n4. **Statistics show patterns** - Median/quartiles reveal more than average\n5. **Transparency beats complexity** - Simple formulas everyone understands\n6. **Comparability is king** - Better to exclude than force a bad comp\n7. **Document your choices** - Explain which metrics and why in notes section\n\n---\n\n## Output Checklist\n\nBefore delivering a comp analysis, verify:\n- [ ] All companies are truly comparable\n- [ ] Data is from consistent time periods\n- [ ] Units are clearly labeled (millions/billions)\n- [ ] Formulas reference cells, not hardcoded values\n- [ ] **All hard-coded input cells have comments with either: (1) exact data source with citation, OR (2) clear assumption with explanation**\n- [ ] **Hyperlinks added where relevant** (SEC EDGAR filings, Bloomberg pages, research reports)\n- [ ] Statistics include at least 5 metrics (Max, 75th, Med, 25th, Min)\n- [ ] Notes section documents sources and methodology\n- [ ] Visual formatting follows conventions (blue = input, black = formula)\n- [ ] Sanity checks pass (margins logical, multiples reasonable)\n- [ ] Date stamp is current (\"As of [Date]\")\n- [ ] Formula auditing shows no errors (#DIV/0!, #REF!, #N/A)\n\n---\n\n## Continuous Improvement\n\nAfter completing a comp analysis, ask:\n1. Did the statistics reveal unexpected insights?\n2. Were there any data gaps that limited analysis?\n3. Did stakeholders ask for metrics you didn't include?\n4. How long did it take vs. how long should it take?\n5. What would make this more useful next time?\n\nThe best comp analyses evolve with each iteration. Save templates, learn from feedback, and refine the structure based on what decision-makers actually use.\n"},"import":{"commit_sha":"9affc6e683bbaf66361058117027cf5a50bf1861","imported_at":"2026-05-18T20:09:40Z","license_text":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","owner":"anthropics","repo":"anthropics/financial-services","source_url":"https://github.com/anthropics/financial-services/tree/9affc6e683bbaf66361058117027cf5a50bf1861/plugins/agent-plugins/market-researcher/skills/comps-analysis"}},"content_hash":[183,151,1,92,86,93,22,86,166,106,98,85,5,131,180,68,26,196,177,43,28,173,186,20,27,141,127,171,77,243,213,51],"trust_level":"unsigned","yanked":false}
