dcf-model
БесплатноЗапускает вложенные скриптыНе проверенReal DCF (Discounted Cash Flow) model creation for equity valuation. Retrieves financial data from SEC filings and analyst reports, builds comprehensive cash…
Об этом скилле
DCF Model Builder
Overview
Institutional-quality DCF models for equity valuation following investment banking standards. Each analysis produces a detailed Excel model (with sensitivity analysis at bottom of DCF sheet).
Preflight: Dependency Check
Before starting, verify required libraries and tools are installed and install any that are missing.
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 and scripts/validate_dcf.py need these tools to verify sensitivity tables and TV-as-%-of-EV sanity checks.
Scripts
scripts/recalc.py— Force formula recalculation via headless LibreOffice. Run after building:python scripts/recalc.py <model.xlsx>scripts/validate_dcf.py— DCF-specific validation (terminal growth < WACC, WACC in 5-20% range, TV as 40-80% of EV, formula errors). Run after recalc:python scripts/validate_dcf.py <model.xlsx>
Tools
- Default to using all information provided by the user and MCP servers available for data sourcing.
Critical Constraints - Read These First
Environment: Office JS vs Python/openpyxl
- Office JS: Use range.formulas = "=D19*(1+$B$8)" — never range.values for derived cells
- Python/openpyxl: Write ws["D15"] = "=D14*(1+Assumptions!$B$5)", then run recalc.py
- Office JS merged cell pitfall: Write value to top-left cell alone, then merge + format
Formulas Over Hardcodes (NON-NEGOTIABLE)
- Every projection/margin/discount factor/PV/sensitivity cell MUST be live Excel formula
- Only permitted hardcodes: (1) raw historical inputs, (2) assumption drivers, (3) current market data
- "If you catch yourself computing something in Python and writing the result — STOP"
Verify Step-by-Step With the User (DO NOT build end-to-end)
- After data retrieval → confirm raw inputs
- After revenue projections → confirm top line + growth rates
- After FCF build → confirm FCF schedule logic
- After WACC → confirm calculation + inputs
- After terminal value + PV → confirm equity bridge
- After sensitivity tables → final review
Sensitivity Tables
- Use ODD number of rows/columns (5×5 or 7×7)
- Center cell = base case (must equal model's actual implied share price)
- Highlight center cell with #BDD7EE + bold
- Populate ALL cells with full DCF recalculation formulas (75 total for 3 tables)
- NO placeholder text, NO linear approximations
Cell Comments
- Add AS each hardcoded value is created
- Format: "Source: [System/Document], [Date], [Reference], [URL]"
- Never defer to end or write "TODO: add source"
Model Layout Planning
- Define ALL section row positions BEFORE writing formulas
- Write ALL headers → section dividers → THEN formulas
DCF Process Workflow
Step 1: Data Retrieval and Validation
- Priority: MCP Servers → User-Provided Data → Web Search/Fetch
- Validation: net debt vs net cash, diluted shares, historical margins, growth rates, tax rate
Step 2: Historical Analysis (3-5 years)
- Revenue growth trends (CAGR), margin progression, capital intensity, WC efficiency, return metrics
Step 3: Build Revenue Projections
- Revenue(Year N) = Revenue(Year N-1) × (1 + Growth Rate)
- Three-scenario approach: Bear/Base/Bull
- Growth rates: Year 1-2 higher → Year 3-4 moderate → Year 5+ approaching terminal
Step 4: Operating Expense Modeling
- S&M, R&D, G&A — ALL percentages based on REVENUE, not gross profit
- Model operating leverage: % should decline as revenue scales
Step 5: Free Cash Flow Calculation
- EBIT → (-)Taxes → NOPAT → (+)D&A → (-)CapEx → (-)ΔNWC → Unlevered FCF
Step 6: Cost of Capital (WACC) Research
- CAPM: Cost of Equity = Risk-Free Rate + Beta × ERP
- After-Tax Cost of Debt = Pre-Tax × (1 - Tax Rate)
- WACC = (Ke × We) + (Kd × Wd)
Step 7: Discount Rate Application
- Mid-year convention: periods 0.5, 1.5, 2.5...
- Discount Factor = 1 / (1 + WACC)^Period
Step 8: Terminal Value Calculation
- Perpetuity Growth: TV = Terminal FCF / (WACC - g)
- Exit Multiple: TV = Final Year EBITDA × Exit Multiple
- Sanity check: TV should be 50-70% of EV
Step 9: Enterprise to Equity Value Bridge
- Sum PV FCFs + PV Terminal Value = EV
- EV - Net Debt = Equity Value
- Equity Value / Diluted Shares = Implied Price per Share
Step 10: Sensitivity Analysis
Three tables: (1) WACC vs Terminal Growth, (2) Revenue Growth vs EBIT Margin, (3) Beta vs Risk-Free Rate
section
- Scenario Block Selection: INDEX/consolidation column approach (not scattered IF statements)
- Revenue Projection: Reference consolidation column
- FCF Formula: Use consolidation columns with INDEX
- Cell
Установить dcf-model в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dcf-model?
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.
Как установить скилл dcf-model?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dcf-model запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic