agentleFS
MorningStar0709MorningStar0709/trae-agent-enhancements/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill18 starsChanged 7 months agoMITView on GitHub

Use before claiming work is done, fixed, tested, ready to commit, or ready to merge, including Chinese requests such as “确认真的修好了”“提交前再验证一下”“不要没跑就说完成”. Re-run the proving checks and report the real status from exit codes and output. Do not use while work is still exploratory or when no completion claim is being made.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, chinese-code-review and 8 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

  • 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

  • kntismSkill

    defense-in-depth

    Use when invalid data causes failures deep in execution, requiring validation at multiple system layers - validates at every layer data passes through to make bugs structurally impossible

    Also in 3 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

13 rules. 0 are common, 13 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to enforce an evidence threshold before claiming "done", "fixed", or "ready to commit".

    line 10
  2. Distinctive:

    Core Principle: No fresh evidence, no claiming success.

    line 12
  3. Distinctive:

    Before expressing a conclusion, ask yourself:

    line 31
  4. Distinctive:

    Do not just look at the last line or the exit code.

    line 47
  5. Distinctive:

    Do the failure, error, and skip counts match expectations?

    line 51
  6. Distinctive:

    If the evidence supports the conclusion, explicitly state the scope of success.

    line 56
  7. Distinctive:

    If the evidence does not support it, honestly report failure, partial pass, or unverified.

    line 57
  8. Distinctive:

    If you can only verify a part, do not write partial success as overall success.

    line 58
  9. Distinctive:

    Use PowerShell-compatible syntax for Windows host commands.

    line 73
  10. Distinctive:

    If validation relies on subagents, browsers, external services, or local tools, explicitly state which evidence was actually run and which …

    line 74
  11. Distinctive:

    If validation is not complete, do not use vague wording to package it as a success.

    line 75
  12. Distinctive:

    When wrapping up with this skill, the output must contain at least:

    line 95
  13. Distinctive:

    Run first. Read second. Conclude last.

    line 123

“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

Use this skill to enforce an evidence threshold before claiming "done", "fixed", or "ready to commit". Whenever you are about to express a success state, you must first run the validation corresponding to that conclusion.

Core Principle: No fresh evidence, no claiming success.

Use This Skill

  • You are about to say "done", "fixed", or "tests passed".
  • You are preparing to commit, create a PR, merge a branch, or finish a task.
  • A subagent, script, or automated process claims it has succeeded.
  • You need to convert "looks fine" into a verifiable conclusion.

Do Not Use

  • You are still in the middle of troubleshooting or implementation, with no conclusion to claim yet.
  • The user is only asking for ideas, approaches, or risks, rather than requesting confirmation of results.
  • You currently cannot run any validation, and you are just explaining risks or blockers upfront.

Execution Protocol

1. Define What to Prove First

Before expressing a conclusion, ask yourself:

  • Am I trying to prove "tests passed" or "build succeeded"?
  • To prove "bug is fixed", what is the minimal validation path?
  • To prove "requirement met", is there an item-by-item checklist?

2. Run the Corresponding Validation

Validation must map 1:1 to the conclusion:

  • "Tests passed" -> Re-run the relevant tests.
  • "Build succeeded" -> Re-run the build.
  • "Bug fixed" -> Re-run the original reproduction path.
  • "Requirement met" -> Verify against the checklist item by item.
  • "Subagent is done" -> Check the changes yourself and re-verify the results.

3. Read the Full Results

Do not just look at the last line or the exit code. Confirm at least:

  • Did the command execute completely?
  • Is the exit code correct?
  • Do the failure, error, and skip counts match expectations?
  • Are there hidden exceptions, warnings, or environment issues in the output?

4. Write Conclusion Based on Evidence

  • If the evidence supports the conclusion, explicitly state the scope of success.
  • If the evidence does not support it, honestly report failure, partial pass, or unverified.
  • If you can only verify a part, do not write partial success as overall success.

Common Mappings

ConclusionAcceptable EvidenceUnacceptable Evidence
Tests passedRe-ran tests and saw passing resultsRan them earlier, guess they should pass
Build succeededRe-ran build and got exit 0Linter passed, logs look like a success
Bug fixedOriginal reproduction path now passesChanged code but didn't verify reproduction
Ready to commitRelevant validations finished with clear results"Small change, let's just commit it"
Subagent doneReviewed diff yourself and re-verifiedOnly read the subagent's verbal report

Trae / Windows Conventions

  • In Trae, use RunCommand, GetDiagnostics, Read, and necessary testing tools to collect evidence.
  • Use PowerShell-compatible syntax for Windows host commands; do not execute Unix examples directly as host commands.
  • If validation relies on subagents, browsers, external services, or local tools, explicitly state which evidence was actually run and which are just static checks.
  • If validation is not complete, do not use vague wording to package it as a success.

Red Lines

  • "It should be fine now."
  • "Probably no issues."
  • "I am very confident."
  • Saying "It's done" before validating.
  • Announcing overall completion after only partial checks.
  • Trusting subagents, scripts, or historical results without re-verifying.

Failure Handling

  • Validation failed: Report the real failure information; do not downplay it as "mostly done". If the failure reveals a non-obvious root cause, environment quirk, or configuration issue that future agents may encounter again, invoke self-improvement to log it as an Experience before moving on.
  • Unable to run validation: Explicitly state the blocker, missing dependencies, and the currently unverified scope.
  • Only partially verified: Restrict the conclusion to the verified scope.
  • External dependency unavailable: Distinguish between "local static checks passed" and "end-to-end unverified".

Output Contract

When wrapping up with this skill, the output must contain at least:

  • What was verified.
  • What commands or checks were used.
  • What the key results were.
  • What the boundaries of the conclusion are.

Example:

Re-ran relevant tests and confirmed they passed:
- `npm test -- src/auth/auth.test.ts`
- Result: 12 passing, 0 failing

Therefore, I can only confirm the auth module changes passed this test scope; the full test suite was not re-run.

Integration

  • test-driven-development: Upstream — handles the red-green loop; this skill handles the evidence check before the final claim.
  • systematic-debugging: Upstream — handles finding the root cause; this skill confirms the result after fixing.
  • receiving-code-review: Upstream — re-verify after review fixes are applied.
  • git-commit: Downstream — finish the validations here before committing; do not reverse the order.
  • finishing-a-development-branch: Downstream — after verification passes, route to finishing-a-development-branch for wrap-up (merge, PR, keep, or discard). For S (Small) Fast-Path per review-and-completion-gates.md, append wrap-up guidance directly instead of routing to this skill.
  • requesting-code-review: Downstream — after verification, opt into code review before merging.
  • usage-log(可选): 当验证结果明显优于"无系统"时的典型表现(如发现了手动验证不会发现的 bug),在 docs/usage-log/USAGE-LOG.md 中追加一条记录以供将来参考。

Bottom Line

Validation is not a rhetorical action; it is an evidence-gathering action. Run first. Read second. Conclude last.

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.