Skip to main content
skill CX Codex

wacc — Claude Code skill: what it does, how to install

wacc is a Claude Code skill that calculates WACC step by step and cites each input. It runs for company cost-of-capital requests.

MIT ★ 86 updated 2026-11-16

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add joaquimmj/deskstack
/plugin install deskstack@deskstack
Open on GitHub

What wacc does

wacc builds a table of WACC inputs, names the source for each figure, then fills in the formula. It gathers the risk-free rate, equity and country risk premiums, beta, debt cost, tax rate, and capital weights. The calculation uses deskstack tools and a share price supplied by the user.

Debt in the weights comes from book value, used as a proxy for market value and identified as such. The result also describes how a ±1 point WACC change affects a DCF, and ends with a human-review and not-investment-advice notice.

What it helps with

  • calculate a company's WACC from its component inputs
  • trace sources for the risk-free rate, beta, and risk premiums
  • describe how a WACC change affects a DCF

Example prompts for the agent

  • Calculate WACC for Acme.
  • Work out the cost of capital for the company in company.xlsx.
  • Show the source for each input in Acme's WACC calculation.

How to install wacc

1Plugin marketplace

/plugin marketplace add joaquimmj/deskstack
/plugin install deskstack@deskstack

This installs the whole deskstack plugin with all its skills

2Skills CLI (Vercel)

npx skills add joaquimmj/deskstack --skill wacc -a claude-code

3Manually: put the files in place

~/.claude/skills/wacc/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wacc/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about wacc

How do I install wacc in Claude Code?

Run /plugin marketplace add joaquimmj/deskstack, then run /plugin install deskstack@deskstack.

What does wacc do?

It calculates WACC from its component inputs, cites each source, and shows the formula with the figures substituted. It also describes the effect of a ±1 point change on a DCF.

What does wacc need to run?

It uses deskstack tools and a share price provided by the user.

Source text

SKILL.md · MIT
---
name: wacc
description: Computes a cited WACC step by step: risk-free rate, ERP, country risk, beta, cost of debt, market-value weights, from deskstack tools plus the user's price. Shows each source.
argument-hint: "<company>"
---

# WACC

Build it in a table where every input has a source, then show the formula with the numbers.

| Input | Where it comes from |
|---|---|
| Risk-free rate | `risk_free_rate`: 10-year in the company's currency (US Treasury for USD, ECB AAA par yields for EUR), with its date. Use `rate_decimal` |
| Equity risk premium (+ country risk premium) | `valuation_inputs` by the country of operations; say which dataset year |
| Beta | `valuation_inputs` industry beta: levered, or unlevered then relevered at the company's D/E. Say which |
| Cost of equity | rf + beta × (ERP + CRP if used) |
| Pre-tax cost of debt | Interest expense / average total debt from `financial_statements`, or the industry pre-tax cost of debt from `valuation_inputs` (state which), checked for sense |
| Tax rate | Effective rate from history, or the statutory rate (state which) |
| Weights | Market cap (price from the user × diluted shares from the filing) and debt (book value from the filing as a proxy for market value; say so) |

**WACC** = E/(D+E) × Ke + D/(D+E) × Kd × (1 − t).

Then give a ±1 point sensitivity in words: what it does to a DCF. End with "Draft for human review. Not investment
advice."

© Joaquim · MIT · joaquimmj/deskstack

Similar skills

SKILL.md skills catalog →

From the same set19

The whole set →
vp-review The vp-review Claude Code subagent checks a workbook and compares its assumptions with the company’s filed history. It starts with a workbook path and company name. CX Codex ★ 86repo stars deskstack The deskstack Claude Code plugin builds and reviews financial models using SEC and ESEF filings. Its /analyst role creates a DCF or comps workbook, then /associate checks figures against the filings. ★ 86repo stars quick-dcf This Claude Code skill builds a quick DCF for a public company from deskstack data. It presents the assumptions and waits for approval before creating the workbook. CX Codex +1 ★ 86repo stars company-snapshot The company-snapshot Claude Code skill builds a one-page profile of a public company in the US or EU. It brings together five years of financials, calculated metrics, and filing references. CX Codex +1 ★ 86repo stars eu-company The eu-company Claude Code skill finds a listed European company by name or LEI and retrieves IFRS figures from its ESEF annual reports. It returns annual figures only, with no LTM data. CX Codex +1 ★ 86repo stars comps This Claude Code skill builds a trading comparables table from filings data. A request for company comps starts the workflow, which uses user-supplied share prices or market caps. CX Codex +1 ★ 86repo stars deskstack-doctor Diagnoses the deskstack environment. Runs on the /deskstack-doctor command or whenever a tool fails. CX Codex +1 ★ 86repo stars compliance compliance — a skill for Claude Code checks a workbook and memo before they are shared. It reviews number sourcing, dated user inputs, and language about buying or selling. CX Codex +1 ★ 86repo stars

Project sponsors

Companies that keep this analytics open