defeatbeta-dcf

defeatbeta-dcf is a skill for Claude Code from defeat-beta/defeatbeta-api. It costs 96 tokens per session (1,349 once invoked), scanned B, original, Apache-2.0.

A spreadsheet model that estimates a public company’s value using discounted cash flow, a method that converts expected future cash into a value today.

In plain words
What is it for?
Use it to model ten years of free cash flow, calculate the weighted average cost of capital (WACC), and test growth or discount-rate assumptions in Excel.
Why use it?
It removes the need to build the valuation workbook and formulas by hand, while keeping assumptions changeable.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to model ten years of free cash flow, calculate the weighted average cost of capital (WACC), and test growth or discount-rate assumptions in Excel.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/defeat-beta/defeatbeta-api/defeatbeta-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 defeat-beta/defeatbeta-api --skill defeatbeta-dcf
Clone the repo
git clone --depth 1 https://github.com/defeat-beta/defeatbeta-api

Made for: Claude Code.

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 defeatbeta-dcf

README.md
[![agentmods](https://agentmods.dev/badge/skills/defeat-beta/defeatbeta-api/defeatbeta-dcf/github.svg)](https://agentmods.dev/skills/defeat-beta/defeatbeta-api/defeatbeta-dcf)
Your own site
<a href="https://agentmods.dev/skills/defeat-beta/defeatbeta-api/defeatbeta-dcf"><img src="https://agentmods.dev/badge/skills/defeat-beta/defeatbeta-api/defeatbeta-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 defeatbeta-dcf

Your own site · 80×15
<a href="https://agentmods.dev/skills/defeat-beta/defeatbeta-api/defeatbeta-dcf"><img src="https://agentmods.dev/badge/skills/defeat-beta/defeatbeta-api/defeatbeta-dcf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,349 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 55
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
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.00096 $0.01349
Opus 5 $0.00048 $0.00674
Sonnet 5 $0.00019 $0.00270
Haiku 4.5 $0.00010 $0.00135

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

Security

Grade B, and why

defeatbeta-dcf scanned grade B with 1 finding 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/build_dcf_excel.py, scripts/recalc.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Debian/Ubuntu: `sudo apt-get install libreoffice-calc`
skills/defeatbeta-dcf/SKILL.md · 98 lines

How it starts

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

DCF Valuation Spreadsheet

Build a fully editable, formula-driven DCF model for a public company. All inputs come from the defeatbeta MCP server's get_stock_dcf_analysis tool. The skill renders the data into a single-sheet .xlsx whose every projection, NPV, and fair-price cell is an Excel formula — so the user can change the discount rate, growth-rate assumptions, cash, or share count and watch fair price recalculate.

Workflow

Step 1: Fetch DCF data via MCP

Call the MCP tool:

get_stock_dcf_analysis(symbol="<TICKER>")

If the response contains an error key (e.g. ETFs / indices without financial statements), stop and surface the error to the user.

Step 2: Save the payload to a temporary JSON

# Pseudocode — Claude writes the dict returned by MCP to a temp file
echo "<dcf-data-as-json>" > /tmp/<TICKER>_dcf.json

Step 3: Build the Excel workbook

Run the build script from this skill:

python <SKILL_DIR>/scripts/build_dcf_excel.py /tmp/<TICKER>_dcf.json ./<TICKER>_DCF.xlsx
  • Output is {SYMBOL}_DCF.xlsx in the current working directory by default.
  • Override path by passing it as the second argument.

Step 4: Recalculate so previewers show numbers

openpyxl writes formula strings but does not evaluate them. Most spreadsheet apps recalc on open, but lightweight previewers (and Claude's file preview) need cached values:

python <SKILL_DIR>/scripts/recalc.py ./<TICKER>_DCF.xlsx

The recalc script uses libreoffice --headless --calc to evaluate every formula and write the cached value back into the file. If LibreOffice is not on PATH, the script prints a warning and exits cleanly — the workbook is still valid, it will just show blank cells in previewers until opened in Excel/Numbers/WPS.

Install LibreOffice if you want in-Claude preview to show numbers:

Read the full file on GitHub · 98 lines

Files

What ships with it

2 files 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. 9d ago First seen · 98 lines · 96 tokens per session scan B ac598b93d713

Subscribe to this mod's changes

defeatbeta-dcf is a skill published in the GitHub repository defeat-beta/defeatbeta-api (746 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 96 tokens to every session and 1,349 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.