excel-subtotal-audit
Skill by HKUDS
Audits generated Excel reports by reopening the saved workbook, listing populated rows with their formulas, and checking that each subtotal covers all visible detail rows. It is for people who build spreadsheet reports programmatically.
Install excel-subtotal-audit
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/AgentPilot /tmp/AgentPilot && mkdir -p ~/.claude/skills && cp -r /tmp/AgentPilot/openspace/benchmarks/gdpval/skills/excel-subtotal-audit ~/.claude/skills/excel-subtotal-auditRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/AgentPilot /tmp/AgentPilot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AgentPilot/openspace/benchmarks/gdpval/skills/excel-subtotal-audit ~/.gemini/antigravity-cli/skills/excel-subtotal-auditAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install excel-subtotal-audit in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Excel Subtotal Audit is a workflow for checking Excel reports after they are generated or modified. It reopens the saved workbook, prints every populated output row with its raw formulas, and identifies subtotal and total rows. For each section, it derives the expected visible detail rows without using the subtotal formula as the source of truth, then compares them with the rows the formula references.
Any mismatch is reported as a failure, with the sheet name, row, formula, expected rows and missing or extra rows. The source includes a generic Python sketch using openpyxl that handles simple SUM ranges. It is aimed at developers who produce financial statements, operational summaries, rollups or grouped exports with formulas.
Written from the project's SKILL.md and checked against it.
What it can do
- Read back the workbookReopens the saved file from disk and reads formulas, not only calculated values.
- Row inventoryPrints each populated row with its values, formulas and hidden status.
- Subtotal detectionFinds subtotal and total rows by label, formula, styling or known report structure.
- Coverage checkCompares the rows a subtotal formula references with the visible detail rows in its section.
- Failure reportingReports sheet, row, label, formula, expected rows and actual rows for each mismatch.
What you need
- An Excel reader library, such as openpyxl in the Python example
- A generated Excel workbook to audit
Try asking
- Audit the subtotal formulas in my generated P&L workbook
- Check that every Total row sums all visible detail rows in report.xlsx
- Print a row-by-row trace of formulas in my Excel export
Good to know
- The Python sketch only parses simple =SUM ranges; SUBTOTAL is named as a next pattern to add.
- Assumes the subtotal should cover visible detail rows; other report rules must be stated explicitly.
- The sketch is deliberately simple and needs stronger row classification for real use.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: openspace/benchmarks/gdpval/skills/excel-subtotal-audit/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.skill_id34 B -
SKILL.md14 KB
Alternatives to excel-subtotal-audit
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
excel-subtotal-audit: common questions
What does this skill check in an Excel report?
It checks that each subtotal formula covers all visible detail rows in its section. It also prints every populated row with its formulas for review.
Is a file-exists check enough to validate a generated workbook?
The source says simple file-exists or sheet-exists checks miss silent spreadsheet defects. This audit compares formula ranges against independently derived detail rows.
Which formula types are supported?
The example sketch parses simple SUM ranges such as =SUM(B8:B12). The source suggests SUBTOTAL(9, ...) as a pattern to add later.
How do I install excel-subtotal-audit?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is excel-subtotal-audit free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is excel-subtotal-audit safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to excel-subtotal-audit?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
