project-investment-analysis
БесплатноЗапускает вложенные скриптыНе проверенEvaluates a discrete investment, project or acquisition from its cash flow stream — NPV, IRR with every root reported when the stream has more than one, MIRR…
от lyndonkl★ 208 звёзд на GitHubОб этом скилле
Project and acquisition investment analysis
A project decision is one arithmetic question wrapped in two judgments. The judgments are what belongs in the cash flow stream and what rate discounts it. The arithmetic is here.
The engine will not decide what is incremental for you, and it will not hide an awkward answer. A stream with two internal rates of return comes back with both roots and a note saying the IRR rule does not apply, rather than one root dressed up as the return.
The script
resources/project.py — pure standard library, no installation needed. JSON on stdin (or
--in FILE), JSON out.
python3 resources/project.py <subcommand> --example # show the input shape
python3 resources/project.py <subcommand> --in payload.json
python3 resources/project.py selftest # verify the engine
| Subcommand | Turns this | Into this |
|---|---|---|
npv |
one or more cash flow streams, each with its own rate | present values by year, NPV per stream, total, NPV profile |
irr |
a cash flow stream | every root in the searched range, sign-change count, NPV profile |
mirr |
a stream plus a reinvestment rate | modified IRR and the size of the reinvestment illusion |
rationing |
competing projects, optionally a budget | profitability index, both rankings, the best affordable set |
different-lives |
mutually exclusive projects of unequal life | equivalent annuities and replicated NPVs |
payback |
a stream and a rate | payback, discounted payback, and the cost of time between them |
accounting-return |
after-tax operating income and book capital by year | ROC on three conventions, return spread, EVA |
incremental |
a total cash flow stream and what is not incremental in it | the incremental stream, with every adjustment shown |
synergy |
combined-firm values, or a synergy cash flow schedule | synergy value and the maximum acquisition price |
synergy-haircut |
a split of cost and revenue synergies | what post-merger evidence says will actually arrive |
control-value |
a status-quo value, a restructured value, the odds of change | the value of control, its expected value, and the per-share effect |
deal |
the four numbers of an acquisition | the acid test by motive, the ceiling price, and who keeps the gains |
control-premium |
two valuations and a stake size | control premium, minority discount, and what each stake is worth |
Cash flow convention throughout: cash_flows[0] is the year-0 outlay and is not
discounted; cash_flows[t] lands at the end of year t.
Build the stream before you run anything
Every number below is only as good as the stream feeding it. Work through this first.
Incremental cash flow checklist:
- [ ] Write the counterfactual: what the firm's cash flows look like without the project
- [ ] Exclude sunk costs, and the depreciation tax shield on any capitalized sunk asset
- [ ] Exclude allocated fixed overhead; include genuinely new overhead the project causes
- [ ] Charge the opportunity cost of every resource the firm already owns
- [ ] Charge cannibalization of existing products, at the share that would have been kept
- [ ] Credit side benefits, valued at the receiving business's rate
- [ ] Close the stream with salvage, working-capital recovery, or a terminal value
Sunk costs are out. Money already spent and unrecoverable does not change with the decision. So does its depreciation tax shield: that shield exists whether or not the project goes ahead, so leaving it in quietly keeps part of the sunk cost in the analysis. The behavioural research says managers find this nearly impossible to do. The rule is easy; the discipline is not.
Allocated fixed overhead is out; incremental overhead is in. A share of a central G&A pool charged to the project on a sales basis is not caused by the project. New headcount and new systems are. Split the pool empirically by regressing company G&A on company revenues: the slope is the variable rate you charge, the intercept is the fixed pool you do not. Treating the whole allocation as non-incremental is the opposite error and just as wrong.
Opportunity cost is in, priced at the best alternative use. Never at zero because the firm already owns the asset, and never at book value.
| Alternative use | What to charge |
|---|---|
| Sell it | Sale proceeds net of capital gains tax |
| Rent or lease it out | Present value of the after-tax rents foregone |
| Use it elsewhere in the business | Cost of replacing it |
| No alternative use, now or later | Zero — but verify the "or later" |
Excess capacity is the case that looks free and is not. "Already paid for and nobody else wants it" is a sunk-cost argument in a different hat. Ask when capacity runs out without the project, when it runs out with it, and what the firm does then. If the answer is "build earlier", charge the present value of building earlier less the present value of building later. If the
Установить project-investment-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл project-investment-analysis?
Evaluates a discrete investment, project or acquisition from its cash flow stream — NPV, IRR with every root reported when the stream has more than one, MIRR, profitability index and project selection under a capital budget, equivalent annuities and replication for unequal lives, payback and discounted payback, project return on capital and EVA, synergy value with the ceiling price it supports, the value of control and its expected value, the four-number acid test for a deal, and control premiums and minority discounts. Use when deciding whether to take a project, ranking competing projects, comparing projects with different lives, sizing a capital budget, testing whether a stream is truly incremental, valuing synergy or control, pricing a majority or minority stake, or setting the maximum price for an acquisition.
Как установить скилл project-investment-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-investment-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic