Установка
SKILL.md
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 blue
#D9E1F2with black bold text - Input cells: Light grey
#F2F2F2(or just white) — the blue font is the signal, fill is secondary - Formula/calculated cells: White, no fill
- Key outputs (IRR, MOIC, Exit Equity): Medium blue
#BDD7EEwith black bold text
- Section headers (Sources & Uses, Operating Model, etc.): Dark blue
- That's the whole palette. 3 blues + 1 grey + white. If the template uses its own colors, follow the template instead.
- Note: The blue/black/purple/green font colors above are for distinguishing inputs vs formulas vs links. Those are separate from the fill palette here — both work together.
Number Formatting Standards
- Currency:
$#,##0;($#,##0);"-"or$#,##0.0depending on template - Percentages:
0.0%(one decimal) - Multiples:
0.0"x"(one decimal) - MOIC/Detailed Ratios:
0.00"x"(two decimals for precision) - All numeric cells: Right-aligned
Clarify Requirements First
Before filling any formulas:
- Examine the template structure - Identify all sections, understand the timeline (which columns are which periods), note any existing formulas
- Ask the user if anything is unclear - If the template structure, calculation methods, or requirements are ambiguous, ask before proceeding
- Confirm key assumptions - Any key inputs, calculation preferences, or specific requirements
- ONLY AFTER understanding the template, proceed to fill in formulas
TEMPLATE ANALYSIS PHASE - DO THIS FIRST
Before filling any formulas, examine the template thoroughly:
-
Map the structure - Identify where each section lives and how they relate to each other. Note which sections feed into others.
-
Understand the timeline - Which columns represent which periods? Is there a "Closing" or "Pro Forma" column? Where does the projection period start?
-
Identify input vs formula cells - Templates often use color coding, borders, or shading to indicate which cells need inputs vs formulas. Respect these conventions.
-
Read existing labels carefully - The row labels tell you exactly what calculation is expected. Don't assume - read what the template is asking for.
-
Check for existing formulas - Some templates come partially filled. Don't overwrite working formulas unless specifically asked.
-
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
- Does the cell already have a formula? If yes, verify it's correct and move on.
- Is there a comment or note indicating the expected calculation?
- Does the row/column label make the calculation obvious?
- Do neighboring cells show a pattern you should follow?
Step 2: Check the User's Instructions
- Did the user specify a particular calculation method?
- Are there stated assumptions that affect this formula?
- Any special requirements mentioned?
Step 3: Apply Standard Practice
- If neither template nor user specifies, use standard LBO modeling conventions
- Document any assumptions you make
- If genuinely uncertain, ask the user
COMMON PROBLEM AREAS
The following calculation patterns frequently cause issues across LBO models. Pay special attention when you encounter these:
Balancing Sections
- When two sections must equal (e.g., Sources = Uses), one item is typically the "plug" (balancing figure)
- Identify which item is the plug and calculate it as the difference
Tax Calculations
- Tax formulas should only reference the relevant income line and tax rate
- Should NOT reference unrelated sections (e.g., debt schedules)
- Consider whether losses create tax shields or are simply ignored
Interest and Circular References
- Interest calculations can create circularity if they reference balances affected by cash flows
- Use Beginning Balance (not average or ending) to break circular references
- Pattern: Interest → Cash Flow → Paydown → Ending Balance (if interest uses ending balance, this circles back)
Debt Paydown / Cash Sweeps
- When multiple debt tranches exist, there's usually a priority order
- Cash sweep should respect the priority waterfall
- Balances cannot go negative - use MAX or MIN functions appropriately
Returns Calculations (IRR/MOIC)
- Cash flows must have correct signs: Investment = negative, Proceeds = positive
- If using XIRR, need corresponding dates
- If using IRR, cash flows should be in consecutive periods
- MOIC = Total Proceeds / Total Investment
Sensitivity Tables
- Use ODD dimensions (5×5 or 7×7) — never 4×4 or 6×6. Odd dimensions guarantee a true center cell.
- Center cell = base case. Build the row and column axis values symmetrically around the model's actual assumptions (e.g., if base entry multiple = 10.0x, axis =
[8.0x, 9.0x, 10.0x, 11.0x, 12.0x]). The center cell's IRR/MOIC MUST then equal the model's actual IRR/MOIC output — this is the proof the table is wired correctly. - Highlight the center cell — medium-blue fill (
#BDD7EE) + bold font so the base case is visually anchored. - Excel's DATA TABLE function may not work with openpyxl — instead write explicit formulas that reference row/column headers
- Each cell should show a DIFFERENT value — if all same, formulas aren't varying correctly
- Use mixed references (e.g.,
$A5for row input,B$4for column input)
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
- <!-- -->Any sections that must balance (Sources/Uses, Assets/Liabilities) balance exactly
- <!-- -->Plug items are calculated correctly as the balancing figure
- <!-- -->Amounts that should match across sections are consistent
Income/Operating Projections
- <!-- -->Revenue/top-line builds correctly from drivers or growth rates
- <!-- -->All cost and expense items calculated appropriately
- <!-- -->Subtotals and totals sum correctly
- <!-- -->Margins and ratios are reasonable
- <!-- -->Links to assumptions are correct
Balance Sheet (if applicable)
- <!-- -->Assets = Liabilities + Equity (must balance)
- <!-- -->All items link to appropriate schedules or roll-forwards
- <!-- -->Beginning balances = prior period ending balances
- <!-- -->Check row included and shows zero
Cash Flow (if applicable)
- <!-- -->Starts with correct income figure
- <!-- -->Non-cash items added/subtracted appropriately
- <!-- -->Working capital changes have correct signs
- <!-- -->Ending Cash = Beginning Cash + Net Cash Flow
- <!-- -->Cash balances are consistent across statements
Supporting Schedules
- <!-- -->Roll-forward schedules balance (Beginning + Changes = Ending)
- <!-- -->Schedules link correctly to main statements
- <!-- -->Calculated items use appropriate drivers
- <!-- -->All periods are calculated consistently
Debt/Financing Schedules (if applicable)
- <!-- -->Beginning balances tie to sources or prior period
- <!-- -->Interest calculated on appropriate balance (typically beginning)
- <!-- -->Paydowns respect cash availability and priority
- <!-- -->Ending balances cannot be negative
- <!-- -->Totals sum tranches correctly
Returns/Output Analysis
- <!-- -->Exit/terminal values calculated correctly
- <!-- -->All relevant adjustments included
- <!-- -->Cash flow signs are correct (negative for investment, positive for proceeds)
- <!-- -->IRR/MOIC formulas reference complete ranges
- <!-- -->Results are reasonable for the scenario
Sensitivity Tables (if applicable)
- <!-- -->Grid dimensions are ODD (5×5 or 7×7) — there is a true center cell
- <!-- -->Row and column axis values are symmetric around the base case (
[base-2Δ, base-Δ, base, base+Δ, base+2Δ]) - <!-- -->Center cell output equals the model's actual IRR/MOIC — confirms the table is wired correctly
- <!-- -->Center cell is highlighted (medium-blue fill
#BDD7EE, bold font) - <!-- -->Row and column headers contain appropriate input values
- <!-- -->Each data cell contains a formula (not hardcoded)
- <!-- -->Each data cell shows a DIFFERENT value
- <!-- -->Values move in expected directions (higher exit multiple → higher IRR, etc.)
Formatting
- <!-- -->Hardcoded inputs are blue (0000FF)
- <!-- -->Calculated formulas are black (000000)
- <!-- -->Same-tab links are purple (800080)
- <!-- -->Cross-tab links are green (008000)
- <!-- -->All numbers are right-aligned
- <!-- -->Appropriate number formats applied throughout
- <!-- -->Ни в одной ячейке нет ошибочных значений (#REF!, #DIV/0!, #VALUE!, #NAME?)
Проверки логической состоятельности
- <!-- -->Числа имеют разумный порядок величины
- <!-- -->Тренды имеют смысл (рост, снижение, стабилизация, как и ожидалось)
- <!-- -->Нет явно неверных значений (отрицательные там, где должны быть положительные, невозможные проценты и т. д.)
- <!-- -->Ключевые результаты находятся в разумных диапазонах для данного типа анализа
РАСПРОСТРАНЁННЫЕ ОШИБКИ, КОТОРЫХ СЛЕДУЕТ ИЗБЕГАТЬ
| Ошибка | Что идёт не так | Как исправить |
|---|---|---|
| Жёстко заданные расчётные значения | Модель не обновляется при изменении входных данных | Всегда используйте формулы, ссылающиеся на исходные ячейки |
| Неверные ссылки на ячейки после копирования | Формулы указывают на неправильные ячейки | Проверьте все связи, используйте соответствующие $ для фиксации |
| Ошибки циклических ссылок | Модель не может выполнить расчёт | Используйте начальные остатки для расчётов процентного типа, разорвите цикл |
| Разделы не балансируются | Итоги, которые должны совпадать, не совпадают | Убедитесь, что один элемент является балансирующим (рассчитывается как разница) |
| Отрицательные остатки там, где это невозможно | Платежи/использование больше, чем доступно | Используйте MAX(0, ...) или функции MIN соответствующим образом |
| Ошибки IRR/доходности | Неверные знаки или неполные диапазоны | Проверьте знаки денежных потоков и убедитесь, что формула охватывает все периоды |
| Таблица чувствительности показывает одно и то же значение | Формула не изменяется при изменении входных данных | Проверьте ссылки на ячейки — нужны смешанные ссылки ($A5, B$4) |
| Сквозные расчёты не сходятся | Начальный остаток ≠ предыдущий конечный | Проверьте связи между периодами |
| Несогласованные соглашения о знаках | Прибавления становятся вычитаниями или наоборот | Следуйте соглашению шаблона последовательно по всему документу |
РАБОТА С ПОЛЬЗОВАТЕЛЕМ — КОНТРОЛЬНЫЕ ТОЧКИ ПО РАЗДЕЛАМ
- Если структура шаблона неясна, спросите перед тем, как продолжать
- Если требования пользователя противоречат шаблону, подтвердите его предпочтение
- После завершения каждого крупного раздела, ОСТАНОВИТЕСЬ и проверьте с пользователем перед продолжением:<!-- -->
- После источников и использования средств → покажите сбалансированную таблицу, подтвердите правильность балансирующей статьи, получите одобрение перед построением операционной модели
- После операционной модели / прогнозов → покажите прогнозный отчёт о прибылях и убытках, подтвердите правильность темпов роста и маржи, получите одобрение перед графиком долга
- После графика долга → покажите начальные/конечные остатки и проценты, подтвердите логику каскада, получите одобрение перед расчётом доходности
- После доходности (IRR/MOIC) → покажите ряд денежных потоков и результаты, подтвердите знаки и диапазоны, получите одобрение перед таблицами чувствительности
- После таблиц чувствительности → покажите, что каждая ячейка изменяется, подтвердите, что базовый сценарий даёт ожидаемый результат
- Если при проверке обнаружены ошибки, исправьте их перед переходом к следующему разделу
- Показывайте свою работу — поясняйте ключевые формулы или допущения, когда это полезно
- Никогда не представляйте готовую модель, не проверив каждый раздел — быстрее поймать неверную ссылку на ячейку у источника, чем отслеживать её в обратном направлении от сломанного IRR
Этот навык создаёт LBO-модели инвестиционно-банковского качества, заполняя шаблоны правильными формулами, надлежащим форматированием и проверенными расчётами. Навык адаптируется к любой структуре шаблона, обеспечивая при этом финансовую точность и профессиональные стандарты представления.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: lbo-model](https://darkplay.ru/ai/skills/anthropics-financial-services-lbo-model)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
Mle Revieweraffaan-m · Ревьюер ML-инженерии: данные, признаки, обучение, оценка, сервинг и мониторинг.
MCP Memory Server (official)modelcontextprotocol · Эталонный сервер памяти на графе знаний из официального репозитория MCP-серверов.
ruflo-cost-trackerruvnet · Отслеживание расхода токенов, атрибуция затрат на модели по агентам, оповещения о бюджете…
ruflo-intelligenceruvnet · Самообучающийся нейроинтеллект с паттернами SONA, обучением на траекториях и…
ruflo-metaharnessruvnet · Интеграция MetaHarness: доступ к score/genome/mint/mcp-scan/threat-model через навыки…
ruflo-neural-traderruvnet · Нейросетевые торговые стратегии: самообучающиеся модели LSTM/Transformer/N-BEATS с…
academic-research-skillsImbad0202 · 4 навыка + 27 режимов + конвейер Material Passport. Включает кросс-модельный аудит-гейт…
aws-amplifyanthropics · Создание full-stack приложений на AWS Amplify Gen 2 с пошаговыми сценариями для…
azure-cosmos-db-assistantanthropics · Экспертный помощник по Azure Cosmos DB — моделирование данных, оптимизация запросов…Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton