lbo-model
What it does
This skill guides the AI agent to complete a leveraged buyout model for a private equity deal. It is for investors who need a deal model for an investment committee.
When to use it
- ✓When you have an LBO template that needs its formulas and numbers filled in.
- ✓When you are preparing a private equity deal for an investment committee.
- ✓When you need a sources and uses table with a debt schedule and returns.
Skill link
https://github.com/anthropics/financial-services/blob/main/plugins/agent-plugins/model-builder/skills/lbo-model/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Fill in this LBO template with my deal assumptions and show me the returns and the debt schedule.”
5 new skills a week. 1 minute to read.
How it works
The agent uses your template as provided, or the standard one if none is attached. It fills in the assumptions and formulas, then checks the calculations before finishing.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
TEMPLATE REQUIREMENT
This skill uses templates for LBO models. Always check for an attached template file first.
Before starting any LBO model:
- If a template file is attached/provided: Use that template's structure exactly - copy it and populate with the user's data
- 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."
- If using the standard template: Copy
examples/LBO_Model.xlsxas 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):
- Use Office JS (
Excel.run(async (context) => {...})) directly — do NOT use Python/openpyxl - Write formulas via
range.formulas = [["=B5*B6"]]— Office JS formulas recalculate natively in the live workbook - The same formulas-over-hardcodes rule applies: set
range.formulas, neverrange.valuesfor anything that should be a calculation - Use
range.format.font.color/range.format.fill.colorfor the blue/black/purple/green convention - No separate recalc step needed — Excel handles calculation natively
- Merged cell pitfall: Do NOT call
.merge()then set.valueson the merged range (throwsInvalidArgument— range still reports original dimensions). Instead: write value to top-left cell alone (ws.getRange("A7").values = [["SOURCES & USES"]]), then merge + format the full range (ws.getRange("A7:F7").merge(); ws.getRange("A7:F7").format.fill.color = "#1F4E79";)
If generating a standalone .xlsx file (no live Excel session):
- Use Python/openpyxl as described below
- Write formula strings (
ws["D20"] = "=B5*B6"), then runrecalc.pybefore delivery
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
- Every calculation must be an Excel formula - NEVER compute values in Python and hardcode results into cells. When using openpyxl, write
cell.value = "=B5*B6"(formula string), NOTcell.value = 1250(computed result). The model must be dynamic and update when inputs change. - Use the template structure - Follow the organization in
examples/LBO_Model.xlsxor the user's provided template. Do not invent your own layout. - Use proper cell references - All formulas should reference the appropriate cells. Never type numbers that should come from other cells.
- Maintain sign convention consistency - Follow whatever sign convention the template uses (some use negative for outflows, some use positive). Be consistent throughout.
- Work section by section, verify with user at each step - Complete one section fully, show the user what was built, run the section's verification checks, and get confirmation BEFORE moving to the next section. Do NOT build the entire model end-to-end and then present it — later sections depend on earlier ones, so catching a mistake in Sources & Uses after the returns are already built means rework everywhere.
Formula Color Conventions
- Blue (0000FF): Hardcoded inputs - typed numbers that don't reference other cells
- Black (000000): Formulas with calculations - any formula using operators or functions (
=B4*B5,=SUM(),=-MAX(0,B4)) - Purple (800080): Links to cells on the same tab - direct references with no calculation (
=B9,=B45) - Green (008000): Links to cells on different tabs - cross-sheet references (
=Assumptions!B5,='Operating Model'!C10)
Fill Color Palette — Professional Blues & Greys (Default unless user/template specifies otherwise)
- Keep it minimal — only use blues and greys for cell fills. Do NOT introduce greens, yellows, reds, or multiple accents. A professional LBO model uses restraint.
- Default fill palette:
- Section headers (Sources & Uses, Operating Model, etc.): Dark blue
#1F4E79with white bold text - Column headers (Year 1, Year 2, etc.): Light blu
- Section headers (Sources & Uses, Operating Model, etc.): Dark blue
FAQ
What if I do not have a template?
The agent asks first. If you have none, it can use the standard template, which covers sources and uses, operations, debt, and returns.
Will it build from scratch if I attach a template?
No. The skill says to use the attached template and adapt it, not to build a new model.
Does it work in Excel?
Yes. It can work in an open Excel add-in or as a standalone file.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 41k
- Ranking position
- #6583
- License
- Apache-2.0
- Updated
- 10/28/2026
Comments
- …
More skills from this repository
audit-xls
41kHelps your agent check a spreadsheet for formula errors, typed-in numbers, and broken links, for a range, a sheet, or a whole model.
earnings-analysis
41kHelps your agent write a short earnings update on a company's quarterly results, covering beat or miss, key numbers, and the revised view.
earnings-preview
41kHelps your agent prepare before a company reports earnings, with metrics to watch, bull and bear scenarios, and key catalysts.
model-update
41kHelps your agent update a financial model with new results, guidance, or assumptions, then flag the changes that matter most.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.