- Home
- Skills
- Data & Databases
- Audit Excel Models for Formula Errors and Hardcodes
More screenshots
Works with the AI Agents you already use
Audit Excel Models for Formula Errors and Hardcodes
Claude Code builds a workbook fast, but a hardcoded 1.05 inside a formula or one cell that breaks its row's pattern is easy to miss before you share it.
$15
Audit Excel Models for Formula Errors and Hardcodes
Example session with this skill installed
Audit examples/sample_budget.xlsx with scripts/xlsx_model_audit.py before I send it to the finance team, and list every cell I should review.
- Read your context and instructions
- Compiled the audit excel models
- Generated the data export
Summary
Ran python3 scripts/xlsx_model_audit.py --workbook examples/sample_budget.xlsx. The audit found 4 findings in the Budget sheet: two hardcoded constants and one formula error that is also a pattern break. The workbook file was not changed and no formula was recalculated.
Findings (exact output, also stored in examples/expected_output.txt)
Budget!B2: [formula-hardcoded-constant] Move assumptions into input cells: 1.05
Budget!B3: [formula-hardcoded-constant] Move assumptions into input cells: 1.05
Budget!B4: [formula-error] Review the formula and its cached result.
Budget!B4: [row-formula-drift] Compare this formula with the surrounding series.
Summary: 4 findings
How to read it
| Cell | Rule | What to do |
|---|---|---|
| Budget!B2, Budget!B3 | formula-hardcoded-constant | The literal 1.05 sits inside a formula. Move it to a labelled input cell and reference that cell. |
| Budget!B4 | formula-error | The cached result is an error value. Open the formula and fix its inputs. |
| Budget!B4 | row-formula-drift | The formula differs from its neighbours in the column. Confirm the change is intended. |
Next steps
- Fix the flagged cells, then re-run the same command until it reports
Summary: 0 findings. - Add
--strictto make the command exit 1 when findings remain, so a pipeline can block the file. - Open the workbook in a spreadsheet application to recalculate it. The audit is static: a formula can be valid while its cached value is stale.
sample_budget.xlsx
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Claude Code builds a workbook fast, but a hardcoded 1.05 inside a formula or one cell that breaks its row's pattern is easy to miss before you share it. This skill gives you a cell-addressed list of what to check, from one local Python command with no spreadsheet application.
What it checks
- Formula errors: cached error values such as #REF! and #DIV/0!, with the cell address.
- Hardcoded constants: numeric literals inside formulas (including exponent notation such as 1E+6), with an allow-list option for expected constants.
- Formula drift: a formula that differs from the pattern of its neighbours in the same column.
- Numeric text and missing caches: numbers stored as text, formulas with no cached value, and external workbook references.
How it works
- Point
scripts/xlsx_model_audit.py --workbookat an .xlsx file. Optionally limit sheets with--sheetsor pick rules with--checks. - The script reads the workbook file statically with Python's standard library only. It never modifies or recalculates the workbook.
- Read the findings (text, JSON, CSV or Markdown). Each has a sheet, a cell, a rule and a review hint.
--strictexits 1 when findings exist, so it can gate a pipeline.
Limits
It cannot tell whether a valid formula gives the intended business result, and a cached value can be stale: recalculate in a spreadsheet application. Legacy .xls files, encrypted .xlsx files, VBA macro contents and dependent results of shared formulas are not evaluated.
Includes a sample workbook, expected output and unit tests.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.
Supports only .xlsx files. Cannot process encrypted workbooks or perform live formula recalculation. Does not replace human financial logic verification.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.9+