dcf-analysis

dcf-analysis is a skill for Claude Code, Codex from XyrusCode/ai-sync. It costs 94 tokens per session (4,274 once invoked), scanned A, original, MIT.

A guide for building a discounted cash flow valuation model in a spreadsheet, estimating what a company may be worth from its future cash flows.

In plain words
What is it for?
It helps calculate operating profit after tax, free cash flow, discount rates, terminal value, enterprise value, equity value, and implied share price.
Why use it?
It connects the valuation to an existing financial forecast and makes assumptions, calculations, and sensitivities easier to inspect.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps calculate operating profit after tax, free cash flow, discount rates, terminal value, enterprise value, equity value, and implied share price.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xyruscode/ai-sync/dcf
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.

Any agent
npx skills add XyrusCode/ai-sync --skill dcf
Clone the repo
git clone --depth 1 https://github.com/XyrusCode/ai-sync

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-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/xyruscode/ai-sync/dcf/github.svg)](https://agentmods.dev/skills/xyruscode/ai-sync/dcf)
Your own site
<a href="https://agentmods.dev/skills/xyruscode/ai-sync/dcf"><img src="https://agentmods.dev/badge/skills/xyruscode/ai-sync/dcf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dcf-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/xyruscode/ai-sync/dcf"><img src="https://agentmods.dev/badge/skills/xyruscode/ai-sync/dcf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00094 $0.04274
Opus 5.5 $0.00038 $0.01710
Sonnet 5.5 $0.00019 $0.00855
Haiku 4.5 $0.00009 $0.00427

Measured 1mo ago against content hash 19050167be79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dcf-analysis 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 1mo 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.

skills/xlsx/reference/DCF_SKILL.md · 457 lines

How it starts

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

DCF Analysis

Overview

Build a DCF as a clean extension of an existing forecast model, not as a disconnected valuation page. The model should start from forecast operating data, calculate NOPAT, derive Unlevered Free Cash Flow, build a transparent WACC, calculate Terminal Value, discount to Enterprise Value, bridge to Equity Value, and end with Implied Share Price plus sensitivity tables.

The output should be compact, auditable, and presentation-ready. Default to a banker-style Excel layout with disciplined color usage, explicit hardcode vs. formula distinction, minimal borders, and clearly labeled sections.

The DCF must also show real market judgment and business sense. The forecast linkage, WACC, terminal assumptions, valuation bridge, and sensitivities should reflect a defendable understanding of the market, the company, the business model, and how investors would underwrite the valuation. Do not choose assumptions mechanically; show business understanding through the numbers.

If the user does not provide a fixed layout requirement and does not upload a template workbook to mimic, default to the embedded # DCF Format Reference section in this file.

Workflow

  1. Define the valuation frame. Confirm valuation date, currency, units, forecast horizon, tax convention, discounting convention, terminal value method, diluted share-count convention, and bridge-year balance sheet date. If the user does not specify, default to 5-year explicit forecast, mid-year convention, perpetuity growth as the primary terminal method, and exit multiple as a cross-check.

  2. Link forecast data from the operating model. Pull forecast lines directly from the existing model rather than retyping values. At minimum, link Revenue, EBIT, Depreciation, Amortization, Capex, Operating Working Capital or its components, tax rate, cash, debt, lease liabilities when relevant, and diluted shares.

  3. Build the NOPAT -> UFCF schedule. Use operating income as the starting point. The default structure is:

    • EBIT
    • Less: Taxes on EBIT
    • NOPAT
    • + D&A
    • - Capex
    • - Increase in Operating Working Capital
    • +/- Other recurring operating adjustments only when clearly justified
    • = Unlevered Free Cash Flow

Read the full file on GitHub · 457 lines

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. 1mo ago First seen · 457 lines · 94 tokens per session scan A 19050167be79

Subscribe to this mod's changes

dcf-analysis is a skill published in the GitHub repository XyrusCode/ai-sync (2 stars, last pushed 18d ago), licensed MIT. It adds 94 tokens to every session and 4,274 once invoked, about $0.0004 per session on Opus 5.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-09-04.