Skip to main content
command CX Codex official · Anthropic

debug-model — Claude Code command: audit financial models

debug-model — a Claude Code command that checks financial models for formula and logic errors. Run it to audit an .xlsx model for balance issues, hardcoded overrides, and broken references.

Apache-2.0 ★ 41,441 updated 2026-09-21

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/financial-services
/plugin install financial-analysis@claude-for-financial-services
Open on GitHub

What debug-model does

The command loads the audit-xls skill in model scope and examines a financial model. It looks for broken formulas, balance sheet imbalances, hardcoded overrides, circular references, and logic errors.

The audit also runs model-integrity checks, including balance sheet balance, cash tie-outs, roll-forwards, and bugs tied to the model type. The audit-xls skill is required. If no file path is supplied, the command asks which model to review.

What it helps with

  • find broken formulas in a financial model
  • spot balance sheet and cash tie-out discrepancies
  • detect hardcoded overrides and circular references
  • check roll-forwards and model logic

Example prompts for the agent

  • /debug-model model.xlsx — audit this financial model for errors.
  • /debug-model Review forecast.xlsx, including its balance sheet and cash tie-out.

How to install debug-model

1Plugin marketplace

/plugin marketplace add anthropics/financial-services
/plugin install financial-analysis@claude-for-financial-services

2Manually: put the files in place

.claude/commands/debug-model.md

Call it with /debug-model. For all projects use ~/.claude/commands/

Questions about debug-model

How do I install debug-model in Claude Code?

Add the marketplace with /plugin marketplace add anthropics/financial-services, then install the plugin with /plugin install financial-analysis@claude-for-financial-services. The command file is .claude/commands/debug-model.md.

What does debug-model do?

It loads audit-xls in model scope and checks a financial model for formula, balance, reference, and logic errors.

What does debug-model need to run?

It requires the audit-xls skill. Supply a model file path, or the command will ask which file to audit.

Source text

debug-model.md · Apache-2.0
---
description: Debug and audit a financial model for errors
argument-hint: "[path to .xlsx model file]"
---

Load the `audit-xls` skill with scope **model** and audit the specified financial model for broken formulas, balance sheet imbalances, hardcoded overrides, circular references, and logic errors — including the full model-integrity checks (BS balance, cash tie-out, roll-forwards, model-type-specific bugs).

If a file path is provided, use it. Otherwise ask the user for the model to review.

© Anthropic FSI · Apache-2.0 · anthropics/financial-services

Similar slash commands

All slash commands for Finance and business →

From the same set116

The whole set →
returns-analysis returns-analysis builds PE deal sensitivity tables for IRR and MOIC across entry multiples, leverage, and growth scenarios. Useful for stress-testing investments and IC presentations. CX Codex +1 1,100installs ai-readiness The ai-readiness Claude Code command evaluates AI opportunities across portfolio companies. It ranks quick wins by EBITDA impact and spots initiatives that could apply to multiple companies. CX Codex +1 ★ 41,441repo stars one-pager The one-pager Claude Code command creates a one-page company profile for pitch books and deal materials. Give it a company name or ticker to assemble a PowerPoint slide with business and financial details. CX Codex +1 ★ 41,441repo stars ppt-template The ppt-template Claude Code command turns a PowerPoint template into a reusable skill. It inspects a .pptx or .potx file, builds the skill package, and checks it with a sample deck. CX Codex +1 ★ 41,441repo stars dcf This Claude Code command builds a company DCF valuation and checks it against public peers. It uses comparable-company multiples to shape valuation assumptions. CX Codex +1 ★ 41,441repo stars comps The comps Claude Code command builds a comparable-company analysis using operating metrics and valuation multiples. Give it a company name or ticker to generate an Excel workbook and a summary. CX Codex +1 ★ 41,441repo stars earnings earnings — a command for Claude Code, Codex, GitHub Copilot and Gemini CLI that compiles quarterly financial results and generates an equity research report in DOCX. CX Codex +1 ★ 41,441repo stars review-fi-portfolio The review-fi-portfolio Claude Code command reviews fixed-income portfolios using prices, cashflows, and rate scenarios. Supply bond identifiers to start the analysis. CX Codex +1 ★ 41,441repo stars

Project sponsors

Companies that keep this analytics open