validate
Prove the session's work is correct — before anyone calls it done.
One command that proves an AI coding session's work is correct before
anyone calls it done. /validate detects what the session changed, runs the
project's static checks and tests (with regression proof for bug fixes), then
runs the real thing — CLI, API, or browser — and reports per-tier verdicts
backed by evidence captured during the run. No evidence, no "done".
/validate # detect the session's scope and validate it
/validate main..HEAD # explicit commit range
/validate src/checkout/ # explicit paths
Why
"Tests pass" is where most AI sessions stop — and it is not proof the change
works. It proves the CI suite runs. This plugin closes the gap with three
tiers under one verdict:
| Tier | Question it answers |
|---|
| 1 — static | Does it typecheck, lint, and build? |
| 2 — tests | Do the suites pass — and for a bug fix, does the covering test fail without the fix? |
| 3 — runtime | Does the running app actually behave correctly where the change lands? |
Verdicts are PASS / FAIL / BLOCKED / SKIP, per tier and overall. Every
PASS points at evidence captured this run: quoted output, exit codes,
response bodies, screenshots. Hedging ("should work", "probably", "seems
to") is banned from the report. After 3 failed fix attempts the run stops
and hands the decision to you instead of looping — one extra round only when
the remaining failure is a declared consequence of a change it already proved
— and every report states how many attempts it spent.
Install
Works identically in a Copilot CLI session and a Claude Code session:
/plugin marketplace add guimatheus92/validate
/plugin install validate@validate
Usage
- Copilot CLI:
/validate [scope]
- Claude Code:
/validate:validate [scope] (or bare /validate — see note below)
- VS Code Copilot Chat: copy
.github/prompts/validate.prompt.md
into your repo's .github/prompts/ and run /validate in chat.
Scope defaults to the full range of the session's work — every commit on the
branch plus uncommitted changes, never just the last commit. Pass a range,
branch, or paths to override.
What to say to the agent
The slash command is the explicit trigger, but the skill also fires on
natural language once the plugin is installed. Any of these work:
/validate
/validate main..HEAD
/validate src/checkout/
/validate plan # dry-run: declare what would (and would not) be validated, run nothing
"Validate the work before we call it done."
"Prove this fix actually works — don't just run the tests."
"Is this done? Validate it properly: tests, regression proof, and run the app."
"We just added the export feature — validate it end to end."
What you get back is always the same shape: an overall verdict on line one,
a per-tier table (static / tests / runtime) — plus a deployed-evidence
status table, caller and service sides reported separately, and a
verdict-scope line when the change touches deployed
behavior — and an evidence appendix with the captured output. If the agent
answers with "should work" instead of a verdict, the skill did not run —
invoke the slash command explicitly.
Useful follow-ups after a run:
"Tier 2 is BLOCKED — here's the DATABASE_URL, rerun it."
"Record the recipe so next time is faster." # writes .claude/skills/validate-recipe/SKILL.md by default
"Validate only the runtime tier for src/api/."
The coverage plan (and /validate plan)
Before executing anything, the run declares its coverage: what it WILL
validate per tier, and what it canNOT validate with the reason (no tooling
in the environment, no credentials, artifact not locally executable — think
BI models, IaC applies, CI workflows). That declaration binds the final
report: declared gaps come back as SKIP/BLOCKED with the same reasons, and
nothing declared goes silently missing.