Command Palette

Search for a command to run...

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

financial-statement-normalization

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

Converts reported financial statements into valuation-ready numbers — capitalizes R&D into a research asset, capitalizes operating leases into debt, strips…

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

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

Financial statement normalization

Accounting statements are not built for valuation. They are built to be auditable and comparable, and those goals push them away from economic substance in three specific ways. Research spending is an investment that the accountant expensed. Leases are debt that sat off the balance sheet for decades and still get reported on rules nobody trusts. One-time items sit inside operating income and get relabelled by management every year.

This skill applies the corrections and then derives what follows from them: cash flows, the capital base, and the return earned on that capital. Every number the script produces is a pure transform of numbers you supply. Which items are non-recurring, and how long research takes to pay off in this business, are your calls.

The script

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

python3 resources/normalize.py <subcommand> --example    # show the input shape
python3 resources/normalize.py <subcommand> --in payload.json
python3 resources/normalize.py selftest                  # verify the engine
Subcommand Turns this Into this
capitalize-rd R&D history and an amortizable life research asset, this year's amortization, the EBIT adjustment
capitalize-leases lease commitments and a pre-tax cost of debt lease debt, lease-asset depreciation, imputed interest, the EBIT adjustment
cashflow corrected EBIT and reinvestment FCFF, reinvestment rate, FCFE by either route
invested-capital book equity, book debt, cash and the corrections invested capital, ROIC, return spread, economic value added
normalize-earnings a cycle of margins, returns or earnings mid-cycle operating income
ratios any subset of statement lines margins, efficiency, leverage, liquidity, returns
full all of the above in one payload the whole chain, run in dependency order

selftest checks 26 cases, including the algebraic invariant that flat R&D forever leaves operating income untouched, and that spending exactly one amortizable life ago contributes nothing to the research asset. A wrong amortization schedule fails both.

The order of operations

The corrections are not independent. Leases change interest coverage, which changes the cost of debt, which changes the discount rate used on the leases. R&D changes both the numerator and the denominator of ROIC. Run them in this order.

Normalization progress:
- [ ] 1. Update the statements to a trailing twelve months
- [ ] 2. Capitalize R&D and any other multi-year spending
- [ ] 3. Capitalize operating leases, iterating on the cost of debt
- [ ] 4. Strip genuinely non-recurring items
- [ ] 5. Normalize the year if it is a peak or a trough
- [ ] 6. Rebuild invested capital and ROIC on the corrected numbers
- [ ] 7. Derive FCFF and FCFE
- [ ] 8. Read the ratio pack and check the story holds together

1. Update first

An annual report goes stale fast. Build trailing-twelve-month figures from the last 10-K plus the latest 10-Q:

TTM item = last 10-K annual figure − prior-year year-to-date + current-year year-to-date

This matters most for small firms, volatile firms, and firms that recently restructured. The script has no subcommand for this because it is subtraction, not modelling. Do it before anything else, so every correction below lands on current numbers.

2. Capitalizing R&D

Research spending buys benefits over several years, which makes it a capital expenditure in economic substance. Accounting requires it to be expensed. The consequence is that an R&D-heavy firm looks like it earns less than it does and reinvests nothing at all, while its return on capital looks spectacular because the capital it built is invisible.

The fix treats each of the last N years of R&D as an investment being written off straight line over N years. What is left unwritten-off is the research asset.

echo '{"current_rd": 100, "past_rd": [90, 80, 70, 60, 50], "amortizable_life": 5}' \
  | python3 resources/normalize.py capitalize-rd

past_rd runs backwards: index 0 is last year, index 1 the year before. Spending from exactly amortizable_life years ago is fully written off, contributes nothing to the asset, and still contributes its share to this year's amortization. Keep that row in.

Read three fields:

  • research_asset — add to invested capital and to book equity.
  • amortization_this_year — the charge that replaces this year's expensing.
  • adjustment_to_operating_income — current R&D minus amortization. Add to reported EBIT.

The adjustment is positive when R&D is growing and negative when it is shrinking. For a firm whose R&D has been flat for years it is zero, which is the sanity check: the correction only matters when research spending is changing.

Choosing the amortizable life

This is the one gen

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

Установить financial-statement-normalization в Claude Code и Claude Desktop

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

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

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

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

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

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

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

resources/normalize.py

FAQ

Что делает скилл financial-statement-normalization?

Converts reported financial statements into valuation-ready numbers — capitalizes R&D into a research asset, capitalizes operating leases into debt, strips one-time items, normalizes cyclical or trough earnings, derives FCFF and FCFE, and computes invested capital, ROIC, economic value added and the diagnostic ratio pack. Use when cleaning up EBIT before a DCF, capitalizing research or leases, deciding whether a restructuring charge is really non-recurring, computing free cash flow to the firm or to equity, measuring return on invested capital, normalizing earnings for a cyclical or commodity company, or building the base-year operating income and capital base that a valuation model consumes.

Как установить скилл financial-statement-normalization?

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

Скилл financial-statement-normalization запускает скрипты?

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

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

Сравнить financial-statement-normalization с