agentleFS
Ces107Ces107/agent-forge/skills/verify-gate/SKILL.md

verify-gate

Skill0 starsChanged 5 months agoMITView on GitHub

Evidence-only verification gate that runs the project's real test suite, coverage, linter, type checker and security scan, reports each command with its exit code, and returns VERIFY PASS only when every check exits 0. Use before saying a task is done, before committing or opening a pull request, after an agent claims "all tests pass", or whenever you need proof that the code works rather than an assertion that it does.

7 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

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    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:

    Coverage: use the project's configured threshold.

    line 25
  2. Very specific:

    Secret scan: if gitleaks or trufflehog is installed, run it.

    line 27

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

Verify gate: measure substance, not claims

Trust no completion claim, including your own. A check counts only if you ran it in this session and saw its exit code.

Procedure

  1. Find the project's own checks first. The CI definition is the source of truth: read .github/workflows/*.yml, .gitlab-ci.yml, Makefile, package.json scripts, tox.ini, noxfile.py or the equivalent and mirror those commands exactly. Fall back to the per-stack defaults in references/stack-commands.md only for checks the project does not define.
  2. Pick the five check families: tests, coverage, lint, types, security (static analysis plus a secret scan). Not every stack has all five; record a missing family as N/A (no tool for this stack), never as PASS.
  3. Run each check as its own command and capture its exit code. Do not chain with &&: one failure would hide the others.
  4. Never install packages, edit configuration, lower thresholds or add ignore rules to make a check pass. A tool that is not installed is SKIPPED (not installed); tell the user the exact install command and let them decide.
  5. Coverage: use the project's configured threshold. If none is configured, report the number and do not invent a threshold.
  6. Secret scan: if gitleaks or trufflehog is installed, run it. Otherwise search tracked files for credential shapes (private key blocks, cloud access key ids, tokens or passwords assigned to literals) and report matches as file:line without echoing the secret itself.
  7. Do not fix anything during verification. Verifying and repairing are separate steps. If the user asks for fixes, make them, then re-run the whole gate from step 3.
  8. Write the report with assets/VERIFY-template.md: one row per check (command, exit code, result) and the last ~20 lines of real output for every failure.

Verdict

  • VERIFY: PASS: every applicable check ran and exited 0.
  • VERIFY: FAIL: at least one check exited non-zero. List them.
  • VERIFY: INCOMPLETE: nothing failed, but at least one check was skipped. This is not a pass.

Quote command output verbatim. Never summarise a check you did not run, and never report a verdict from memory of an earlier run after the code changed.

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.