Verification Gate logo

Verification Gate

Community
ericgandrade
verification-gate

This skill should be used when anyone is about to claim work is done, fixed, passing, ready for review or ready to release, when the PR Verification and Trace sections must be filled or audited, when a PR description or agent report must be checked as testimony, or when the sdlc-dod Definition of Done must be run against a change (the Test stage of the Agentic SDLC, and the evidence rule for every stage). Not for designing tests (use test-strategy), the multi-lens review verdict (use multi-axis-code-review), writing the sdlc-dod block (use project-context), or wiring it into CI (use deployment-pipeline).

Overview

Publisherericgandrade
Repositoryagentic-sdlc
Skill nameverification-gate
Stars
113
Forks
17
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ericgandrade on GitHub. Read the source before you install it.

Installation

Install the Verification Gate AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ericgandrade/agentic-sdlc/tree/main/skills/verification-gate
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ericgandrade/agentic-sdlc.git /tmp/agentic-sdlc
mkdir -p .claude/skills
cp -r /tmp/agentic-sdlc/skills/verification-gate .claude/skills/verification-gate
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Verification Gate in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Verification Gate on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Verification Gate is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Verification Gate

Purpose

Agentic SDLC · Test stage, and the evidence rule for every other stage. Used by the Reviewer (re-runs everything before a GO or NO-GO verdict) and the Test Engineer (records acceptance tests red at the base commit and green at the PR head); the Developer runs it before claiming a task done or a PR ready for review.

The gate turns a sentence such as "T3 is done" or "all ACs pass" into rows of evidence: the command that proves the claim, run fresh, its output read, compared against the claim, and recorded with the working-tree fingerprint it ran on. It adds three checks around that loop: a claims check (the PR description and agent reports are testimony, never evidence), a two-way gap check (every AC is tested; no code exists that nobody asked for) and a Definition of Done check against the sdlc-dod block in AGENTS.md.

The stage contract lives in ../agentic-sdlc/references/verification.md (gate rules, CANNOT_VERIFY, fingerprint and staleness, trace). Record formats live in ../agentic-sdlc/templates/pr-body.md and ../agentic-sdlc/templates/acceptance-tests.md. This skill is the full procedure; when the two ever disagree, the contract wins and the gap is reported.

When to Use

  • Any completion claim: "done", "fixed", "passing", "works", "ready for review", "ready to release".
  • A Developer finishing a plan task (T-n) or opening a PR.
  • A Reviewer filling ## Verification and ## Trace before a verdict, or a re-review after new commits, a rebase or a merge from the base branch.
  • A Test Engineer recording green acceptance-test rows at the PR head.
  • A Release Engineer confirming DoD and AC rows on the release commit's fingerprint.
  • Any agent or subagent report that says DONE; the report is checked, not trusted.

Do not use it for neighbouring work:

  • Designing acceptance tests from the spec → test-strategy (this gate only runs and records them).
  • Judging correctness, design and security findings across lenses → multi-axis-code-review (this gate supplies the evidence and trace those lenses read).
  • Writing the failing test before code in Build → test-driven-development.
  • Finding the cause of a red test → systematic-debugging.
  • Running a plan task by task → executing-plans (it calls this gate at the end of every task).
  • Writing the sdlc-dod block for a repository → project-context (this gate reads and enforces it).

Workflow

