Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 89
  • 8.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-audit

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install excel-subtotal-audit in Claude Code

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

A

No 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 →

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.

excel-subtotal-audit Install

Add to stack

Loading.