agentleFS
ek0212ek0212/agent-ready-repo-kit/skills/verification-loop/SKILL.md

verification-loop

Skill0 starsChanged 4 months agoMITView on GitHub

Build repeatable verification loops from recurring manual checks. Use when user says "make this a verification loop", "turn this check into a skill", "add verification to a skill", "chain skills", "wrap this workflow with verify", or asks for reusable pre-commit, post-change, or PR checks.

84 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use everything-claude-code, everything-claude-code-conventions 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.
  • InfopibeSkill

    everything-claude-code

    Also in 10 projects that use this

  • mryeastcodeSkill

    everything-claude-code-conventions

    Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

    Also in 8 projects that use this

  • InfopibeSkill

    investor-materials

    Create and update pitch decks, one-pagers, investor memos, accelerator applications, financial models, and fundraising materials. Use when the user needs investor-facing documents, projections, use-of-funds tables, milestone plans, or materials that must stay internally consistent across multiple fundraising assets.

    Also in 25 projects that use this

  • niloykumarbarmanSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 8 projects that use this

  • tpavanipradeepSkill

    nextjs-turbopack

    Next.js 16+ and Turbopack — incremental bundling, FS caching, dev speed, and when to use Turbopack vs webpack.

    Also in 15 projects that use this

  • CodeWithBehnamSkill

    dmux-workflows

    Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.

    Also in 17 projects that use this

  • +1 more from Infopibe

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 17 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 78 edited versions we read keep these.

  • 17

    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:

    Use for recurring checks around code, docs, design, security, accessibility, logging, public APIs, screenshots, tests, or release gates.

    line 11
  2. Distinctive:

    Do not use for one-off test runs, generic QA, or implementing the product change itself unless user asks to encode reusable verification.

    line 13
  3. Very specific:

    Embedded: check belongs to one producing skill you control.

    line 48
  4. Distinctive:

    Stop rule: when to fail fast or escalate.

    line 65
  5. Distinctive:

    Prefer deterministic commands over model judgment.

    line 67
  6. Very specific:

    Keep tool permissions minimal when runtime supports allowed-tools.

    line 75
  7. Distinctive:

    Add representative, negative, and boundary eval cases.

    line 76
  8. Distinctive:

    Add one clear verification step near end of workflow.

    line 81
  9. Distinctive:

    Add check to producing skill verification list.

    line 82
  10. Distinctive:

    Add or update eval case proving embedded check runs.

    line 83
  11. Distinctive:

    Keep each called skill independently useful unless chain is always required.

    line 89
  12. Distinctive:

    Start as advisory before blocking.

    line 95
  13. Distinctive:

    Run on fresh task or fixed fixture.

    line 99
  14. Distinctive:

    If loop does not run, tighten description or workflow.

    line 110
  15. Distinctive:

    No deterministic verifier: write evidence rubric and mark judgment.

    line 120
  16. Distinctive:

    Check is repeatable, not one-off.

    line 126
  17. Distinctive:

    No PR-wide blocking before loop stabilizes.

    line 130
  18. Distinctive:

    No efficacy claim without paired runs.

    line 131
  19. Distinctive:

    Use direct simple sentences.

    line 135

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

Build a loop that catches the same miss before humans repeat the same review.

Scope

Use for recurring checks around code, docs, design, security, accessibility, logging, public APIs, screenshots, tests, or release gates.

Do not use for one-off test runs, generic QA, or implementing the product change itself unless user asks to encode reusable verification.

Inputs

  • Manual follow-up user repeats.
  • Artifact to inspect: diff, file, route, screenshot, log, API, doc, or PR.
  • Trigger conditions.
  • Pass, fail, and warning criteria.
  • Fix authority: report only, patch automatically, or ask.
  • Existing skill or workflow to embed or wrap.
  • Cost, latency, false-positive tolerance, and team visibility.

User owns standard. Mark judgment calls, missing evidence, and unstable gates.

