Skip to content
Skillpedia
Analysis & spreadsheets260k Β· #492

dcf-model

What it does

It builds a discounted cash flow model in Excel that projects cash flows and estimates equity value, with a sensitivity table. It is for analysts and finance professionals valuing a business.

When to use it

  • βœ“When you want to estimate what a company is worth from its projected cash flows.
  • βœ“When you need a sensitivity table showing how value changes with key assumptions.
  • βœ“When you want a DCF workbook built to a banking-style standard.

Skill link

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/dcf-model/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/dcf-model/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œBuild a DCF model for this company using the financials I attached, with a sensitivity table on WACC and terminal growth.”

5 new skills a week. 1 minute to read.

How it works

The agent gathers inputs from your files and data tools, then writes every projection and discount step as an Excel formula. It recalculates the workbook and places the sensitivity analysis at the bottom of the DCF sheet.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Environment

This skill assumes headless openpyxl β€” you are producing an .xlsx file on disk. Follow the excel-author skill's conventions for cell coloring, formulas, named ranges, and sensitivity tables. Recalculate before delivery: python /path/to/excel-author/scripts/recalc.py ./out/model.xlsx.

DCF Model Builder

Overview

This skill creates institutional-quality DCF models for equity valuation following investment banking standards. Each analysis produces a detailed Excel model (with sensitivity analysis included at the bottom of the DCF sheet).

Tools

  • Default to using all of the information provided by the user and MCP servers available for data sourcing.

Critical Constraints - Read These First

These constraints apply throughout all DCF model building. Review before starting:

Formulas Over Hardcodes (NON-NEGOTIABLE):

  • Every projection, margin, discount factor, PV, and sensitivity cell MUST be a live Excel formula β€” never a value computed in Python and written as a number
  • When using openpyxl: ws["D20"] = "=D19*(1+$B$8)" is correct; ws["D20"] = calculated_revenue is WRONG
  • The only hardcoded numbers permitted are: (1) raw historical inputs, (2) assumption drivers (growth rates, WACC inputs, terminal g), (3) current market data (share price, debt balance)
  • If you catch yourself computing something in Python and writing the result β€” STOP. The model must flex when the user changes an assumption.

Verify Step-by-Step With the User (DO NOT build end-to-end):

  • After data retrieval β†’ show the user the raw inputs block (revenue, margins, shares, net debt) and confirm before projecting
  • After revenue projections β†’ show the projected top line and growth rates, confirm before building margin build
  • After FCF build β†’ show the full FCF schedule, confirm logic before computing WACC
  • After WACC β†’ show the calculation and inputs, confirm before discounting
  • After terminal value + PV β†’ show the equity bridge (EV β†’ equity value β†’ per share), confirm before sensitivity tables
  • Catch errors at each stage β€” a wrong margin assumption discovered after sensitivity tables are built means rebuilding everything downstream

Sensitivity Tables:

  • Use an ODD number of rows and columns (standard: 5Γ—5, sometimes 7Γ—7) β€” this guarantees a true center cell
  • Center cell = base case. Build the axis values so the middle row header and middle column header exactly equal the model's actual assumptions (e.g., if base WACC = 9.0%, the middle row is 9.0%; if terminal g = 3.0%, the middle column is 3.0%). The center cell's output must therefore equal the model's actual implied share price β€” this is the sanity check that the table is built correctly.
  • Highlight the center cell with the medium-blue fill (#BDD7EE) + bold font so it's immediately visible which cell is the base case.
  • Populate ALL cells (typically 3 tables Γ— 25 cells = 75) with full DCF recalculation formulas
  • Use openpyxl loops to write formulas programmatically
  • NO placeholder text, NO linear approximations, NO manual steps required
  • Each cell must recalculate full DCF for that assumption combination

Cell Comments:

  • Add cell comments AS each hardcoded value is created
  • Format: "Source: [System/Document], [Date], [Reference], [URL if applicable]"
  • Every blue input must have a comment before moving to next section
  • Do not defer to end or write "TODO: add source"

Model Layout Planning:

  • Define ALL section row positions BEFORE writing any formulas
  • Write ALL headers and labels first
  • Write ALL section dividers and blank rows second
  • THEN write formulas using the locked row positions
  • Test formulas immediately after creation

Formula Recalculation:

  • Run python recalc.py model.xlsx 30 before delivery
  • Fix ALL errors until status is "success"
  • Zero formula errors required (#REF!, #DIV/0!, #VALUE!, etc.)

Scenario Blocks:

  • Create separate blocks for Bear/Base/Bull cases
  • Show assumptions horizontally across projection years within each block
  • Use IF formulas: =IF($B$6=1,[Bear cell],IF($B$6=2,[Base cell],[Bull cell]))
  • Verify formulas reference correct scenario block cells

DCF Process Workflow

Step 1: Data Retrieval and Validation

Fetch data from MCP servers, user provided data, and the web.

Data Sources Priority:

  1. MCP Servers (if configured) - Structured financial data from providers like Daloopa
  2. User-Provided Data - Historical financials from their research
FAQ

Does every number have to be a formula?

Yes. The skill says projections, discount factors, and sensitivity cells must be live formulas, not computed values.

Which numbers can be typed in directly?

Only raw historical inputs, assumption drivers such as growth rates, and current market data.

Where is the sensitivity analysis?

At the bottom of the DCF sheet.

Details

Original description by the author

Build discounted cash flow valuation workbooks in Excel.

repo: NousResearch/hermes-agent

Popularity

GitHub stars
260k
Ranking position
#492
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills