verify-gate
FreeNo executable scriptsNot checkedRuns project compile, test, and lint commands between implementation and quality review. Gates simplify-and-harden behind machine verification. If checks…
by pskoett★ 343 GitHub starsAbout this skill
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 findings from an independent simplify, harden, spec, or code review
- Any time you want a machine-verified green signal
Pipeline Position
[implementation] → verify-gate → simplify-and-harden → self-improvement
↻ fix loop — on failure, hands diagnostics to self-healing
↳ self-healing (diagnose → patch → verify → file HEAL); verify-gate re-checks
Step 1: Discover Project Commands
Read the project's configuration to find verification commands. Check these sources in order:
- Project instruction files (CLAUDE.md, AGENTS.md, .github/copilot-instructions.md) — look for a
## Verificationor## Test Commandssection - package.json —
scripts.test,scripts.lint,scripts.typecheck,scripts.build. Also check for abun.lock/bun.lockbalongside it → preferbun run <script>overnpm run <script>when present. Check forpnpm-lock.yaml→ preferpnpm run. Check foryarn.lock→ preferyarn. - Makefile / Justfile —
test,lint,check,buildtargets - Cargo.toml —
cargo build,cargo test,cargo clippy - pyproject.toml / setup.cfg —
pytest,mypy,ruff - go.mod —
go build ./...,go test ./...,go vet ./... - deno.json / deno.jsonc —
deno task <name>for any defined tasks
If no commands are discoverable, ask the user once and suggest they add a ## Verification section to their project instruction files (CLAUDE.md, AGENTS.md, or equivalent) for future sessions:
## Verification
- Build: `npm run build`
- Test: `npm test`
- Lint: `npm run lint`
- Type check: `npx tsc --noEmit`
Define acceptance evidence
Before running commands, translate each user acceptance criterion into observable evidence. For host-integrated or user-facing work, record the full identity chain:
- Host/surface — the requested app, browser, desktop host, embedded surface, or target conversation
- Workspace — the repository, branch, environment, or document actually exercised
- Loaded artifact — the bundle, revision, or build the host loaded, not merely the source that built
- Outcome — the requested behavior observed through the real interaction and ordinary user path
Do not substitute intermediate proof for the requested outcome: an iframe src is not a rendered
app, a successful build is not proof that the host loaded it, an expanded-only view does not prove
the ordinary view, an instant synthetic click does not prove a human-duration press, and a queued or
delivered acknowledgement is not a visible turn in the target conversation.
If the environment cannot observe a required outcome, record the exact acceptance gap. The gate
cannot report PASSED for that criterion.
Step 2: Run Verification
Run discovered commands in this order. Stop at the first failure category.
Phase 1: Compile / Type Check
Run the build or type-check command. These catch structural errors before wasting time on tests.
Exit 0 → proceed to Phase 2
Exit non-zero → enter fix loop with compiler output
Phase 2: Tests
Run the test command. Scope to changed files if the test runner supports it.
If the selected project tests use agent-qa, read agent-qa verification evidence. Validation and dry-run selection do not satisfy the test phase. Bind completed run evidence to the acceptance identity from Step 1, and retain any outcome gap for Phase 5.
If the selected tests or outcome checks use Playwright, read Playwright verification evidence. Keep Playwright Test results separate from browser-only observations, and retain any outcome gap for Phase 5.
Exit 0 → proceed to Phase 3
Exit non-zero → enter fix loop with test output
Phase 3: Lint (optional, skippable with --skip-lint)
Run the lint command. Lint failures are lower severity but still worth catching.
Exit 0 → proceed to Phase 4
Exit non-zero → enter fix loop with lint output
Phase 4: Project-specific checks
Run configured custom verification tools after the standard phases. Each custom command must prove its stated invariant rather than merely exit successfully for unrelated input.
Phase 5: Outcome acceptance
Exercise every acceptance check defined in Step 1 through the requested host and ordinary user path. Capture enough evidence to identify the host, workspace, loaded artifact, interaction, and observed result. A proxy or intermediate state fails this p
Install verify-gate in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the verify-gate skill do?
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.
How do I install the verify-gate skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the verify-gate skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic