agentleFS
dafaalzdafaalz/agent-skills/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill2 starsChanged 2 months agoMITView on GitHub

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs, requiring fresh verification command output before making assertions. Don't use for initial exploratory brainstorming or rough drafting phases.

  • Reads credentials

190 other projects use a version of this, 138 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, chinese-git-workflow and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 6 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • c-reichertSkill

    finishing-a-branch

    Use when implementation is complete and all tests pass — guides branch completion by presenting structured options for merge, PR, or cleanup.

    Also in 3 projects that use this

  • MicrosoftSkill

    testing-anti-patterns

    Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies

    Also in 4 projects that use this

  • +1 more from shibit-net

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 1 is common, 13 are distinctive, and 2 are very specific to this project.

  • 1

    Common

    Most of the 177 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Common:

    If you haven't run the verification command in this message, you cannot claim it passes.

    line 22
  2. Distinctive:

    BEFORE claiming any status or expressing satisfaction:

    line 26
  3. Distinctive:

    Run. Execute the full command freshly and completely.

    line 29
  4. Distinctive:

    Read. Inspect full output, check exit codes, and count failures.

    line 30
  5. Distinctive:

    Verify. Confirm whether output proves the claim.

    line 31
  6. Distinctive:

    If not, state actual status with evidence.

    line 32
  7. Distinctive:

    If yes, state claim with evidence attached.

    line 33
  8. Distinctive:

    Follow these five steps before claiming completion:

    line 40
  9. Distinctive:

    Read the full terminal output, verify exit code 0, and confirm zero errors or failures.

    line 56
  10. Distinctive:

    Run these git checks before making any completion claim:

    line 148
  11. Very specific:

    If any core documentation file was deleted inadvertently, restore it immediately using git checkout -- <file>.

    line 153
  12. Distinctive:

    Run linters against modified files to prevent shipping formatting bugs or breaking pre-commit hooks:

    line 158
  13. Very specific:

    Run the linter strictly against those files, such as vendor/bin/pint --test path/to/File.php or npx eslint path/to/File.tsx.

    line 165
  14. Distinctive:

    Do not execute full-repository scans that pull in pre-existing legacy errors outside the active scope.

    line 166
  15. Distinctive:

    If no linter is configured in project manifests, record "none configured" under linter status in the verification report without failing …

    line 167
  16. Distinctive:

    Run the command. Read the output.

    line 202

“Common” is measured: kept by at least 6 in 10 of the 177 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 before completion

Overview

Claiming work is complete without verification is dishonesty, not efficiency.

Core principle. Evidence before claims, always.

Violating the letter of this rule is violating the spirit of this rule.

The iron law

NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

If you haven't run the verification command in this message, you cannot claim it passes.

The gate function

BEFORE claiming any status or expressing satisfaction:

  1. Identify. Determine what command proves this claim.
  2. Run. Execute the full command freshly and completely.
  3. Read. Inspect full output, check exit codes, and count failures.
  4. Verify. Confirm whether output proves the claim.
    • If not, state actual status with evidence.
    • If yes, state claim with evidence attached.
  5. Claim. Make the claim only after evidence is verified.

Skip any step = lying, not verifying.

Workflow

Follow these five steps before claiming completion:

Step 1. Command identification

Identify the deterministic command that validates the exact claim, including test runners, linters, and type checkers.

Completion criterion. An exact terminal command selected that directly inspects the modified code or behavior.

Step 2. Fresh command execution

Execute the verification command in full without relying on cached logs or previous runs.

Completion criterion. Fresh command execution output captured in the current turn.

Step 3. Output inspection and exit code triage

Read the full terminal output, verify exit code 0, and confirm zero errors or failures.

Completion criterion. Terminal output confirms zero failing assertions, zero type errors, and zero unhandled exceptions.

Step 4. Git diff and repository safety gate

Inspect working tree status and diffs to confirm no core documentation files were inadvertently deleted and untracked artifacts are cleaned up.

Completion criterion. git status --short confirms all touched files are intentional, with zero unwanted file deletions or orphan scratch files.

Step 5. Claim with evidence

State the completion claim citing the exact command run, test counts, and exit status.

Completion criterion. The user receives a factual statement backed by terminal evidence, with zero unverified assumptions.

Common failures

ClaimRequiresNot Sufficient
Tests passTest command output showing 0 failuresPrevious run, "should pass"
Linter cleanLinter output showing 0 errorsPartial check, extrapolation
Build succeedsBuild command returning exit 0Linter passing, logs look good
Bug fixedTest verifying original symptom passesCode changed, assumed fixed
Regression test worksRed-green cycle verifiedTest passes once
Agent completedVCS diff shows changesAgent reports "success"
Requirements metLine-by-line checklistTests passing

Red flags

  • Using "should", "probably", "seems to"
  • Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
  • About to commit, push, or open a PR without verification
  • Trusting agent success reports
  • Relying on partial verification
  • Thinking "just this once"
  • Tired and wanting work over
  • ANY wording implying success without having run verification

Rationalization prevention

ExcuseReality
"Should work now"RUN the verification
"I'm confident"Confidence ≠ evidence
"Just this once"No exceptions
"Linter passed"Linter ≠ compiler
"Agent said success"Verify independently
"I'm tired"Exhaustion ≠ excuse
"Partial check is enough"Partial proves nothing
"Different words so rule doesn't apply"Spirit over letter

Key patterns

Tests

✅ [Run test command] [See: 34/34 pass] "All tests pass"
❌ "Should pass now" / "Looks correct"

Regression tests (TDD red-green)

✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
❌ "I've written a regression test" (without red-green verification)

Build

✅ [Run build] [See: exit 0] "Build passes"
❌ "Linter passed" (linter doesn't check compilation)

Requirements

✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
❌ "Tests pass, phase complete"

Agent delegation

✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
❌ Trust agent report

Git state and documentation preservation gate

Run these git checks before making any completion claim:

  1. Execute git status --short to verify all touched files.
  2. Inspect deleted files marked with D.
    • Core files must never be deleted without an explicit user prompt. Protected files include CODEBASE.md, AGENTS.md, CLAUDE.md, README.md, and .env.example.
    • If any core documentation file was deleted inadvertently, restore it immediately using git checkout -- <file>.
  3. Confirm that untracked temporary files, scratch scripts, or dump files are either cleaned up or added to .gitignore.

Scoped linter and code style verification

Run linters against modified files to prevent shipping formatting bugs or breaking pre-commit hooks:

  1. Detect configured linters:
    • For PHP or Laravel, check composer.json for laravel/pint or phpstan/phpstan.
    • For JavaScript or TypeScript, check package.json for eslint, biome, or prettier.
  2. Scope execution to modified files:
    • Identify touched files using git diff --name-only.
    • Run the linter strictly against those files, such as vendor/bin/pint --test path/to/File.php or npx eslint path/to/File.tsx.
    • Do not execute full-repository scans that pull in pre-existing legacy errors outside the active scope.
  3. If no linter is configured in project manifests, record "none configured" under linter status in the verification report without failing the gate.

Automated web performance and accessibility gate

For web applications with automated auditing configured, consult references/lighthouse-ci.md to run Lighthouse CI assertions against production builds.

Why this matters

From 24 failure memories:

  • Your human partner said "I don't believe you", which broke trust
  • Undefined functions shipped and crashed in production
  • Missing requirements shipped with incomplete features
  • Time wasted on false completion, redirect, and rework
  • Violates the rule that honesty is a core value

When to apply

Always verify before:

  • ANY variation of success or completion claims
  • ANY expression of satisfaction
  • ANY positive statement about work state
  • Committing, PR creation, task completion
  • Moving to next task
  • Delegating to agents

The rule applies to:

  • Exact phrases
  • Paraphrases and synonyms
  • Implications of success
  • ANY communication suggesting completion or correctness

The bottom line

No shortcuts for verification.

Run the command. Read the output. THEN claim the result.

This is non-negotiable.

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.