--- name: verify-gate description: "Runs project compile, test, and lint commands between implementation and quality review. Gates simplify-and-harden behind machine verification. If checks fail, routes back to implementation with diagnostics for a fix loop. If checks pass, signals ready for the quality pass. Use after any implementation work completes and before simplify-and-harden. Essential for the inner loop's verify step." user-invocable: true argument-hint: "[--skip-lint] [--skip-types] [--fix-limit N]" --- # Verify Gate Machine verification gate between implementation and quality review. Runs the project's compile, test, and lint commands. If any fail, enters a fix loop. If all pass, unblocks simplify-and-harden. This is the inner loop's **verify** step. Without it, the agent hands off code with zero machine signal about whether it actually works. ## When to Use - After any implementation work completes, before signaling "done" - Before running simplify-and-harden - After fixing audit findings from agent-teams-simplify-and-harden - Any time you want a machine-verified green signal ## Pipeline Position ``` [implementation] → verify-gate → simplify-and-harden → self-improvement ↻ fix loop ``` ## Step 1: Discover Project Commands Read the project's configuration to find verification commands. Check these sources in order: 1. **CLAUDE.md** — look for a `## Verification` or `## Test Commands` section 2. **package.json** — `scripts.test`, `scripts.lint`, `scripts.typecheck`, `scripts.build`. Also check for a `bun.lock` / `bun.lockb` alongside it → prefer `bun run