wacc-calculation

wacc-calculation is a skill for Claude Code from vivy-yi/finance-skills. It costs 91 tokens per session (2,410 once invoked), scanned A, original, MIT.

A calculation workflow for WACC, or weighted average cost of capital—the blended rate a company pays for debt and shareholder funding.

In plain words
What is it for?
It helps update annual WACC estimates, support investment evaluations, build valuation models, and assess how financing or risk changes affect the rate.
Why use it?
It provides a consistent way to combine capital structure, borrowing costs, and equity costs when setting a discount rate.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

Good fit It helps update annual WACC estimates, support investment evaluations, build valuation models, and assess how financing or risk changes affect the rate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vivy-yi/finance-skills/wacc-calculation
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 vivy-yi/finance-skills --skill wacc-calculation
Clone the repo
git clone --depth 1 https://github.com/vivy-yi/finance-skills

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 wacc-calculation

README.md
[![agentmods](https://agentmods.dev/badge/skills/vivy-yi/finance-skills/wacc-calculation/github.svg)](https://agentmods.dev/skills/vivy-yi/finance-skills/wacc-calculation)
Your own site
<a href="https://agentmods.dev/skills/vivy-yi/finance-skills/wacc-calculation"><img src="https://agentmods.dev/badge/skills/vivy-yi/finance-skills/wacc-calculation/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 wacc-calculation

Your own site · 80×15
<a href="https://agentmods.dev/skills/vivy-yi/finance-skills/wacc-calculation"><img src="https://agentmods.dev/badge/skills/vivy-yi/finance-skills/wacc-calculation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,410 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.00091 $0.02410
Opus 5 $0.00046 $0.01205
Sonnet 5 $0.00018 $0.00482
Haiku 4.5 $0.00009 $0.00241

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

Security

Grade A, and why

wacc-calculation 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 11d 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.

finance-skills/skills/capital-allocation/skills/wacc-calculation/SKILL.md · 272 lines

How it starts

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

加载上下文

首次使用时: 读取 ../../CLAUDE.md 获取场景级配置(WACC 计算标准/Beta 来源/风险溢价参数)。


/wacc-calculation — WACC 计算

Examples

→ 示例:用户说"帮我算一下我们公司的 WACC,要用于 DCF 估值",系统应调用本技能,执行 WACC 计算。

→ 示例:用户说"评级下调后我们的 WACC 会变吗,帮我测算一下",系统应调用本技能,评估评级变化对 WACC 的影响。

→ 示例:用户说"不同业务的 WACC 应该一样吗,还是要根据风险调整",系统应调用本技能,制定风险调整 WACC 方法论。

第一步:资本结构确定

当前资本结构:

□ 数据截止:[YYYY-MM-DD]
□ 数据来源:[财务系统/年报]

□ 资本结构明细:
| 项目 | 金额(万) | 占比 |
|------|-----------|------|
| 短期借款 | [X] | [X]% |
| 长期借款 | [X] | [X]% |
| 债券 | [X] | [X]% |
| 债务合计(D) | [X] | [X]% |
| 普通股权益 | [X] | [X]% |
| 少数股东权益 | [X] | [X]% |
| 权益合计(E) | [X] | [X]% |
| **合计(V = D+E)** | **[X]** | **100%** |

□ 市场价值 vs 账面价值:
  → 债务通常使用账面价值(接近市场价值,除非利率大幅变动)
  → 权益优先使用市场价值(如为上市公司)

资本结构权重:

□ E/V = [X]%(权益权重)
□ D/V = [X]%(债务权重)
□ 资本结构类型:[保守/均衡/激进]

第二步:权益成本计算

CAPM 模型:

□ 无风险利率(Rf):
  → 参考基准:10 年期国债收益率
  → 当前值:[X]%([YYYY-MM-DD])
  → 数据来源:[Wind/Choice/彭博]

□ 市场风险溢价(ERP = Rm - Rf):
  → 历史 ERP([X] 年均值):[X]%
  → 当前市场隐含 ERP:[X]%
  → 推荐使用:[X]%([理由])

□ Beta 计算:
  → 方法 1:历史 Beta([X] 年,周/月)=[X]
  → 方法 2:行业 Beta(无杠杆)=[X]
  → 调整 Beta = 2/3 × 历史 + 1/3 × 1.0 = [X]

  → 推荐 Beta:[X]
  → 数据来源:[Bloomberg/FactSet/Wind]

□ 权益成本(CAPM):
  → Ke = Rf + Beta × ERP
  → = [X]% + [X] × [X]%
  → = [X]%

□ 权益成本附加调整(如适用):
  → 规模溢价:[+/-X]%(小市值公司附加)
  → 特定风险溢价:[+/-X]%(公司特定风险)
  → 调整后权益成本 = [X]%

权益成本汇总:

□ 最终权益成本(Ke):[X]%
□ 计算依据:[CAPM + 附加调整]
□ 置信度:[高/中/低]

第三步:债务成本计算

债务成本计算:

□ 税前债务成本:
  → 方法 1:现有债务利率加权 = [X]%
    (短期借款利率 [X]% × 权重 + 长期借款利率 [X]% × 权重)

  → 方法 2:当前新增借款利率 = [X]%
    (参考银行贷款基准利率 / 债券发行利率)

  → 推荐使用:[方法 1/2] — [理由]

□ 税率:
  → 公司所得税率:[X]%
  → 地方优惠税率(如适用):[X]% → 平均有效税率 [X]%

□ 税后债务成本:
  → Kd(after-tax) = 税前成本 × (1 - T)
  → = [X]% × (1 - [X]%)
  → = [X]%

债务成本调整(如有必要):

□ 债务评级(如有):
  → 公司债券评级:[AA/BBB/...]
  → 评级对应利差:[X] bps
  → 调整后债务成本 = 无风险利率 + 利差 = [X]%

□ 最终债务成本:[X]%

第四步:WACC 组装

WACC 计算:

□ WACC = E/V × Ke + D/V × Kd(after-tax)

  = [X]% × [X]% + [X]% × [X]%
  = [X]% + [X]%
  = [X]%

□ WACC = [X]%

Read the full file on GitHub · 272 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. 11d ago First seen · 272 lines · 91 tokens per session scan A 11db1ec64fd5

Subscribe to this mod's changes

wacc-calculation is a skill published in the GitHub repository vivy-yi/finance-skills (28 stars, last pushed 2mo ago), licensed MIT. It adds 91 tokens to every session and 2,410 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

wealth-structure

A framework for thinking about wealth through ownership, responsibility, leverage, and avoiding risks that could end your progress.

kangarooking/cangjie-skill · 141 tokens

alpha-vantage

Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market…

foryourhealth111-pixel/Vibe-Skills · 126 tokens

hedgefundmonitor

Query the OFR (Office of Financial Research) Hedge Fund Monitor API for hedge fund data including SEC Form PF aggregated statistics, CFTC Traders in Financial Futures, FICC Sponsored Repo volumes, and FRB SCOOS dealer financing terms. Access time series data on hedge fund size, leverage, counterparties, liquidity…

foryourhealth111-pixel/Vibe-Skills · 123 tokens

edgartools

Python library for accessing, analyzing, and extracting data from SEC EDGAR filings. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional holdings (13F), company financials, annual/quarterly reports (10-K…

foryourhealth111-pixel/Vibe-Skills · 110 tokens

asc-ppp-pricing

Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.

rorkai/app-store-connect-cli-skills · 45 tokens

fred-economic-data

Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources. Access GDP, unemployment, inflation, interest rates, exchange rates, housing, and regional data. Use for macroeconomic analysis, financial research, policy studies, economic forecasting, and academic research requiring…

foryourhealth111-pixel/Vibe-Skills · 75 tokens