VE

verification-before-completion

Ensures agents verify work with real execution before claiming task completion.

Install

mkdir -p .claude/skills/verification-before-completion-jnpiyush && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10217" && unzip -o skill.zip -d .claude/skills/verification-before-completion-jnpiyush && rm skill.zip

Installs to .claude/skills/verification-before-completion-jnpiyush

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Block false completion claims. Force the agent to identify the claim, run the exact verification command, read the actual output, compare against the claim, and only then report. Use whenever an agent is about to say "done", "fixed", "tests pass", "deployed", "loop complete", or close an issue.
295 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Identify completion claims
  • Run verification commands
  • Compare output to claims
  • Report verification results

How it works

Forces a five-step gate process to verify claims against actual output before allowing task completion.

Inputs & outputs

You give it
Completion claim
You get back
Verified status report

When to use verification-before-completion

  • Verify bug fix before closing issue
  • Ensure tests pass on latest commit
  • Validate deployment success
  • Prevent premature task completion reports

About this skill

Verification Before Completion

WHEN: Any time the active agent is about to claim work is finished -- "done", "complete", "fixed", "tests pass", "loop complete", "ready for review", "deployed", "issue closed". The single most common AgentX failure mode is reporting completion that fresh verification would have caught.

When to Use This Skill

Load this skill when:

  • An Engineer agent is about to close an issue or run agentx loop complete
  • A Reviewer agent is about to set APPROVED
  • A Tester agent is about to mark a test plan green
  • A DevOps agent is about to claim a deployment succeeded
  • Any agent is about to report results in chat without having re-run the check on the current commit

Skip when:

  • The work is purely exploratory and no completion claim is being made
  • The user has explicitly asked for a partial / in-progress report

Prerequisites

  • Access to the verification surface (test runner, CLI, build, app under test, deployed URL)
  • Knowledge of the exact command that proves the claim
  • Current commit SHA or build identifier to anchor the evidence

Rationalization Table

The five most common ways agents skip verification. Push back against each.

RationalizationReality
"The tests passed last time I ran them, the diff is small."A small diff is the highest-risk place to skip verification because nobody scrutinizes it. Re-run.
"The CI run on the previous commit was green."Fresh commit, fresh run. The "previous commit was green" claim is the canonical false-completion pattern.
"I can see by reading the code that it works."Reading the code is necessary but not sufficient. The compiler, interpreter, and runtime have rejected obviously-correct-looking code before and will again. Run it.
"The change is too small to break anything."The change history of every codebase is full of one-line outages. Run the verification anyway.
"Running the full suite is slow, I'll trust the targeted test."Trust nothing. Run at least the targeted test on the current commit and record the output. Run the full suite if the change crosses module boundaries.
"The loop iteration count is satisfied, I can mark complete."The loop count is a floor. Completion requires the done criteria to actually pass on the current commit, not just the counter to advance.

The Gate Function (5 Steps)

Execute these five steps before any completion claim. No exceptions.

Step 1 -- IDENTIFY the claim

State the claim out loud, in writing, in one sentence. Examples:

  • "All unit tests pass on commit abc1234."
  • "The /health endpoint returns 200 with a JSON body."
  • "Issue #42 acceptance criteria 1, 2, and 3 are satisfied."
  • "The deployment to dev succeeded and the app responds."

A vague claim ("it works", "looks good") is not a claim. Make it specific or do not claim.

Step 2 -- RUN the verification command

Execute the exact command that proves the claim, against the current commit. Examples:

ClaimCommand
Tests passdotnet test / pytest -x / npm test
Build is cleandotnet build -warnaserror / tsc --noEmit / cargo build --release
Endpoint workscurl -sfS http://localhost:PORT/health
Linter cleaneslint . --max-warnings 0 / ruff check .
Loop complete.agentx/agentx.ps1 loop status

Do not skip to Step 5 from memory. Run it now.

Step 3 -- READ the actual output

Read every line of the output. Do not skim. Look for:

  • Non-zero exit codes
  • The word FAIL, error, panic, unhandled, warning (when warnings are errors)
  • Skipped tests that should not be skipped
  • Test counts (did the runner actually find your tests?)
  • The current commit SHA in the output, not a cached SHA

Step 4 -- VERIFY the output matches the claim

