dcf-model

dcf-model is a skill for Claude Code, Codex from ginlix-ai/LangAlpha. It costs 20 tokens per session (11,075 once invoked), scanned A, original, Apache-2.0.

A tool for building a discounted cash flow (DCF) valuation, which estimates a company's value from its expected future cash flows. It includes assumptions such as the discount rate, terminal value, and sensitivity tables.

In plain words
What is it for?
Use it to create Excel DCF models for equity valuation, including free-cash-flow projections, WACC, terminal value, sensitivity analysis, and source comments for hardcoded values.
Why use it?
It organizes the calculations and supporting data needed to turn forecasts into a company valuation and test how the result changes when assumptions change.

Skill for Claude CodeCodex

About the project

LangAlpha is an agent workspace for researching financial markets and supporting investment decisions through persistent research, news analysis, and parallel subagents. It is for investors who want to develop and update trading theses over time, including generating long-short pair-trade ideas. The catalogue entries provide the skills, instructions, MCP servers, and plugin that make up its agent workflow.

ginlix-ai/LangAlpha · 1,722 stars · on GitHub · langalpha.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ginlix-ai/langalpha/dcf-model
Any agent
npx skills add ginlix-ai/LangAlpha --skill dcf-model
Clone the repo
git clone --depth 1 https://github.com/ginlix-ai/LangAlpha

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dcf-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/ginlix-ai/langalpha/dcf-model.svg)](https://agentmods.dev/skills/ginlix-ai/langalpha/dcf-model)
Your own site
<a href="https://agentmods.dev/skills/ginlix-ai/langalpha/dcf-model"><img src="https://agentmods.dev/badge/skills/ginlix-ai/langalpha/dcf-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.11075
Opus 5 $0.00010 $0.05538
Sonnet 5 $0.00004 $0.02215
Haiku 4.5 $0.00002 $0.01107

Measured 6d ago against content hash 455de2a12ac8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

dcf-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/langalpha_research/skills/dcf-model/SKILL.md · 1,134 lines

How it starts

The opening of the file, as written. The whole thing — 1,134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  • fundamentals MCP: get_financial_statements, get_financial_ratios, get_growth_metrics, get_historical_valuation
  • macro MCP: get_treasury_rates, get_market_risk_premium
  • get_company_overview tool: analyst consensus, growth estimates, company profile
  • User-provided data and web search/fetch as supplements

Critical Constraints - Read These First

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

Sensitivity Tables:

  • Populate ALL 75 cells (3 tables × 25 cells) 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 .agents/skills/xlsx/scripts/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

Read the full file on GitHub · 1,134 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 1,134 lines · 20 tokens per session scan A 455de2a12ac8

Subscribe to this mod's changes

dcf-model is a skill published in the GitHub repository ginlix-ai/LangAlpha (1,722 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 11,075 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.