Workflow

Step 1: Pick Check

Choose check only when it is repeatable and observable.

Good checks have:

  • Clear trigger.
  • Inspectable evidence.
  • Small result surface.
  • Known failure mode.
  • Specific fix or escalation.

Reject vague checks such as make quality better. Convert them into checklist or rubric first.

Step 2: Choose Run Mode

Pick one mode:

  • Standalone: cross-cutting or occasional check invoked on demand. Use for security scans, accessibility audits, license headers, docs drift, or checks not tied to one producer.
  • Embedded: check belongs to one producing skill you control. Add verification step to that SKILL.md.
  • Chained: several handoffs always run together, or original skill cannot be edited. Create wrapper that invokes producer, then verifier.
  • PR gate: stable loop runs on every PR. Use only after low false-positive rate, clear owner, team buy-in, and documented bypass path.

Promote from standalone to embedded or chained only after user repeatedly runs same follow-up. Promote to PR gate only after chain is stable.

Step 3: Write Contract

Define:

  1. Trigger: exact user language, file path, diff type, or workflow state.
  2. Scope: what files, artifacts, or states are checked.
  3. Evidence: commands, screenshots, source reads, static checks, or tests.
  4. Pass criteria: required facts.
  5. Fail criteria: violations and severity.
  6. Fix policy: patch, stage comment, report, or ask.
  7. Report shape: file:line, artifact, evidence, fix, and limits.
  8. Stop rule: when to fail fast or escalate.

Prefer deterministic commands over model judgment. Use rubric only where deterministic verifier is not practical.

Step 4: Implement

For standalone skill:

  • Create focused SKILL.md.
  • Add trigger-rich frontmatter.
  • Keep tool permissions minimal when runtime supports allowed-tools.
  • Add representative, negative, and boundary eval cases.

For embedded check:

  • Edit producing skill you control.
  • Add one clear verification step near end of workflow.
  • Add check to producing skill verification list.
  • Add or update eval case proving embedded check runs.

For chained loop:

  • Create wrapper skill.
  • State order, handoff artifact, failure stop rule, and final report shape.
  • Keep each called skill independently useful unless chain is always required.

For PR gate:

  • Reuse same rubric and commands from standalone or chain.
  • Define owner, signal, bypass, false-positive handling, and rollout stage.
  • Start as advisory before blocking.

Step 5: Verify Loop

Run on fresh task or fixed fixture.

Confirm:

  • Trigger loads correct skill.
  • Check actually runs.
  • Passing case stays quiet.
  • Failing case is caught.
  • Fix or report follows policy.
  • Output names evidence and limits.

If loop does not run, tighten description or workflow. If loop overfires, narrow trigger or scope.

Step 6: Control Cost

Each loop adds tokens, time, and possible noise. Keep expensive checks standalone until value is proven. Batch related checks only when they inspect same artifact and fail under same owner.

Fallbacks

  • Vague standard: produce checklist and ask for pass/fail criteria.
  • Producer skill cannot be edited: create wrapper chain.
  • No deterministic verifier: write evidence rubric and mark judgment.
  • High false-positive risk: keep standalone and advisory.
  • Team-wide gate requested too early: return staged rollout plan.

Verify

  • Check is repeatable, not one-off.
  • Mode matches trigger frequency and ownership.
  • Contract has trigger, evidence, criteria, fix policy, and stop rule.
  • Eval cases include representative, negative, and boundary tasks.
  • No PR-wide blocking before loop stabilizes.
  • No efficacy claim without paired runs.

Writing

Use direct simple sentences. Skip rhetorical flourishes. Avoid X-not-Y contrasts, self-answering rhetorical questions, em dashes, alliterative three-part phrases, vague inspirational pivots, unsourced claims, and unverified quotes.

Output

Return loop design or repo change. Include mode, trigger, contract, files changed, eval cases, verification result, promotion path, and limits.

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.