TEMPLATE REQUIREMENT

This skill uses templates for LBO models. Always check for an attached template file first.

Before starting any LBO model:

  1. If a template file is attached/provided: Use that template's structure exactly - copy it and populate with the user's data
  2. If no template is attached: Ask the user: "Do you have a specific LBO template you'd like me to use? If not, I can use the standard template which includes Sources & Uses, Operating Model, Debt Schedule, and Returns Analysis."
  3. If using the standard template: Copy examples/LBO_Model.xlsx as your starting point and populate it with the user's assumptions

IMPORTANT: When a file like LBO_Model.xlsx is attached, you MUST use it as your template - do not build from scratch. Even if the template seems complex or has more features than needed, copy it and adapt it to the user's requirements. Never decide to "build from scratch" when a template is provided.


CRITICAL INSTRUCTIONS FOR CLAUDE - READ FIRST

Environment: Office JS vs Python

If running inside Excel (Office Add-in / Office JS environment):

If generating a standalone .xlsx file (no live Excel session):

The rest of this skill is written with openpyxl examples, but the same principles apply to Office JS — just translate the API calls.

Core Principles

Formula Color Conventions

Fill Color Palette — Professional Blues & Greys (Default unless user/template specifies otherwise)

Number Formatting Standards


Clarify Requirements First

Before filling any formulas:


TEMPLATE ANALYSIS PHASE - DO THIS FIRST

Before filling any formulas, examine the template thoroughly:

  1. Map the structure - Identify where each section lives and how they relate to each other. Note which sections feed into others.

  2. Understand the timeline - Which columns represent which periods? Is there a "Closing" or "Pro Forma" column? Where does the projection period start?

  3. Identify input vs formula cells - Templates often use color coding, borders, or shading to indicate which cells need inputs vs formulas. Respect these conventions.

  4. Read existing labels carefully - The row labels tell you exactly what calculation is expected. Don't assume - read what the template is asking for.

  5. Check for existing formulas - Some templates come partially filled. Don't overwrite working formulas unless specifically asked.

  6. Note template-specific conventions - Sign conventions, subtotal structures, how sections are organized, whether there are separate tabs for different components, etc.


FILLING FORMULAS - GENERAL APPROACH

For each cell that needs a formula, follow this hierarchy:

Step 1: Check the Template

Step 2: Check the User's Instructions

Step 3: Apply Standard Practice


COMMON PROBLEM AREAS

The following calculation patterns frequently cause issues across LBO models. Pay special attention when you encounter these:

Balancing Sections

Tax Calculations

Interest and Circular References

Debt Paydown / Cash Sweeps

Returns Calculations (IRR/MOIC)

Sensitivity Tables


VERIFICATION CHECKLIST - RUN AFTER COMPLETION

Run Formula Validation

python /mnt/skills/public/xlsx/recalc.py model.xlsx

Must return success with zero errors.

Section Balancing

Income/Operating Projections

Balance Sheet (if applicable)

Cash Flow (if applicable)

Supporting Schedules

Debt/Financing Schedules (if applicable)

Returns/Output Analysis

Sensitivity Tables (if applicable)

Formatting

Logical Sanity Checks


COMMON ERRORS TO AVOID

Error What Goes Wrong How to Fix
Hardcoding calculated values Model doesn't update when inputs change Always use formulas that reference source cells
Wrong cell references after copying Formulas point to wrong cells Verify all links, use appropriate $ anchoring
Circular reference errors Model can't calculate Use beginning balances for interest-type calcs, break the circle
Sections don't balance Totals that should match don't Ensure one item is the plug (calculated as difference)
Negative balances where impossible Paying/using more than available Use MAX(0, ...) or MIN functions appropriately
IRR/return errors Wrong signs or incomplete ranges Check cash flow signs and ensure formula covers all periods
Sensitivity table shows same value Formula not varying with inputs Check cell references - need mixed references (A5, B4)
Roll-forwards don't tie Beginning ≠ prior ending Verify links between periods
Inconsistent sign conventions Additions become subtractions or vice versa Follow template's convention consistently throughout

WORKING WITH THE USER — SECTION-BY-SECTION CHECKPOINTS


This skill produces investment banking-quality LBO models by filling templates with correct formulas, proper formatting, and validated calculations. The skill adapts to any template structure while ensuring financial accuracy and professional presentation standards.