Step 0 — Discover the evidence context

  1. Find the repository root (git rev-parse --show-toplevel). No repository → status NEEDS_CONTEXT; fingerprints need git.
  2. Find the sdlc-dod fenced block in AGENTS.md, then CLAUDE.md (the same lookup order as the agentic-sdlc scripts). No block → NEEDS_CONTEXT: sdlc-dod block missing; route to project-context. Never invent DoD commands.
  3. Find the acceptance criteria: specs/NNN-slug/spec.md (Standard, Full) or the issue body (Quick). Read the Priority of each AC; critical marks a Critical AC.
  4. Find specs/NNN-slug/plan.md (## Tasks rows with their AC column) and specs/NNN-slug/acceptance-tests.md (AC → test ID → command). Quick has neither; record n/a — Quick.
  5. Find the record: the PR body built from ../agentic-sdlc/templates/pr-body.md, or specs/NNN-slug/review.md when the host has no pull requests.
  6. Find the base: the base branch and the merge-base SHA (git merge-base <base> HEAD).
  7. Check which agentic-sdlc helpers exist. scripts/dod-gate.mjs (v3.1.0), scripts/evidence.mjs and scripts/trace-check.mjs (v3.2.0) may be absent from an older vendored copy: when absent, apply the manual procedures in this skill and write module missing: <path> once in the PR body. Never claim a helper ran when it does not exist.

Step 1 — Name the claim and list the required rows

Write the claim in one line, then derive the rows it needs from this table (it repeats ../agentic-sdlc/references/verification.md §1):

ClaimWhoDoD rowsAC rows
Task T-n doneDeveloperevery sdlc-dod keythe ACs on the task row in plan.md
PR ready for reviewDeveloperevery sdlc-dod keyevery AC of the spec (Quick: every AC in the issue)
GO verdictReviewer, re-running everythingevery sdlc-dod keyevery AC plus every test in acceptance-tests.md
Release GORelease Engineerevery key on the release commitevery AC on the release fingerprint, plus the rollback rehearsal

Claims outside the table ("no regressions", "performance within budget", "bug fixed", "the subagent finished") map to commands through references/claim-command-catalog.md. A claim with no command that could prove it is not a claim to make; restate it as an open question or a CANNOT_VERIFY row.

Step 2 — Check the Definition of Done block

Read sdlc-dod before running anything (full procedure: references/dod-check.md):

  • Keys are exactly lint, typecheck, test, coverage, coverage_min; one key: command per line.
  • A key the project lacks reads <key>: n/a — <reason>; it still gets a row with exit = n/a and the reason. An empty value, TODO, or n/a without a reason → the block is invalid → BLOCKED.
  • coverage_min is a number and never lower than its value on the base branch (git show <base>:AGENTS.md).
  • A diff that lowers coverage_min or weakens a DoD command (adds || true, --passWithNoTests, a narrower path, a disabled rule, a skip marker) is an authority violation (../agentic-sdlc/references/tdd.md §1, rule 6): the affected rows do not count, the finding is raised as Critical with cause code, and the only legitimate exception is a recorded waiver (../agentic-sdlc/references/governance.md §6).

The DoD and the ACs are separate checks. A green DoD never proves an AC; a passing AC test never replaces the DoD.

Step 3 — Map each AC row to its command

  • Standard and Full: take the command from acceptance-tests.md (Green at the PR head or Red at the base commit command column). Each test name contains its AC ID.
  • Quick: take the acceptance test from the issue; the regression test name contains AC-n.
  • Prefer a command that selects the AC's tests by name, anchored and ending the ID with a non-digit lookahead (-t "^AC-4(?![0-9])", --grep "^AC-4(?![0-9])"), so the output shows which tests ran; trace-check fails TR13/TR14 otherwise. pytest -k is a substring match without lookahead: name the test node IDs instead (pytest "<file>::test_ac_4_rejects").
  • An AC with no runnable test → either CANNOT_VERIFY (Step 6) when the reason is legitimate, or a gap returned to the Test Engineer. Never substitute a DoD row for an AC row.

Step 4 — Run fresh, bound to the fingerprint

Follow references/fresh-run-protocol.md for portable shell forms. The loop is:

  1. Compute the fingerprint (F1): node --input-type=module -e "const {pathToFileURL}=await import('node:url'); const m=await import(pathToFileURL(process.argv[1]).href); console.log(m.fingerprint().short)" "skills/agentic-sdlc/scripts/lib/git.mjs" (from an installed copy, point at ../agentic-sdlc/scripts/lib/git.mjs). Node absent → commit first, confirm git status --porcelain prints nothing, and use head:<first 12 hex of git rev-parse HEAD>.
  2. Run every DoD command and every AC command in full. Capture the exit code from the shell, never from memory, and the last ≤ 40 output lines. Write scratch logs only under .agentic-sdlc/evidence/, which the fingerprint excludes.
  3. Compute the fingerprint again (F2). F1 ≠ F2 → the tree changed during the run (a formatter, a generated file, a snapshot update) → discard every row and repeat from step 1.
  4. Each row gets F1, an ISO-8601 time with offset, and by = the role that ran it (Developer, Reviewer, Test Engineer, Release Engineer) or self-review when the author checked its own work in a separate pass.

When scripts/evidence.mjs exists, evidence record --ac AC-n -- <cmd> replaces steps 1–4 and evidence check --spec specs/NNN-slug/spec.md replaces the staleness test in Step 8; its exit 1 is a NO-GO.

Step 5 — Read the output and compare it with the claim

An exit code is necessary, not sufficient. For each row read the output and confirm:

CheckPass whenOtherwise
Tests executed≥ 1 test ran, and every test named with the AC ID appearsexit 0 with 0 tests (filter matched nothing) → row fails
Failures0 failed, 0 errorsrow fails; quote the first failing assertion
Skipsno skipped test carries the AC IDa skipped, filtered or disabled AC test counts as missing
Warningsno new deprecation or "test did not finish" warning in the excerptnote it for lens L2; the row may still pass
Coveragemeasured value ≥ coverage_minrow fails even when the tool exits 0; write the shell exit plus the comparison, 0 (76.2 < 78.4) — below floor
Claim textthe asserted outcome matches the AC wording, number and unitmismatch → finding for the Reviewer, routed spec / design / code

Compare against the AC, not against the Developer's description of the AC. An AC that says "returns 422 and no partial file" is not proven by a test that asserts only the status code.

Step 6 — Record the rows

Write the rows into ## Verification of the PR body using the exact columns ID · Test · Command · Exit · Fingerprint · Time · By, one row per command, DoD rows first (DoD:lint, DoD:typecheck, DoD:test, DoD:coverage), then AC-n rows, then the Docs row. Put the last ≤ 40 lines of each command in the collapsed excerpt block, each prefixed by $ <command> # ID: <row ID> · fingerprint <12 hex>. Update **Current fingerprint:** in the PR header.

Rules for the cells:

  • Exit is copied from the shell. A row counts only with exit 0 (or n/a — reason for an n/a DoD key) and a fingerprint equal to the current one.
  • A Test Engineer also fills Green at the PR head in acceptance-tests.md with the same rows.
  • An AC that cannot be exercised before merge goes in the ### CANNOT_VERIFY table with all seven cells: AC, Critical, reason, what was checked instead, verifier (role and person), when (≤ 14 days after release), waiver. "Not run" without a reason is a missing row. A Critical AC there needs a waiver (owner ≠ requester, reason, expiry ≤ 30 days, follow-up issue) before Test sign-off; more than half of the ACs there → NO-GO and back to Design for test seams. Repeat each item in ## Review guide and as a post-release check in the release notes.
  • A section with nothing to report says none; a blank cell is a missing row.

Step 7 — Claims check (testimony against evidence)

The PR ## Summary, the commit messages, code comments and every agent report are testimony. Run this step after Steps 4–6, so the narrative cannot steer what gets run:

  1. Extract every checkable statement: ACs met, tests added, behaviour preserved, "no regressions", numbers (row limits, latency, sizes), "same as X", files untouched.
  2. Map each statement to a Verification row or to a command from references/claim-command-catalog.md.
  3. Mark each supported (a fresh row proves it), falsified (output contradicts it → finding with the output as evidence) or unsupported (no row can prove it → ask for the evidence or remove the statement).
  4. Rows with by: Developer are testimony for the Reviewer; they are re-run, never copied.

On platforms with subagents, dispatch prompts/claims-auditor.md to a fresh context that receives the diff, the spec, the acceptance-tests map and the commands, and receives the PR text only after its own runs. If the platform has no subagents, run the prompt inline in a fresh pass after clearing working notes: start with --- Reviewer pass: claims audit ---, load only the inputs the prompt lists, and label the result self-review in ## Verification and ## Review guide.

Step 8 — Two-way gap check

Fill ## Trace with one row per AC and an Orphans line (procedure and examples: references/two-way-gap-check.md):

  • Forward (untested requirements): every AC has ≥ 1 task, ≥ 1 commit and ≥ 1 test with a fresh passing row, or a waived CANNOT_VERIFY.
  • Backward (unrequested code): every task names ≥ 1 AC; every code commit names ≥ 1 T-n (Quick: AC-n) through Refs: Tn AC-n or [Tn, AC-n] (artifact-only commits are exempt, ../agentic-sdlc/references/verification.md §5); every cited AC ID exists in the spec; every changed file belongs to a task's Files list (Quick: n/a — Quick); every behaviour the diff adds serves an AC. Behaviour no AC asks for → L1 Important finding, scope outside the approved spec.

Any orphan → NO-GO until resolved by the rule in the orphan table of the reference. When scripts/trace-check.mjs exists, its output replaces the manual matrix and its exit 1 is a NO-GO.

Step 9 — Staleness re-check and status

Re-check every row's fingerprint against the current one before each of these moments: a completion claim, a Reviewer GO, the Test sign-off request, the Release sign-off request, and after any commit, rebase, amend or merge from the base branch. A row is stale when its fingerprint differs, is empty or unknown, or is a head: row while the tree is now dirty. Stale → re-run; a stale row never counts.

Return the shared status:

StatusWhen
DONEevery required row fresh and passing; claims supported; Orphans none
DONE_WITH_CONCERNSall of the above, with listed concerns (new warnings, a lower-than-ideal test level)
BLOCKEDa row missing, non-zero, or stale; a falsified claim; an orphan; an invalid DoD block
NEEDS_CONTEXTno repository, no sdlc-dod block, no ACs, or no acceptance-test map on Standard/Full
CANNOT_VERIFYat least one AC recorded in the CANNOT_VERIFY table; names who verifies it and when

A Reviewer starts from NO-GO and moves to GO only when every AC has a fresh passing row or a waived CANNOT_VERIFY and the Orphans list is none; the remaining GO conditions (findings, lenses) belong to multi-axis-code-review. Agents never give Test sign-off; the human reviewer does.

Close. End with the status.mjs --next output.

Anti-rationalization

The left column quotes thoughts to catch; it is not guidance.

ThoughtReality
"The tests passed ten minutes ago."Ten minutes ago was another fingerprint. Re-run.
"Only a comment or a rename changed."Any byte moves the fingerprint; renames break imports. Re-run.
"Exit 0, so it passed."Exit 0 with 0 tests executed proves nothing. Read the count.
"CI is green."CI ran the DoD on some commit. Check its SHA, and each AC still needs its own row.
"The Developer pasted the output."Testimony. The Reviewer runs the command again.
"The subagent said DONE."Read the diff and run the command; a report is a claim.
"The focused test passes, so there are no regressions."A focused run proves one test. "No regressions" needs the full suite on the current fingerprint.
"Coverage only dropped 0.3 points; lower the floor."coverage_min is never lowered. Add the missing test, or request a waiver from an owner.
"This AC is hard to test; leave it out."Write a CANNOT_VERIFY row with reason, verifier and date, or return it to the Test Engineer.
"The PR description explains it well."Well-written testimony is still testimony. Map each statement to a row.
"The extra endpoint is harmless."Unrequested behaviour is scope outside the spec: L1 Important finding.
"Run it once more until it passes."A test that passes on retry is flaky; record the failure and route it to systematic-debugging.
"Skip the trace this time; it is a small PR."Small PRs are where orphan commits and untested ACs hide. Fill the matrix.

Critical Rules

  • NEVER state done, fixed, passing, works or ready without fresh rows for the DoD and the ACs on the current fingerprint.
  • NEVER type an exit code, a test count or a coverage value from memory; copy them from the output.
  • NEVER copy another role's rows into a Reviewer GO; re-run every command.
  • NEVER count a row whose fingerprint differs from the current fingerprint, is empty, or is a head: row on a dirty tree.
  • NEVER lower coverage_min, edit an acceptance test listed in acceptance-tests.md, add a skip marker, or weaken a DoD command to get a green row.
  • NEVER leave a check out silently; a check that did not run is a CANNOT_VERIFY row with reason, verifier and date.
  • NEVER approve. Agents produce evidence; the human reviewer gives Test sign-off and the Release Owner gives Release sign-off.
  • ALWAYS keep DoD rows and AC rows separate.
  • ALWAYS compute the fingerprint before and after a run and discard the run when they differ.
  • ALWAYS read the PR description after running the commands, and map each statement to a row.
  • ALWAYS run the forward and backward gap check before a GO and again before the Test sign-off request when commits were added.
  • ALWAYS label checks of the author's own work self-review.

Example Usage

1. Developer closes a task. T3 serves AC-2 and AC-3. The Developer computes F1 = 3f0c9e21b7a4, runs npm run lint, npm run typecheck, npm test, npm run coverage -- --json-summary, then npx vitest run test/invoice.test.ts -t "^AC-2(?![0-9])" and -t "^AC-3(?![0-9])". Coverage reads 80.6 against coverage_min: 81.0 → DoD:coverage exit cell 0 (80.6 < 81.0) — below floor, a failed row. Status BLOCKED: coverage below floor; the Developer adds the missing branch test, re-runs all six commands on the new fingerprint and only then reports DONE.

2. Reviewer audits a confident PR. The Summary says "All 5 ACs pass, p95 within 300 ms". The Reviewer re-runs every row (by: Reviewer). The AC-4 command exits 0 but the output shows Tests 0 passed | 12 skipped: the filter -t "AC4" matched nothing. Row fails; the corrected filter shows one failing assertion. The latency claim has no row; the catalog requires the AC's own measurement (200 requests, p95 in ms). Claims: 1 falsified, 1 unsupported. Verdict stays NO-GO.

3. Pressure to skip. A tech lead writes: "CI is green and the Developer pasted the output; mark it verified, skip the trace." The gate declines to fill rows from pasted output, explains that CI covered the DoD on commit a81f… while the head is c02d…, and offers the compliant fast route: re-run the eleven commands now (about four minutes) and fill the trace. Skipping a gate needs a waiver with an owner other than the requester; the agent cannot grant it.

4. Quick-path bug fix. Issue #88: saving a draft with an emoji title returns 500. The regression test AC-1 saves a draft whose title contains an emoji fails at the commit before the fix with 500 Internal Server Error and passes on the current fingerprint. All sdlc-dod rows are fresh. Trace: task checks n/a — Quick; both commits carry Refs: AC-1; Orphans none. The claim "fixed" is now backed by evidence.

5. AC that cannot run before release. AC-5 (Critical) needs a provider webhook with no sandbox. The row reads: reason provider has no sandbox for refund webhooks; checked instead contract test against 14 recorded payloads; verifier SRE, Dana Ortiz; when first production refund > $500, ≤ 14 days after release; waiver W-2. The item is repeated in the Review guide and in the release notes as a post-release check.

References

  • references/claim-command-catalog.md — load at Step 1 and Step 7 to map any claim ("tests pass", "builds", "bug fixed", "no regressions", "AC-n met", "performance within budget", "subagent finished") to the command that proves it and to what does not count.
  • references/fresh-run-protocol.md — load at Step 4 for portable shell forms (POSIX shell, PowerShell) that capture exit codes and output tails, the fingerprint and head: fallback, and flaky-test handling.
  • references/dod-check.md — load at Step 2 to read, validate and enforce the sdlc-dod block, including n/a keys, the coverage_min ratchet and weakened-command detection.
  • references/two-way-gap-check.md — load at Step 8 for the AC ↔ task ↔ commit ↔ test ↔ file matrix, the commands that build it, and the orphan resolution table.
  • prompts/claims-auditor.md — dispatch at Step 7 as a fresh-context subagent (or run inline as a labelled pass) that re-runs the commands and audits the PR description as testimony.
  • ../agentic-sdlc/references/verification.md — the stage contract; load when any rule here seems ambiguous.
  • ../agentic-sdlc/templates/pr-body.md and ../agentic-sdlc/templates/acceptance-tests.md — the record formats filled in Steps 6 and 8.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Verification Gate AI skill do?

This skill should be used when anyone is about to claim work is done, fixed, passing, ready for review or ready to release, when the PR Verification and Trace sections must be filled or audited, when a PR description or agent report must be checked as testimony, or when the sdlc-dod Definition of Done must be run against a change (the Test stage of the Agentic SDLC, and the evidence rule for every stage). Not for designing tests (use test-strategy), the multi-lens review verdict (use multi-axis-code-review), writing the sdlc-dod block (use project-context), or wiring it into CI (use deploym...

Why use Verification Gate on TypingMind?

Because you install it once and use it with any model. Verification Gate is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Verification Gate in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ericgandrade/agentic-sdlc/tree/main/skills/verification-gate. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Verification Gate?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Verification Gate?

As many as you like. As long as a model supports skills, you can use Verification Gate with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Verification Gate AI skill free?

Yes. It is published on GitHub by ericgandrade under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