agentleFS
ovargasovargas/virtual-team/skills/verification-gates/SKILL.md

verification-gates

Skill14 starsChanged 9 months agoMITView on GitHub

Use when running or writing verification steps in a service repo — resolves the project's declared fast and full gate commands from the ## Verification section of stack.md, runs them verbatim, and falls back to a visible inferred command when none is declared

6 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

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    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. Distinctive:

    Declared: use the command verbatim. Do not add flags, narrow it to changed files, or swap it for a faster one.

    line 46
  2. Very specific:

    Only Full gate → use it for fast too.

    line 48
  3. Very specific:

    Only Fast gate → infer full (step 4).

    line 49
  4. Distinctive:

    Never substitute a different or narrower command to get a pass.

    line 63
  5. Distinctive:

    If the gate itself is broken (missing target, tool not installed), stop and report it to the founder.

    line 64

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

The project decides how its work is verified. The plugin runs the commands the project declared, at the moments this skill names, and nothing else.

1. Ownership

  • The project owns its gates: hook scripts, linters, Makefile targets, CI.
  • The plugin never installs, edits, or wires them, and never edits stack.md to declare them.
  • The plugin runs only the declared Fast gate and Full gate commands (or the inferred fallback below).

2. Declaration Format

Service-repo stack.md:

## Verification
- **Fast gate:** `make check-fast`
- **Full gate:** `make check`
  • One command per line, run from the repository root.
  • TBD counts as not declared.
  • Other lines in the section are capability lines (section 6). Ignore them when resolving gates.

3. Which Gate When

MomentGate
Phase boundary in /implementfast
Final verification in /implementfull
/flow gate after /implement, and the end of an auto-fix cyclefull
After each fix and at the end of /flow-fix-pipelinefull
Before claiming completionfull

A plan that lists its own verification commands wins. Declared gates fill the gaps where a plan lists none. They never override the plan.

4. Resolve the Command

  1. Read stack.md → ## Verification.
  2. Declared: use the command verbatim. Do not add flags, narrow it to changed files, or swap it for a faster one.
  3. Only one declared:
    • Only Full gate → use it for fast too.
    • Only Fast gate → infer full (step 4).
  4. Not declared (no section, missing line, or TBD):
    • Infer from the project the same way you would without this skill: Makefile targets, package scripts, the stack's test, lint, and typecheck tools.
    • Print once per command run:
      Inferred gate: <cmd> — declare it under ## Verification in stack.md
    • Proceed with the inferred command.

Trust: gates execute repo code, the same as running the project's tests. Running them in an untrusted repo carries the same risk as running its test suite; a declared gate adds no new exposure. Review stack.md changes from untrusted contributors like any other code change.

5. Failure Handling

  • A failing declared gate is a failing verification. Fix the cause and re-run the same command.
  • Never substitute a different or narrower command to get a pass.
  • If the gate itself is broken (missing target, tool not installed), stop and report it to the founder. Fixing the project's gate is the project's call.

6. Capability Lines

The same section can declare, per capability in skills/verification-gates/references/catalog.md, how the project covers it. Each line is exactly one of:

  • - **<catalog-id>:** <mechanism> — a command, hook script path, or file path
  • - **<catalog-id>:** n/a — <reason> — the reason is mandatory
  • - **<catalog-id>:** deferred — <reason> (<backlog ref>) — the ref is optional
  • - **extra / <id>:** <mechanism> — a project-local capability, checked for existence only

/virtual-team:doctor gates audits these lines. Pipeline commands never run them; they run only Fast gate and Full gate.

Integration

This skill is loaded by:

  • commands/implement.md — phase and final verification
  • commands/flow.md — gate after /implement, auto-fix cycle, inline mode
  • commands/flow-fix-pipeline.md — fix-cycle verification
  • commands/plan.md — Phase and Final Verification blocks
  • commands/doctor.md — gates audit of capability lines

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.