/simpleapps:sanity-check [wip-file]from simpleapps
Check that we solved the right problem without errors of commission or omission. Goldratt's two types of mistakes.
Ships in simpleapps. Installing the plugin adds it to Claude Code.
First, use Skill("wiki-conventions") for project conventions, then Skill("basecamp") for MCP tools.
Eliyahu Goldratt identified two types of mistakes that undermine any process. Every failure is one of the two:
You MUST be both reliable and effective, so both halves get audited.
His key insight: organizations over-police commission errors because they are visible and blameable. Omission errors are invisible. No one gets blamed for what did not happen. So omissions slip through repeatedly while commissions get caught in normal review. This command exists to catch both, but its real value is on the omission side.
Most review tools (linters, tests, /quality) catch implementation errors. But they cannot catch the harder mistakes: misunderstanding the request, solving the wrong problem, over-engineering the solution, missing an implied requirement, or ignoring a simpler approach.
This command compares what was asked (the WIP and original request) against what was done (the diff) and flags where the two diverge in either direction.
Bias warning: You are reviewing your own work. You will be inclined to validate it. Counteract this. Adopt the stance of a skeptical reviewer who did not write the code. A clean verdict should be the exception, not the default. If you find nothing, look harder.
If $ARGUMENTS contains a file path, use it. Otherwise, check wip/ for .md files, skipping README.md (the index, not a WIP). If there is exactly one, use it. If there are multiple, pick the most recently modified, but tell the user which one you chose so they can correct you. If no WIP file exists, stop and tell the user this command needs a WIP file.
From the WIP file, extract:
- [ ] list, and which boxes are ticked. /wip populates it from the source and /investigate adds the inferred entries. If the section is missing or empty, report that as a finding in its own right: the omission check in step 6 has nothing to compare against, and you are back to asking yourself whether you feel finished.Fetch the original source fresh (GitHub issue or Basecamp item) to catch updates, new comments, or clarifications added since the WIP was created. Compare against the WIP's Problem section. Flag if the request changed but the WIP was not updated.
Determine what changed. Try these in order:
git -C repo log main..HEAD --oneline to find the base, then git -C repo diff main...HEAD for the full diffgit -C repo diff HEAD for uncommitted changesgit -C repo diff --stagedRead the actual diffs to understand the substance of the changes, not just the file list.
Before checking what we did or missed, check the foundation: did we correctly interpret what was being asked?
A misunderstanding at this level makes everything downstream wrong. This is the highest-value check.
Did we do something we should NOT have done?
For each finding, cite the specific file/change and explain why it qualifies.
Did we miss something we SHOULD have done? Lean into this section. Omission errors are what slip through normal review.
- [ ] list first. Every unticked box is a candidate omission. Then verify the ticked ones against the diff rather than trusting the tick: a box ticked with nothing in the diff behind it is a worse finding than an honest unticked one. Also check for criteria listed in the issue that never made it into the list.For each finding, cite what was expected (from the request) and what is missing (from the diff).
Step back from the details. This is strategic, not tactical. Do not repeat findings from steps 5/6.
Simplicity: Is there a simpler, more elegant solution? Look for signs of unnecessary complexity: multiple files changed when one would do, custom code where a library/package method exists, manual wiring where a convention or framework feature handles it. If a simpler approach exists, describe it concretely.
Root cause: Did we solve the root cause or patch a symptom? If the fix is localized but the same problem could recur elsewhere, flag it.
Proportionality: Is the size of the change proportional to the size of the problem? A one-line config issue should not produce a 200-line diff.
Approach consistency: Does the implementation match the approach documented in the WIP Research/Analysis section? If we deviated, why, and did we update the WIP?
## Sanity Check
**WIP**: wip/{filename}
**Source**: {issue or Basecamp URL}
**Files changed**: {count}
### Understanding
{Did we interpret the request correctly? Flag any assumptions or ambiguities.}
### Commission (should NOT have done)
- [{severity}] {finding}: {file}: {explanation}
(or: None found)
### Omission (should HAVE done)
- [{severity}] {finding}: {what was expected vs what is missing}
(or: None found)
### Solution
- Simplicity: {simpler approach? describe it, or "no simpler alternative"}
- Root cause: {symptom patch or real fix?}
- Proportionality: {change size vs problem size}
- Approach: {matches WIP research or deviated?}
### Verdict
{One line: "Clean, N concerns" or "X issues found, top priority: {most severe}"}
Severity levels: critical (wrong problem, missed acceptance criteria), warning (scope creep, missing edge case), note (wiki update, minor omission).
Then stop. This command audits whether we solved the right problem. Fixing belongs in /quality and /verify. Report findings and let the user decide which to action.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub simpleapps-com/augur-skills --plugin simpleapps25 commands in this plugin
/audit-augur-packagesAudit site for custom code that duplicates augur package functionality/commit-messageGenerate a conventional commit message from staged changes/context-auditDetailed breakdown of what is consuming the context window: CLAUDE.md, rules, skills, wiki, and budgets. Use when the built-in /context overview isn't enough.