What this skill teaches your AI coding agent
Verification Before Completion functions as a stop-the-line mechanism for autonomous engineering agents. Unconstrained agents frequently declare success prematurely, assuming their proposed changes will work without verifying compilation or running tests. This protocol blocks the agent from outputting completion signals until four gates pass: static type-checking and linting with zero warnings, automated test runner execution returning exit code 0, inspection of git diff to clean up debug statements, and a smoke verification of application boot.
Verification Before Completion is an open-source testing skill licensed under MIT that blocks agents from declaring tasks complete until all tests, types, and diffs pass.
You need strict, reproducible guardrails enforcing testing & qa discipline across agent interactions.
You are building quick disposable prototypes where architectural consistency and test verification are unnecessary.
Activation boundaries & prompt triggers
- 💬 "User prompts: "Strict verification gate prohibiting agents from declaring tasks complete u...""
- 💬 "Agent is about to declare work complete, fixed, passing, or ready for merge."
- 💬 "When autonomous agent needs strict protocol guardrails"
- ⛔ Execute full build command and test suite; confirm 0 exit code before making success assertions.
- ⛔ Inspect browser console logs and DOM element rendering on live dev server.
- ⛔ Provide concrete command output evidence rather than unverified verbal claims.
Inject into Claude.ai, Claude Code, or Cursor
Choose your agent runtime to install the playbook directly into local configuration.
.cursor/rules/verification-before-completion.mdc---description: Strict verification gate prohibiting agents from declaring tasks complete until linting, typechecking, tests, and diff checks pass.globs: *alwaysApply: false---# Verification Before Completion GateSTOP: You are prohibited from declaring a task complete, finished, or resolved until you have executed and reported the results of the following verification sequence:1. TYPE-CHECK & LINT: - Execute project linter and type-checker (`tsc --noEmit`, `npm run lint`). - ZERO errors or unhandled warnings allowed.2. TEST SUITE EXECUTION: - Execute the full test suite for modified modules. - Witness all assertions green with exit code 0.3. GIT DIFF SANITY: - Run `git diff` and self-review every modified line. - Confirm removal of debug prints, scratch files, and temporary code.Interactive file tree manifest & playbook viewer
Click any file to audit instructions, verification scripts, and architectural references before installation.
SKILL.md---
name: verification-before-completion
description: "Strict verification gate prohibiting agents from declaring tasks complete until linting, typechecking, tests, and diff checks pass."
version: 1.0.0
license: MIT
compatibility: [claude-3-5-sonnet, cursor, windsurf, cline]
---
# Verification Before Completion Protocol
Verification Before Completion functions as a stop-the-line mechanism for autonomous engineering agents. Unconstrained agents frequently declare success prematurely, assuming their proposed changes will work without verifying compilation or running tests. This protocol blocks the agent from outputting completion signals until four gates pass: static type-checking and linting with zero warnings, automated test runner execution returning exit code 0, inspection of git diff to clean up debug statements, and a smoke verification of application boot.
## Core Guardrails
- ⛔ Execute full build command and test suite; confirm 0 exit code before making success assertions.
- ⛔ Inspect browser console logs and DOM element rendering on live dev server.
- ⛔ Provide concrete command output evidence rather than unverified verbal claims.
## Autonomous Activation Triggers
When user prompts:
- "User prompts: "Strict verification gate prohibiting agents from declaring tasks complete u...""
- "Agent is about to declare work complete, fixed, passing, or ready for merge."
- "When autonomous agent needs strict protocol guardrails"
Verified behavioral proof of work
Identical prompt executed with and without this skill under autonomous coding loops.
Execute Verification Before Completion Protocol under autonomous coding loops
2- // Baseline code3+ // Deterministic scoped patch complying with all protocol invariantsExecution safety and file access boundaries
Agent skills with executable scripts can run shell or Python utilities. Always audit scripts before execution.
- Scope: Bound to active workspace branch.
- Network Calls: Zero outbound network calls.
- AST Syntax Gate: Pre-flight verification blocks breaking mutations.
Operational triage & resolution runbook
Skill not triggering during user conversational prompt▼
Agent system prompt does not associate task keywords with the skill's trigger boundary.
Reference the skill name explicitly in your prompt (e.g., "Follow the rules in verification-before-completion to perform this refactoring").
Conflicting rules with root project instructions▼
Global instructions (.cursorrules or CLAUDE.md) contradict the skill's invariants.
Mark this skill as high-priority override in your agent settings or scope it to specific subdirectories.
Context window saturation warning▼
Multiple skills loaded simultaneously without progressive disclosure.
Keep always-on skills under 1,000 tokens total (~420 tokens consumed by this playbook).
Skill vs. MCP Server vs. Plain System Prompt
| Primitive | Best Used When | Token Cost | Execution Risk |
|---|---|---|---|
| Agent Skill (`SKILL.md`) | Multi-step domain workflows & procedural guardrails | Low (~400 tokens) | Minimal (AST verified) |
| MCP Server | External system integrations (APIs, live databases) | Zero (until called) | Scoped by tool permissions |
| Plain System Prompt | Simple style guidelines & tone preferences | High (Always in context) | High drift risk |
Composable peers & official repository
Combine with Chrome DevTools Health Auditor for complementary agent steering across testing and refactoring.
Inspect SkillCombine with Mutation Testing & Fault Fuzzing Playbook for complementary agent steering across testing and refactoring.
Inspect SkillCombine with Playwright Resilient E2E Testing Protocol for complementary agent steering across testing and refactoring.
Inspect Skill