dcf-model

Builds DCF valuation models in Excel with WACC calculations, scenario analysis, and sensitivity tables.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/hkw2028/toy-project --skill dcf-model-hkw2028
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dcf-model
Source: https://github.com/hkw2028/toy-project/tree/main/.agents/skills/dcf-model
Command: npx skills add https://github.com/hkw2028/toy-project --skill dcf-model-hkw2028

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, requests, and includes scripts (resource) components.

What problem does it solve? Building a discounted cash flow valuation model by hand is slow and error-prone: sourcing financial data, computing WACC, projecting free cash flows, and wiring hundreds of live Excel formulas. This Skill automates the full workflow and produces an auditable, formula-driven Excel model. ## Core Features & Use Cases - End-to-end DCF construction: Retrieves financial data from SEC filings, analyst reports, MCP servers, or user inputs, then builds revenue projections, FCF schedules, WACC via CAPM, terminal value, and an equity value bridge. - Scenario and sensitivity analysis: Creates Bear/Base/Bull assumption blocks with a case selector, plus three 5x5 sensitivity tables (WACC vs terminal growth, revenue growth vs EBIT margin, beta vs risk-free rate) where every cell recalculates the full DCF. - Validation and quality control: Ships a validate_dcf.py script that checks for formula errors (#REF!, #DIV/0!), verifies terminal growth is below WACC, and confirms terminal value proportion of enterprise value. - Use Case: Ask for an intrinsic value analysis of a public company; the Skill gathers data, confirms assumptions with you at each stage, and delivers a professional .xlsx model with sourced cell comments and zero formula errors. ## Quick Start Build a DCF valuation model for Apple (AAPL) using consensus growth estimates and a 5-year projection period.

Frequently Asked Questions about dcf-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a DCF model in Excel with Python?

Use openpyxl to write live Excel formulas (never hardcoded computed values) for revenue projections, FCF, WACC discounting, and terminal value. After generation, run a recalculation script to verify zero formula errors before delivery.

How is WACC calculated in a DCF valuation?

WACC combines cost of equity (risk-free rate plus beta times equity risk premium via CAPM) with after-tax cost of debt, weighted by market value of equity and net debt. Typical ranges are 7-9% for stable large caps and 12-15% for high-growth companies.

Can this DCF skill work inside Excel with Office JS?

Yes. In an Office Add-in environment it uses Office JS APIs (range.formulas, range.format) instead of openpyxl, with no separate recalculation step since Excel computes natively. The same formulas-over-hardcodes rule applies in both environments.

Why does my DCF model show #REF! or #DIV/0! errors?

#REF! errors usually come from writing formulas before locking the row layout, so inserted headers shift references. #DIV/0! comes from dividing by empty cells; wrap divisions in IF guards. The included validate_dcf.py script locates all such errors.

What are the limitations of DCF valuation models?

DCF results are highly sensitive to terminal assumptions; terminal value typically represents 50-70% of enterprise value, and terminal growth must stay below WACC or the value becomes infinite. Unrealistic growth or margin assumptions produce misleading implied prices.