// This skill should be used when completing LBO (Leveraged Buyout) model templates in Excel for private equity transactions, deal materials, or investment committee presentations. The skill fills in formulas, validates calculations, and ensures professional formatting standards that adapt to any template structure.
This skill should be used when completing LBO (Leveraged Buyout) model templates in Excel for private equity transactions, deal materials, or investment committee presentations. The skill fills in formulas, validates calculations, and ensures professional formatting standards that adapt to any template structure.
LBO Model Builder
Preflight: Dependency Check
Before starting, verify required libraries and tools are installed and install any that are missing.
Important: Do not skip this step — scripts/recalc.py is required to verify IRR/MOIC, cash sweep mechanics, and sensitivity base-case.
Scripts
scripts/recalc.py — Force formula recalculation via headless LibreOffice. Run after building: python scripts/recalc.py <model.xlsx>
Reference Template
A starter LBO template is bundled at lbo-model.xlsx in this skill directory. If the user does not attach their own template, reuse the bundled file structure (do not copy cell values, only the layout/section conventions).
TEMPLATE REQUIREMENT
If template attached → use that template's structure exactly
If no template → ask user, or use standard examples/LBO_Model.xlsx
NEVER build from scratch when template is provided
CRITICAL INSTRUCTIONS - READ FIRST
Environment: Office JS vs Python
Office JS: range.formulas = [["=B5*B6"]], no recalc needed
Python/openpyxl: ws["D20"] = "=B5*B6", run recalc.py before delivery
Merged cell pitfall: value to top-left first, then merge + format
Core Principles
Every calculation must be an Excel formula — NEVER compute in Python and hardcode
Use the template structure — follow existing organization
Work section by section, verify with user at each step
Formula Color Conventions (4-color system)
Blue (0000FF): Hardcoded inputs
Black (000000): Formulas with calculations
Purple (800080): Links to cells on SAME tab (direct references, no calculation)
Green (008000): Links to cells on DIFFERENT tabs
Fill Color Palette — Professional Blues & Greys
Section headers: Dark blue #1F4E79 (white bold text)
Column headers: Light blue #D9E1F2 (black bold text)
Input cells: Light grey #F2F2F2
Formula cells: White
Key outputs (IRR, MOIC): Medium blue #BDD7EE (black bold)
Number Formatting Standards
Currency: $#,##0;($#,##0);"-"
Percentages: 0.0%
Multiples: 0.0"x"
MOIC/Detailed Ratios: 0.00"x"
TEMPLATE ANALYSIS PHASE
Map the structure — identify sections and relationships
Understand the timeline — columns = periods, pro forma column
Identify input vs formula cells — respect template conventions
Read existing labels — they specify expected calculations
Check for existing formulas — don't overwrite working formulas