Compare the output against the claim from Step 1.

  • Claim: "All 247 unit tests pass." Output shows 246 passed, 1 skipped. CLAIM IS FALSE. Investigate the skip.
  • Claim: "Build is clean." Output shows 0 errors, 3 warnings. CLAIM IS PARTIALLY FALSE. Either address the warnings or restate the claim as "Build has 3 warnings, listed below."
  • Claim: "Endpoint returns 200." Output shows HTTP/1.1 200 OK with an empty body. CLAIM IS PARTIALLY FALSE. State the body separately.

Step 5 -- ONLY THEN report

Report completion with:

  1. The claim from Step 1
  2. The command from Step 2
  3. A 1-3 line excerpt from the output (the line that proves it, not the whole log)
  4. The commit SHA or build ID
  5. Any caveats discovered in Step 4

If Steps 1-4 did not produce a clean result, the report is "NOT COMPLETE" plus the failure. Do not soften.

AgentX Wiring

This skill is referenced from:

  • Engineer agent -- before loop complete and before status In Review
  • Reviewer agent -- before setting APPROVED on Pass A or Pass B
  • Tester agent -- before marking a certification report green
  • DevOps agent -- before claiming deployment success
  • .agentx/agentx.ps1 loop complete -- the CLI gate that blocks handoff when the loop is not actually complete

When this skill fires, the agent MUST cite the command and the output excerpt in the loop's iterate or complete summary.

Error Handling

SymptomAction
Command fails on the current commitDo not report completion. Fix the failure, then re-run the gate.
Command hangsTreat as failure. Investigate before claiming completion.
Command output is suspiciously fast (no tests found, cached result)Force a clean run. dotnet test --no-build is not a substitute for dotnet test.
Cannot run the command locallyRun it in CI on the current commit and link the run. Do not claim completion from a prior run.
The claim is unprovable in the current environmentRestate the claim as "claimed but not verified in this session" and surface the gap.

Checklist

Before reporting completion, confirm:

  • Claim is stated in one specific sentence
  • Verification command was run on the current commit
  • Full output was read, not skimmed
  • Output matches the claim, including counts and codes
  • Report cites the command, the output excerpt, and the commit SHA
  • If anything in the output contradicts the claim, the claim was retracted or narrowed

See Also

When not to use it

  • Exploratory work without completion claims

Prerequisites

Verification surface accessExact verification command

Limitations

  • Requires a provable verification command
  • Cannot verify unprovable claims

How it compares

Prevents premature reporting by mandating fresh verification on the current commit.

Compared to similar skills

verification-before-completion side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
verification-before-completion (this skill)02moReviewIntermediate
proof-of-work16moNo flagsIntermediate
cmd-check03moNo flagsIntermediate
skill-comply04moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jnPiyush

View all by jnPiyush

ux-ui-design

jnPiyush

Design user experiences with wireframing, prototyping, user flows, accessibility, and production-ready HTML prototypes. Use when creating wireframes, building interactive prototypes, designing user flows, implementing accessibility standards, or producing HTML/CSS design deliverables.

00

copilot-studio-agents

jnPiyush

Design Microsoft Copilot Studio agents (formerly Power Virtual Agents) -- topics, trigger phrases, generative answers, knowledge sources, connector and MCP actions, authentication, channels, and agent flows -- so an agent can author the conversational logic that ships as a Bot component inside a Pow

00

configuration

jnPiyush

Implement configuration management patterns including environment variables, secrets, feature flags, and validation strategies. Use when setting up app configuration, managing environment-specific settings, implementing feature flags, storing secrets securely, or validating configuration at startup.

00

docx

jnPiyush

Read, write, and transform Microsoft Word .docx files. Use when extracting text or tables from Word documents, generating reports from templates, applying styles, inserting images, building tables, or converting Markdown/HTML to Word.

00

error-handling

jnPiyush

Implement robust error handling with exceptions, retry logic, circuit breakers, and graceful degradation. Use when designing error handling strategies, implementing retry policies, adding circuit breakers, configuring timeouts, or building health check endpoints.

00

mcp-apps-development

jnPiyush

Build MCP Apps (ext-apps) that render interactive UI inside conversational AI clients. Use when creating visual tool outputs, interactive dashboards, form-based tools, or rich media experiences in MCP-compatible hosts like Claude Desktop, VS Code Copilot Chat, or other MCP clients that support the A

00

Search skills

Search the agent skills registry