dcf

dcf is a command for coding agents from wbh604/UZI-Skill. It costs 36 tokens per session (440 once invoked), scanned A, original, MIT.

A discounted cash flow, or DCF, stock valuation command. DCF estimates what a company may be worth by forecasting future free cash flow and discounting it back to today.

In plain words
What is it for?
Use it to calculate WACC, forecast ten years of cash flow, estimate terminal value, compare value with the market price, and review a 5-by-5 sensitivity table.
Why use it?
It turns financial assumptions into an estimated value per share and shows how that estimate changes when key assumptions change.

Command

Part of the UZI-Skill plugin — 5 skills, 20 commands, 1 agent, 1 hook shipped together

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 commands/wbh604/uzi-skill/dcf
Clone the repo
git clone --depth 1 https://github.com/wbh604/UZI-Skill

Or install UZI-Skill, the plugin that ships this one along with the rest of its 5 skills, 20 commands, 1 agent, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/wbh604/uzi-skill/dcf.svg)](https://agentmods.dev/commands/wbh604/uzi-skill/dcf)
Your own site
<a href="https://agentmods.dev/commands/wbh604/uzi-skill/dcf"><img src="https://agentmods.dev/badge/commands/wbh604/uzi-skill/dcf.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 440 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 $0.00036 $0.00440
Opus 5 $0.00018 $0.00220
Sonnet 5 $0.00007 $0.00088
Haiku 4.5 $0.00004 $0.00044

Measured 4d ago against content hash eef8ba8ab1ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dcf 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • dcf — 100% identical, 0 lines differ
commands/dcf.md · 44 lines

What it actually says

/dcf <股票代码或名称>

对目标股票做完整的 DCF 估值,按照 JPMorgan / Goldman / Morgan Stanley 投行标准。

工作流

  1. 解析股票代码(002273.SZ / 00700.HK / AAPL 等)
  2. 拉取基础数据:python skills/deep-analysis/scripts/fetch_basic.py <ticker>
  3. 提取特征:from lib.stock_features import extract_features
  4. 调用 DCF:
    from lib.fin_models import compute_dcf
    dcf = compute_dcf(features, assumptions={
        "stage1_growth": 0.10,
        "stage2_growth": 0.05,
        "terminal_g": 0.025,
        "target_debt_ratio": 0.30,
    })
    
  5. 展示结果:
    • WACC 分解(k_e / k_d / weights)
    • 10 年 FCF 预测(显式期 5 + 过渡期 5)
    • 终值 + PV 折现
    • EV → 净债 → 股权 → 每股内在价值
    • 安全边际 % 和结论(深度低估/合理/高估)
    • 5×5 敏感性表(WACC ±200bp × 终值 g ±100bp),中心格等于基础案例

A 股默认参数(可覆盖)

  • 无风险利率 2.5%(10Y 国债)
  • 股权风险溢价 6%
  • 标准税率 25%(高新 15%)
  • Beta 1.0
  • 终值永续 2.5%

方法论参考

skills/deep-analysis/references/fin-methods/README.md

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. 4d ago First seen · 44 lines · 36 tokens per session scan A eef8ba8ab1ab

Subscribe to this mod's changes

dcf is a command published in the GitHub repository wbh604/UZI-Skill (6,737 stars, last pushed 7d ago), licensed MIT. It adds 36 tokens to every session and 440 once invoked, about $0.0002 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.