Community研究&データ分析github.com

excel-analysis-audit

Analyse an Excel or CSV report with zero made-up numbers: profile the file, compute every figure in code, trace each number to a sheet and range, and run an independent audit that fails the report on any mismatched or untraced number. Use when asked to analyse, summarise, find insights in, or build a report, slide or summary from an .xlsx, .xlsm or .csv file.

excel-analysis-audit とは?

excel-analysis-audit is a Claude Code agent skill that analyse an Excel or CSV report with zero made-up numbers: profile the file, compute every figure in code, trace each number to a sheet and range, and run an independent audit that fails the report on any mismatched or untraced number. Use when asked to analyse, summarise, find insights in, or build a report, slide or summary from an .xlsx, .xlsm or .csv file.

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alihabbache/product-management-agent-skills/tree/HEAD/excel-analysis-audit

Installed? Explore more 研究&データ分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

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

  1. 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.
  2. Every number shown must have an entry in claims.json with its sheet, column or range, and operation.
  3. Missing data is reported as missing, e.g. "Q3 not in file". It is never interpolated or assumed.
  4. Interpretation is labelled. Facts come from the file. Causes, explanations and recommendations are marked Interpretation and contain no new numbers.
  5. The report is not final until audit_claims.py exits 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.

  1. Profile first. python <SKILL_DIR>/scripts/profile_workbook.py <file> --out profile.json Read 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.
  2. Confirm scope. State which sheet(s), rows and columns you'll use and how you'll handle exclusions (e.g. a totals row, blanks).
  3. Compute in code. Write a small analysis script (Python and openpyxl, or pandas if available) for every figure. Save it as analysis.py so it can be re-run.
  4. Record claims. Write claims.json with one entry per number you'll show, using raw full-precision values. The format is in references/claims-format.md. Use formula claims for derived figures (growth, share, ratios).
  5. Draft the report as report.md. Use only numbers from claims.json, and add the claim ID in backticks after each figure, e.g. "EMEA grew 12.4% c7".
  6. Audit. python <SKILL_DIR>/scripts/audit_claims.py <file> claims.json --report report.md This recomputes every claim independently and flags any number in the report that has no claim.
  7. 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 --tol to force a pass.
  8. 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-pager or stakeholder-status-update for the final narrative.

関連スキル