Excel analysis audit
Pain point
AI analysis of spreadsheets is quick but untrustworthy: numbers get estimated, misread or invented, totals don't reconcile, and the person has to repeat "no made-up numbers, audit everything" every time, then check it all by hand anyway.
When to use
- "Analyse this report / spreadsheet / export"
- "Give me insights / a summary / an exec readout from this Excel"
- Turning an .xlsx or .csv into slides, a doc or a status update
- Any time a number from a file will be shown to someone else
Inputs
- The data file (.xlsx, .xlsm or .csv)
- The question or audience (e.g. "exec summary of Q3 adoption")
- Optional: header row if it isn't row 1, and which sheet matters
If a required input is missing, ask for it once. If you can't ask, state your assumption and continue.
Non-negotiable rules
- Every number shown must be computed in code from the file. Never read numbers by eye, estimate, round-trip from memory, or "fill in" a plausible figure.
- Every number shown must have an entry in
claims.jsonwith its sheet, column or range, and operation. - Missing data is reported as missing, e.g. "Q3 not in file". It is never interpolated or assumed.
- Interpretation is labelled. Facts come from the file. Causes, explanations and recommendations are marked Interpretation and contain no new numbers.
- The report is not final until
audit_claims.pyexits with PASS.
Workflow
The scripts live in this skill's folder: .bob/skills/excel-analysis-audit/scripts/ (project), ~/.bob/skills/excel-analysis-audit/scripts/ (global), or the equivalent .claude/skills/... path. Find the one that exists and call it <SKILL_DIR>. Requires Python 3 and openpyxl (pip install openpyxl). Ask before installing anything.
- Profile first.
python <SKILL_DIR>/scripts/profile_workbook.py <file> --out profile.jsonRead the sheets, headers, types, blanks, duplicates and warnings. Before analysing, report anything that undermines trust: formula cells without cached values, merged headers, mixed-type columns, duplicate rows, totals rows mixed in with the data. - Confirm scope. State which sheet(s), rows and columns you'll use and how you'll handle exclusions (e.g. a totals row, blanks).
- Compute in code. Write a small analysis script (Python and openpyxl, or pandas if available) for every figure. Save it as
analysis.pyso it can be re-run. - Record claims. Write
claims.jsonwith one entry per number you'll show, using raw full-precision values. The format is inreferences/claims-format.md. Useformulaclaims for derived figures (growth, share, ratios). - Draft the report as
report.md. Use only numbers fromclaims.json, and add the claim ID in backticks after each figure, e.g. "EMEA grew 12.4%c7". - Audit.
python <SKILL_DIR>/scripts/audit_claims.py <file> claims.json --report report.mdThis recomputes every claim independently and flags any number in the report that has no claim. - Fix and re-run until PASS. For FAIL, correct the analysis, not the audit. For UNTRACED, add a claim or remove the number. Never loosen
--tolto force a pass. - Deliver the report and the audit table together. Show the audit result line at the top.
Output format
**Audit:** PASS - <n> claims verified, 0 untraced (source: <file>, sheets: <...>)
## Key findings
1. <finding with number> `c3`
2. ...
## Data caveats
- <profile warnings, exclusions, missing data>
## Interpretation (no new numbers)
- ...
## Audit table
| ID | Claim | Stated | Recomputed | Status |
Guardrails
- Never present a number that isn't in
claims.json, including in charts, titles and slide text. - Never change the source file. Work on a copy if any cleaning is needed, and record the cleaning steps.
- If the audit cannot run (no Python, blocked install), say so plainly and label the report UNAUDITED. Never claim it was verified.
- Keep client names and confidential figures out of anything saved outside the user's workspace.
Build on it
- Add sheet-specific claim templates for reports you receive every week (e.g. an adoption export) in
references/. - Add a chart step that reads values only from
claims.json. - Pair this with
exec-one-pagerorstakeholder-status-updatefor the final narrative.