Command Palette

Search for a command to run...

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

debt-design

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

Matches the kind of debt a firm issues to the assets it finances — maturity, currency, fixed or floating, and features such as convertibility or commodity…

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

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

Debt design: matching debt to the assets it finances

The optimal debt ratio answers how much to borrow. This skill answers what to borrow.

The principle is matching. Debt cash flows should move with the cash flows of the assets being financed. When they match, a downturn that cuts asset value also cuts the value of the debt, and the firm never becomes technically insolvent for structural reasons. When they do not match, the firm carries default risk that has nothing to do with its business. A cyclical firm with flat payments defaults in a recession it would otherwise survive. A firm earning euros and paying dollars defaults on a currency move.

That makes design a value question, not a paperwork question. Better matching lowers default risk at any given debt level, which raises debt capacity, which raises the optimal debt ratio and firm value.

What you produce

A debt_design block inside capital-structure.json, plus its prose section in capital-structure.md. Both artifacts belong to the capital-structure-analyst (SPEC §3, §6). Do not write into another agent's artifact.

"debt_design": {
  "target_duration": 4.3,
  "currency_mix": [{"currency": "USD", "share": 0.82}, {"currency": "EUR", "share": 0.12}],
  "fixed_floating_split": {"fixed": 0.6, "floating": 0.4},
  "special_features": ["payments linked to park attendance"],
  "convertible_yes_no": false,
  "regression_table": [],
  "existing_profile": {},
  "gap_table": [],
  "closure_instruments": ["swap fixed USD into floating EUR"]
}

regression_table carries coefficients and t-statistics, firm-level and bottom-up. A coefficient reported without its t-statistic is not usable evidence.

The script

Every number in that block comes from one engine:

python3 <skills>/debt-design/resources/macrosensitivity.py <subcommand> --in payload.json
Subcommand Takes Gives
regress one macro series against the firm's own history slope, standard error, t-statistic, R-squared, observation count, and the duration the rate slope implies
duration project cash flows and a discount rate the present-value-weighted average time the cash arrives, and the maturity of a par bond that matches it
debt-profile the four regression results maturity, currency mix, fixed against floating, straight against convertible
selftest nothing runs the bundled worked examples and reports pass or fail

Each reads JSON from stdin or --in FILE and prints JSON. Run any of them with --example to see the payload shape.

The engine grades its own evidence and will not let a weak slope pose as a strong one. Every slope comes back marked finding, hint or noise. A finding clears |t| > 2 on at least ten observations and may carry a financing decision. Anything estimated on fewer than ten annual periods is capped at a hint however large its t-statistic looks, because the sampling distribution behind it is too wide to trust. Carry that grade into regression_table beside the coefficient.

Preconditions

  • G3_financials passed. Debt is defined economically, leases capitalized.
  • G4_discount_rate passed when you intend to compute project duration, because duration needs a discount rate in the mandate currency.
  • The optimal-ratio work (S7) has run, or you are told explicitly that only the design question is in scope.
  • The firm is not a financial-service firm. For banks and insurers, debt is raw material rather than financing, and the no-optimal-debt-ratio constraint applies. Deposit and funding structure is a regulatory-capital question, not this one.

The pipeline

Debt design progress:
- [ ] 1. Profile the asset cash flows (intuitive, project duration, or macro regressions)
- [ ] 2. Translate the profile into debt characteristics
- [ ] 3. Overlay tax deductibility
- [ ] 4. Overlay ratings agencies, analysts and regulators
- [ ] 5. Overlay bondholder fears and information asymmetry
- [ ] 6. Tabulate existing debt on the same dimensions and close the gap
- [ ] 7. Feed improved matching back into the optimal debt ratio, once

1. Profile the asset cash flows

Six characteristics decide everything downstream: duration, currency, inflation sensitivity, cyclicality, uncertainty about future cash flows, and any specific driver such as a commodity price or a visitor count.

There are three routes to that profile. They are not ranked. Pick by what the firm looks like, and say which one you used.

Route Use it when Weakness
Intuitive — reason business by business about project length, currency and drivers Multi-business firms, and always as a sanity check on the other two No numbers; cannot set a floating-rate share
Project duration — PV-weighted life of a typical project Few, large, independent projects: a mine, a park, a plant Needs a credible cash flow forecast and terminal value
Historical macro regressions —
Полный SKILL.md на GitHub

Установить debt-design в Claude Code и Claude Desktop

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

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

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

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

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

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

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

resources/duration.mdresources/macro-regressions.mdresources/macrosensitivity.pyresources/overlays.mdresources/worked-designs.md

FAQ

Что делает скилл debt-design?

Matches the kind of debt a firm issues to the assets it finances — maturity, currency, fixed or floating, and features such as convertibility or commodity linkage — using asset duration and the sensitivity of firm value and operating income to interest rates, inflation, real growth and exchange rates. Use when advising on what debt to issue, reviewing an existing debt structure, choosing debt maturity or debt currency, deciding fixed versus floating, or after finding an optimal debt ratio.

Как установить скилл debt-design?

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

Скилл debt-design запускает скрипты?

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

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

Сравнить debt-design с