Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

relative-valuation-toolkit

БесплатноЗапускает вложенные скриптыНе проверен

Prices a company against peers and the market with multiples — builds PE, PEG, PBV, EV/EBITDA, EV/EBIT, EV/Sales and EV/Invested Capital with the…

lyndonklот lyndonkl★ 208 звёзд на GitHub

Об этом скилле

Relative valuation toolkit

Relative valuation infers what an asset is worth from what the market pays for similar assets. It is pricing, not valuation. A stock can be cheap against its comparable group and still be badly overpriced in absolute terms — in a bubble the whole group is wrong together. Say "cheap versus these peers", never "cheap".

Practice runs on this method. Roughly 85% of equity research reports and more than half of acquisition valuations rest on multiples, and plenty of discounted cash flow models are relative valuations in disguise, with a terminal value set at 8x year-5 EBITDA.

The arithmetic here is scripted. Your job is choosing the comparable set, choosing the control technique, and deciding what an unexplained residual means.

The script

resources/multiples.py — pure standard library, no installation needed. Every subcommand takes JSON on stdin (or --in FILE) and prints JSON.

python3 resources/multiples.py <subcommand> --example    # show input shape
python3 resources/multiples.py <subcommand> --in payload.json
python3 resources/multiples.py selftest                  # verify the engine
Subcommand Turns this Into this
multiples financials and a market price traded multiples, with inconsistent pairings refused
peer-stats a column of peer multiples median, quartiles, skew, drop-out count, median test
locate one multiple where it sits in a bundled market distribution
intrinsic DCF fundamentals the justified multiple those fundamentals imply
regress a sector or market sample coefficients, R-squared, standard errors, t-statistics
predict a fitted or published equation predicted multiple and the over/under percentage
sum-of-parts divisions and their multiples per-division values and shares, the total, the gap to market
cross-holdings stakes in other firms what to add, what to subtract, and at what value

selftest runs 106 checks: worked examples from the source, and algebraic identities a wrong implementation cannot satisfy by accident. Run it after editing anything.

Run the multiple through four tests

Every multiple gets four tests before you trust it. Skipping any one of them is how comparable-company analysis becomes an exercise in confirming what you already believed.

Relative valuation progress:
- [ ] 1. Definitional — settle the numerator, denominator and timing
- [ ] 2. Descriptive — find where the multiple actually sits today
- [ ] 3. Analytical — derive its companion variable from a DCF
- [ ] 4. Application — pick comparables and control for the differences

1. Definitional test

A multiple is a standardized price: what you pay divided by what you get. Two rules.

Consistency. The numerator and denominator must belong to the same claimholders. Equity value goes with equity earnings or equity book value. Firm or enterprise value goes with operating measures. The script refuses the mismatches rather than computing them, so EV/Net Income and Price/EBITDA come back with an explanation instead of a number.

Uniformity. Every variable must be estimated the same way across every firm in the comparable list, accounting rules included. The same name hides many variants, so never borrow a multiple without knowing how it was built.

python3 resources/multiples.py multiples --example | python3 resources/multiples.py multiples

Supply market_cap (or price_per_share and shares_outstanding), debt, cash, minority_interests, and whichever denominators you have. Use the market value of debt from cost-of-capital-toolkit (mv-debt, field market_value_of_debt), not book debt. Take lease- and research-adjusted earnings from financial-statement-normalization, and apply the adjustment to every firm or to none.

The script nets cash out of enterprise value because interest income on cash appears in neither EBITDA nor EBIT. It adds minority interests back because a consolidated but partly owned subsidiary puts all of its EBITDA in the denominator while the parent owns only part of the equity.

Ask for an arbitrary pairing with custom:

"custom": [{"name": "EV/Net Income", "numerator": "enterprise", "denominator": "net_income"}]

Negative denominators are refused, not computed. A PE built on a loss is not a small number or a large one. It carries no ordering at all, so it cannot be ranked against anything. The output says which metric was negative and what to price on instead — a denominator that stays positive, a forward year, or a sector-specific driver. Record the refusal. That firm has now dropped out of the sample, and the drop-out biases every peer statistic computed without it.

Full map of numerators, denominators, timing variants and companion variables: resources/multiple-map.md.

2. Descriptive test

You cannot call a multiple high or low without knowing t

Полный SKILL.md на GitHub

Установить relative-valuation-toolkit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/data/multiple_distributions.jsonresources/data/published_regressions.jsonresources/multiple-map.mdresources/multiples.pyresources/regressions.md

FAQ

Что делает скилл relative-valuation-toolkit?

Prices a company against peers and the market with multiples — builds PE, PEG, PBV, EV/EBITDA, EV/EBIT, EV/Sales and EV/Invested Capital with the numerator/denominator consistency rule enforced, computes peer medians and quartiles, fits an ordinary-least-squares regression of a multiple on its companion variables for a sector or the whole market, reports predicted versus actual under and over valuation, and derives the intrinsic multiple from DCF fundamentals. Prices a conglomerate division by division with a sum of the parts, and values cross-holdings and minority interests. Bundles Damodaran's regional pricing regressions and multiple distributions. Use for relative valuation, comparable company analysis, trading comps, sector or market multiple regressions, justified multiples, PEG screens, sum-of-the-parts or break-up analysis, conglomerate discounts, cross-holdings and minority interests, or when asked whether a stock is cheap on its multiple.

Как установить скилл relative-valuation-toolkit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл relative-valuation-toolkit запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить relative-valuation-toolkit с