/superpowers-optimized:verification-before-completionfrom superpowers-optimized
Enforces evidence-based completion claims by requiring fresh command output before stating 'done', 'tests pass', or 'ready to merge'. Scales verification scope to change size.
Ships in superpowers-optimized. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Do not claim success without fresh command evidence.
Before any completion claim:
The gate says run the command that proves the claim. It does not say every edit earns a full-matrix run. Pick the narrowest command that could actually catch a break from this change — a five-minute suite run after a one-line edit is not rigor, it is a reflex.
| Change | Verify with |
|---|---|
| Comment, docstring, one-line edit | that file's tests; nothing else |
| One module, component, or panel | its suite, plus a typecheck if types moved |
| Several modules inside one subsystem | the suites for those modules |
| A shared type, a public contract, a cross-cutting rule, or two subsystems together | the full suite / matrix |
| Dependency, build config, or CI change | the full suite / matrix |
Rules:
Scoping the command is not a licence to skip the gate. The narrow command still has to run, and its real output still has to be read.
When verifying completion of any task that created or modified production code, run a stub scan before claiming done:
grep -rn "TODO\|FIXME\|placeholder\|NotImplementedError\|raise NotImplementedError" <src-dir> \
--include="*.ts" --include="*.js" --include="*.py" --include="*.go" --include="*.rs" \
| grep -v -i "test\|spec\|__tests__"
Adjust <src-dir> and --include patterns to the project's language and source structure. If any match falls in a file this task created or modified: the task is not done. Remove the stub or confirm with the user it is intentional before claiming completion.
When verifying a bugfix with a regression test, the test must prove it catches the bug:
✅ Write test → Run (PASS) → Revert fix → Run (MUST FAIL) → Restore fix → Run (PASS)
❌ "I've written a regression test" (without red-green verification)
A regression test that has never been seen failing proves nothing — it might pass for the wrong reason.
When a subagent reports success, verify independently:
✅ Agent reports success → Check VCS diff → Verify changes match task → Report actual state
❌ Trust agent report at face value
If evidence is missing, report current status as unverified and run the command.
When the verification reasoning is non-trivial (multi-step inference, ambiguous evidence, or configuration changes), apply multi-path reasoning (see self-consistency-reasoner) before declaring the verdict:
The paths are written by you in one pass, so they share your assumptions: a dissent is a real signal to act on, while unanimity only means none of your three angles found a gap. It targets the most expensive verification failure — confidently declaring "done" on evidence that doesn't prove what you think it proves — but it narrows that risk; it does not remove it.
When a change alters what a user sees or does in a running program — a UI, a CLI, a tray or desktop app, an extension — passing tests prove the units, not the program. Integration bugs (window events, startup registration, layout at real sizes) pass every unit test and every diff review.
When a change affects provider selection, feature flags, environment variables, or credentials:
Do not claim success based on operation success alone. Verify the outcome reflects the intended change.
| Change | Insufficient | Required |
|---|---|---|
| Switch API/LLM provider | Status 200 | Response contains expected provider or model name |
| Enable feature flag | No errors | Feature behavior is actually active |
| Change environment | Deploy succeeds | Logs or env vars reference the new environment |
| Set credentials | Auth succeeds | Authenticated identity or context is correct |
Gate:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub repozy/superpowers-optimized --plugin superpowers-optimized24 skills in this plugin
/brainstormingUse when the user wants new features, behavior changes, refactoring with new capabilities, or architecture decisions and no approved design exists yet. Produces a design before any code is written — in the conversation for small changes, as an approved spec document for larger work. Triggers on: "build this", "add a feature", "I want to change", "how should we", "design", "architect", "new project", "refactor", "we need to add/build/create", "implement a new". Routed by using-superpowers, or invoke directly via /brainstorming.
/claude-md-creatorCreates minimal, high-signal CLAUDE.md and AGENTS.md context files based on empirical best practices. Invoke on /init command, "create CLAUDE.md", "update CLAUDE.md", "write AGENTS.md", or "set up Claude Code for this project". Also invoked by brainstorming when repo lacks a context file. tools: Read, Glob, Grep, Bash, Edit
/context-managementOther plugins' skills for the same job