Capital Markets & Debt

Capital Stack Optimizer

Synthesizes outputs from loan-sizing-engine, mezz-pref-structurer, and JV waterfall to determine the optimal capital mix for a CRE deal.

capital stackoptimal leverageWACC
Open GitHub source

No packaged download — skills install from the open-source plugin repo. Read the SKILL.md and bundled files below before you install.

How to install a skill →
01 · Problem

Synthesizes outputs from loan-sizing-engine, mezz-pref-structurer, and JV waterfall to determine the optimal capital mix for a CRE deal.

Derived from the skill’s “Skill description” section.

02 · Who & When

Trigger on any of these signals:

  • Explicit: "optimize the capital stack," "compare these structures," "what is the best mix of debt and equity," "WACC analysis," "how should I capitalize this deal"
  • Implicit: user has multiple capital sources and needs to determine the optimal combination; user is evaluating leverage vs. risk tradeoff; user is structuring a development or value-add deal
  • Upstream: loan-sizing-engine, mezz-pref-structurer, or JV waterfall outputs are available as inputs

Do NOT trigger for: single-source loan sizing (use loan-sizing-engine), mezz-only structuring (use mezz-pref-structurer), equity-only deal analysis (use deal-underwriting-assistant).

Derived from the skill’s “When to Activate” section.

03 · How It's Done Today

Not documented yet for this skill.

04 · What This Skill Changes

Present results in this order:

  1. Capital Structure Alternatives -- 3-5 complete structures with all terms
  2. Comparative Metrics -- side-by-side return and risk metrics
  3. WACC Decomposition -- tranche-by-tranche cost with marginal cost inflection
  4. Leverage Sensitivity -- value change impact on equity by structure
  5. Construction/Bridge Section -- budget, draws, interest reserve, in-balance, stress (if applicable)
  6. Hedging Strategy -- instrument comparison with breakeven and compliance (if floating rate)
  7. Recommended Structure -- narrative with rationale and conditions

Derived from the skill’s “Output Format” section.

05 · Risks & Caveats
  1. Ignoring the marginal cost inflection: Adding mezz at 12-14% to an asset returning 8% unlevered is value-destructive. The WACC decomposition must identify this break point.
  2. Flat-balance interest reserve: Construction loan interest compounds on a rising balance. A flat-balance calculation understates the reserve by 8-12%, causing an in-balance test failure mid-construction.
  3. Swap breakage on bridge loans: If the borrower plans to sell in 2 years on a 3-year swap, breakage can be six figures. Caps have no breakage risk.
  4. Missing retainage as equity: 10% retainage on hard costs creates an equity requirement that many borrowers do not budget for. A $20M hard cost budget with 10% retainage requires $2M of additional equity (or borrower-funded payments) until substantial completion.
  5. Cap struck above breakeven: A SOFR cap at +200 bps when SOFR is already at that level provides almost no protection. The cap strike must be at or below the DSCR 1.0x breakeven rate.
  6. Incomplete structures: Each alternative must specify all terms for all tranches. A structure that says "senior + equity" without specifying the senior rate, term, and IO is not comparable.

Stale-data note: Default spread assumptions (SOFR + 300-350 bps bridge, T + 150 bps perm) and hedging costs reflect mid-2025 market. Cap pricing is highly volatile. Construction cost estimates vary by metro and should be verified with current GMP bids.

Derived from the skill’s “Red Flags & Failure Modes + stale-data note” section.