option-valuation-toolkit
БесплатноЗапускает вложенные скриптыНе проверенPrices options for valuation work — Black-Scholes with a cost-of-delay yield, binomial trees that allow early exercise, dilution-adjusted employee options for…
от lyndonkl★ 208 звёзд на GitHubОб этом скилле
Option valuation toolkit
Four option problems recur in valuation work.
Employee options are a claim on equity. They have to be priced and subtracted before you divide by shares. The equity of a deeply indebted firm behaves like a call option on the firm's assets, which is why a stock keeps trading after a discounted cash flow model says the company is worth nothing. A patent, a licence or an undeveloped reserve can carry value that a static DCF misses. And some options get exercised early, which a European formula cannot see.
The arithmetic here is exact. The inputs usually are not. When the underlying asset does not trade, no replicating portfolio can be built and no arbitrage disciplines the answer. Treat the output as an estimate with a wide band around it, and never quote it to the dollar.
The script
resources/options.py — pure standard library, no installation needed. Every subcommand
reads JSON on stdin (or --in FILE) and prints JSON.
python3 resources/options.py <subcommand> --example # show the input shape
python3 resources/options.py <subcommand> --in payload.json
python3 resources/options.py selftest # verify the engine
| Subcommand | Turns this | Into this |
|---|---|---|
black-scholes |
spot, strike, life, volatility, riskfree rate, dividend yield | European call or put value, d1, d2, N(d1), N(d2), intrinsic and time value |
binomial |
the same inputs plus steps and american |
tree value, up and down factors, risk-neutral probability |
employee-options |
equity value, share count, option terms | total option claim, value per option, value per share |
equity-as-option |
firm value, face value of debt, debt maturity | equity value, implied debt value, probability of default |
implied-vol |
an observed option price | the volatility consistent with that price |
selftest runs 18 checks and should report 18 passed. It holds put-call parity to nine
decimals. It confirms that a 500-step binomial tree converges to the Black-Scholes value.
It checks that an American put is never worth less than its European twin. It also verifies
that the dilution loop converges and that implied volatility inverts the pricer. Run it
after touching anything.
Before you price a real option, run the three tests
Real options are everywhere. Most of them are worth nothing. The premium is admitted only when three tests pass in order, and the burden of proof sits with whoever wants the premium.
| Test | Question | Fails when |
|---|---|---|
| 1. Is there an option? | Can you name a specific underlying asset whose value moves unpredictably, and a payoff contingent on a stated event inside a finite window? | You cannot write down both. There is no option, so add nothing. |
| 2. Is it worth anything? | Does something stop competitors from exploiting the same contingency? | The product market is competitive. Rivals compete the excess return away, and the option is worth zero no matter how volatile the underlying. |
| 3. Can a model price it? | Is the underlying traded, is the option itself traded, and is the exercise cost knowable? | Usually at least one fails for a real asset. Trust the number roughly in proportion to how many hold. |
Test 2 is the one that kills most claims. Exclusivity is a spectrum, and the value you may claim scales with it. Ranked from weakest barrier to strongest: first-mover advantage, technological edge, brand name, telecom licences, pharmaceutical patents. Multiply the full option value by an exclusivity factor between 0 and 1 rather than pretending the barrier is absolute. A patent stops copies; it does not stop a rival developing a different drug for the same disease.
Opportunities are not options. An opportunity is something you might do. An option is a right that others do not have, with a defined underlying, a defined strike and a defined expiry. "Real options" belongs in the same family as "synergy" and "strategic considerations" — language reached for when a price has already been decided and needs justifying. If test 1 or test 2 fails, add nothing to the DCF value. If test 3 fails alone, use a decision tree instead and treat any option number as an order of magnitude.
Whatever you do, guard against double counting. If you value a patent separately as an option, remove the growth that same patent would produce from the DCF of the existing business.
Mapping a real option onto the script
There is no separate real-option subcommand. You map the business facts onto
black-scholes or binomial inputs yourself.
| Real option | Type | spot |
strike |
time_to_expiry |
dividend_yield |
|---|---|---|---|---|---|
| Option to delay | call | PV of project cash flows if taken now | initial investment | remaining exclusive rights | cost of delay |
| Product patent | call | PV of cash flows from launching now | PV of development cost | patent life | cost of delay |
| Undeveloped reserve | call | valu |
Установить option-valuation-toolkit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл option-valuation-toolkit?
Prices options for valuation work — Black-Scholes with a cost-of-delay yield, binomial trees that allow early exercise, dilution-adjusted employee options for the equity bridge, equity in a heavily levered firm valued as a call on firm value, and implied volatility. Use when employee options or warrants must be subtracted before computing value per share, when a distressed or negative-earnings company's equity still trades above zero, when testing whether a patent, licence, undeveloped reserve or expansion right is a real option that deserves a premium, or when early exercise makes a European formula wrong. Triggers on option pricing, Black-Scholes, binomial tree, real options, option to delay, patent as an option, equity as a call option, distress and default probability, employee stock options, dilution, warrants, implied volatility, put-call parity.
Как установить скилл option-valuation-toolkit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл option-valuation-toolkit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic