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
/plugin marketplace add anthropics/financial-services
/plugin install financial-analysis@claude-for-financial-servicesWhat 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-modelmodel.xlsx— audit this financial model for errors./debug-modelReviewforecast.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-services2Manually: put the files in place
.claude/commands/debug-model.mdCall it with /debug-model. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/debug-model.mdCall it with /prompts:debug-model. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/debug-model.prompt.mdManually: put the files in place
.gemini/commands/debug-model.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
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