agentleFS
mahsumaktasmahsumaktas/agent-evolution-kit/skills/verification-gate/SKILL.md

verification-gate

Skill2 starsChanged 9 months agoMITView on GitHub

Verification gate before claiming task completion. No completion claim without fresh evidence.

  • Commits and pushes

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you did not run the verification command in this message, you cannot claim it passes.

    line 22
  2. Distinctive:

    When all tasks are complete, run an independent review:

    line 56
  3. Distinctive:

    After review passes, present options:

    line 93
  4. Distinctive:

    Keep: Inform the user of the branch name

    line 103
  5. Very specific:

    Delete: git branch -d <branch> (get confirmation)

    line 104
  6. Distinctive:

    If you catch yourself thinking or saying:

    line 108
  7. Distinctive:

    Commit, PR creation, task completion

    line 171

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Verification Gate

Overview

Claiming work is done without verification is not efficiency -- it is dishonesty.

Core principle: Evidence first, claims second. Always.

Violating the letter of this rule violates its spirit.

Iron Rule

NO COMPLETION CLAIM WITHOUT FRESH VERIFICATION EVIDENCE

If you did not run the verification command in this message, you cannot claim it passes.

3 Stages

Stage 1: Evidence Collection

BEFORE ANY status claim or satisfaction expression:

1. IDENTIFY: What command proves this claim?
2. RUN: Execute the FULL command (fresh, complete)
3. READ: Read the full output, check exit code, count failures
4. VERIFY: Does the output support the claim?
   - NO: State the real status with evidence
   - YES: State the claim with evidence
5. ONLY THEN: Make the claim

Skip any step = not verification, but fabrication

Common verification requirements:

ClaimRequired EvidenceNOT Sufficient
Tests passTest command output: 0 failuresPrevious run, "should pass"
Linter cleanLinter output: 0 errorsPartial check, guessing
Build succeedsBuild command: exit 0Linter passes, logs look fine
Bug fixedTest original symptom: passesCode changed, assumed fixed
Regression test worksRed-green cycle verifiedTest passes once
Subagent completedVCS diff shows changesSubagent said "success"
Requirements metLine-by-line checklistTests pass

Stage 2: Code Review

When all tasks are complete, run an independent review:

[Spawn a reviewer subagent]:

task="Code Review -- [feature/change name]

## What Was Done
[Summary]

## Requirements
[From plan/spec]

## Changed Files
[List]

## Task
1. Read the changed files
2. Compare requirements line by line
3. Security check (OWASP Top 10)
4. Clean code check
5. Test quality check

Report:
- Strengths
- Issues (Critical / Important / Minor)
- Verdict: Approved / Changes required"

Review result:

  • Critical issue --> Fix IMMEDIATELY
  • Important issue --> Fix before proceeding
  • Minor issue --> Note it, fix later
  • Reviewer is wrong --> Object with technical justification

Stage 3: Completion

After review passes, present options:

  1. Merge -- Merge into the main branch
  2. PR -- Create a pull request
  3. Keep -- Keep the branch, merge later
  4. Delete -- Delete the branch (if it did not work out)

Steps for each option:

  • Merge: git checkout main && git merge <branch>
  • PR: gh pr create --title "..." --body "..."
  • Keep: Inform the user of the branch name
  • Delete: git branch -d <branch> (get confirmation)

Red Flags -- STOP

If you catch yourself thinking or saying:

  • "It probably works" --> VERIFY
  • "I am sure" --> Certainty is not evidence
  • "The agent said it succeeded" --> Verify independently
  • "Great!", "Perfect!", "Done!", "All set!" --> No satisfaction expressions BEFORE verification
  • "Should pass", "probably", "looks like" --> RUN the verification command
  • "Just this once" --> No exceptions
  • "Linter passed" --> Linter is not a compiler
  • "I am tired" --> Fatigue is not an excuse
  • "Partial check is enough" --> Partial proves nothing

Common Rationalizations

ExcuseReality
"It works now"RUN the verification
"I am sure"Confidence is not evidence
"Just this once"No exceptions
"Linter passed"Linter is not a compiler
"Agent said success"Verify independently
"I am tired"Fatigue is not an excuse
"Partial check is enough"Partial proves nothing
"Different words, rule does not apply"Spirit overrides letter

Verification Patterns

Tests:

CORRECT: [Run test command] [See: 34/34 passed] "All tests pass"
WRONG:   "Should pass now" / "Looks correct"

Regression tests (TDD Red-Green):

CORRECT: Write --> Run (passes) --> Revert fix --> Run (MUST FAIL) --> Restore --> Run (passes)
WRONG:   "I wrote a regression test" (without red-green verification)

Build:

CORRECT: [Run build] [See: exit 0] "Build passes"
WRONG:   "Linter passed" (linter does not check compilation)

Requirements:

CORRECT: Re-read plan --> Create checklist --> Verify each --> Report gaps or completion
WRONG:   "Tests pass, phase complete"

Subagent delegation:

CORRECT: Subagent said success --> Check VCS diff --> Verify changes --> Report real status
WRONG:   Trust the subagent report

When to Apply

ALWAYS, BEFORE any of these:

  • Any form of success/completion claim
  • Satisfaction expressions
  • Any positive statement about work status
  • Commit, PR creation, task completion
  • Moving to the next task
  • Delegating to subagents

Integration

Related skills:

  • tdd-workflow -- For regression test verification
  • subagent-execution -- Pass through this gate after every task
  • systematic-debugging -- When verification fails

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.