npv-irr-calculation

npv-irr-calculation is a skill for Claude Code from vivy-yi/finance-skills. It costs 97 tokens per session (1,601 once invoked), scanned A, original, MIT.

A financial model for estimating a project's net present value (NPV) and internal rate of return (IRR), with sensitivity analysis. NPV measures value after discounting future cash flows; IRR is the return rate that makes the investment break even.

In plain words
What is it for?
Builds a discounted cash-flow model from investment, revenue, cost, tax, and discount-rate assumptions. It tests changes in sales, prices, costs, and discount rates, and calculates payback time.
Why use it?
It shows whether an investment is likely to create value and which assumptions could change that conclusion.

Skill for Claude Code

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

Good fit Builds a discounted cash-flow model from investment, revenue, cost, tax, and discount-rate assumptions. It tests changes in sales, prices, costs, and discount rates, and calculates payback time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vivy-yi/finance-skills/npv-irr-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 npv-irr-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 npv-irr-calculation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vivy-yi/finance-skills/npv-irr-calculation"><img src="https://agentmods.dev/badge/skills/vivy-yi/finance-skills/npv-irr-calculation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,601 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.00097 $0.01601
Opus 5 $0.00048 $0.00800
Sonnet 5 $0.00019 $0.00320
Haiku 4.5 $0.00010 $0.00160

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

Security

Grade A, and why

npv-irr-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 9d 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/project-valuation/skills/npv-irr-calculation/SKILL.md · 166 lines

What it actually says

加载上下文

首次使用时: 读取 ../../CLAUDE.md 获取折现率配置和敏感性分析变量设置。


/npv-irr-calculation — NPV / IRR 计算与敏感性分析

第一步:确认财务假设

□ 项目参数:
□ 初始投资:[X] 万元(Year 0)
□ 运营期:[X] 年
□ 折现率(WACC):[X]% (或使用 CLAUDE.md 中配置的调整后折现率)

□ 收入假设:
□ 基准年销量:[X] 单位
□ 预计增长率:[X]%/年
□ 产品单价:[X] 元/单位

□ 成本假设:
□ 单位可变成本:[X] 元/单位
□ 年固定成本(不含折旧):[X] 万元
□ 折旧(年):[X] 万元

□ 所得税率:[X]%
□ 期末残值:[X] 万元(如有)

第二步:构建 DCF 模型

□ 自由现金流(FCF)计算:
□ EBITDA = 收入 - 可变成本 - 固定成本
□ EBIT = EBITDA - 折旧
□ 所得税 = EBIT × 所得税率
□ NOPAT = EBIT - 所得税
□ FCF = NOPAT + 折旧 - 资本支出 - 营运资本变动(若有)
□ 最终年 FCF 包含期末残值和营运资本回收

□ 折现计算:
□ NPV = -初始投资 + Σ FCFt / (1+WACC)^t
□ IRR = 使 NPV = 0 的折现率(Excel IRR 函数)

□ 简单回收期:
□ 累计现金流转正年份:[X] 年 [X] 个月

第三步:DCF 结果

□ NPV:[X] 万元
  → ✅ NPV > 0:项目创造价值
  → ⚠️ NPV ≈ 0(±[X] 万元):边际项目,结合 IRR 判断
  → ❌ NPV < 0:项目摧毁价值

□ IRR:[X]%
  → vs 门槛(来自 CLAUDE.md):[X]%
  → ✅ IRR > 门槛 + [X]%:明确可行
  → ⚠️ IRR 在门槛±[X]% 内:临界,需其他指标支持
  → ❌ IRR < 门槛:明确不可行

□ 简单回收期:[X] 年 [X] 个月
  → vs 运营期 [X] 年:[✅ 回收期 < 运营期 / ❌ 回收期 > 运营期]

□ 综合判断:[✅ 可行 / ⚠️ 边际可行 / ❌ 不可行]

第四步:单变量敏感性分析

□ 分析变量(从 CLAUDE.md 读取须分析的变量):
□ 销量变动 ±10%:NPV [X] 万 / [X] 万
□ 价格变动 ±10%:NPV [X] 万 / [X] 万
□ 成本变动 ±10%:NPV [X] 万 / [X] 万
□ 折现率 ±1%:NPV [X] 万 / [X] 万

□ 最敏感变量:[变量名] — 销量/价格/成本/折现率
□ NPV 对该变量敏感性:[高/中/低]

□ NPV 转负临界点:
□ 销量下降超过 [X]% 时 NPV < 0
□ 价格下降超过 [X]% 时 NPV < 0
□ 成本上升超过 [X]% 时 NPV < 0
□ 折现率上升超过 [X]% 时 NPV < 0

第五步:多情景分析

□ 基准情景:
□ NPV = [X] 万元
□ IRR = [X]%

□ 乐观情景(销量 +[X]%,价格 +[X]%,成本 -[X]%):
□ NPV = [X] 万元 — [✅ >0 / ❌ <0]
□ IRR = [X]%

□ 悲观情景(销量 -[X]%,价格 -[X]%,成本 +[X]%):
□ NPV = [X] 万元 — [✅ >0 / ❌ <0]
□ IRR = [X]%

□ 综合结论:
□ ✅ 稳健项目:所有情景 NPV > 0
□ ⚠️ 边际项目:基准 > 0,悲观 < 0
□ ❌ 高风险项目:悲观 < 0 且差距大

输出格式

═══════════════════════════════════════
DCF 估值报告
项目:[项目名称]
投资金额:[X] 万元
折现率:[X]%
═══════════════════════════════════════

【DCF 核心结果】
□ NPV:[X] 万元 — [✅ 创造价值 / ❌ 摧毁价值]
□ IRR:[X]% — vs 门槛 [X]% — [✅ 达标 / ❌ 未达标]
□ 回收期:[X] 年 [X] 个月

【情景分析】

| 情景   | 销量变化 | 价格变化 | 成本变化 | NPV(万)| IRR   |
|--------|----------|----------|----------|----------|-------|
| 乐观   | +[X]%    | +[X]%    | -[X]%    | [X]      | [X]%  |
| 基准   | 0        | 0        | 0        | [X]      | [X]%  |
| 悲观   | -[X]%    | -[X]%    | +[X]%    | [X]      | [X]%  |

【单变量敏感性】
□ 最敏感变量:[变量名]
□ 临界值:[变量] 变动超过 [±X]% 时 NPV < 0

【结论】
□ 综合判断:[✅ 推荐 / ⚠️ 慎重 / ❌ 不建议]
□ 主要风险:[描述]
□ 建议:[描述]

═══════════════════════════════════════
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 · 166 lines · 97 tokens per session scan A fc2d857a94b0

Subscribe to this mod's changes

npv-irr-calculation is a skill published in the GitHub repository vivy-yi/finance-skills (29 stars, last pushed 3mo ago), licensed MIT. It adds 97 tokens to every session and 1,601 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-09-03.

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