agentleFS
Ian-LouwIan-Louw/potion/skills/verify/SKILL.md

verify

Skill1 starsChanged 4 days agoMITView on GitHub

Use after executing a phase, or whenever work is about to be declared done — when the user says "verify", "potion verify", "audit the work", "did the agents actually do it", "is the phase actually done", or before shipping anything user-facing.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use genie-hacks, workfly 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.
  • automagik-devSkill

    genie-hacks

    Browse, search, and contribute community hacks — real-world patterns for provider switching, teams, skills, hooks, cost optimization, and more.

    Also in 3 projects that use this

  • automagik-devSkill

    workfly

    Discover a procedure and build its saved workflow — dynamic discovery, drafted script, adversarial verification, landed in the catalog.

    Also in 3 projects that use this

  • AviadPSkill

    risk-assess

    Assess the risk and blast radius of a proposed code change before implementing it. Evaluates CI impact, framework-wide vs localized scope, rollback path, and identifies blindspots. Use when user says "what's the risk", "is this safe", "assess the impact", "risk assess", "blast radius", or before applying framework-wide or CI-affecting changes. Do NOT use for code quality review (use code-quality) or plan validation (use design-validator).

    Also in 3 projects that use this

  • sanmidableSkill

    defaults

    Also in 3 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 7 projects that use this

  • TheKREATORSSkill

    instinct-export

    Export instincts from project/global scope to a file

    Also in 3 projects that use this

  • +2 more from automagik-dev

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before finishing, re-read the emitted VERIFICATION.md against this block.

    line 22
  2. Very specific:

    Check runner contract: per CORE.md — MATCH on stdout/exit, CHECK_BROKEN on ERROR.

    line 42
  3. Very specific:

    Do NOT tell it what the executors claimed or what step 1 found.

    line 55
  4. Very specific:

    Witnesses: When promoting a gap-fix or a truth whose proof is a distinctive code marker, append a type:check witness — key …

    line 88
  5. Very specific:

    Evidence index: After filling VERIFICATION.md, (re)generate the index on every verdict: sh …

    line 104
  6. Distinctive:

    Hot-loop exception: When a gap's repro needs costly environment setup (emulator boot, device, slow service), ONE agent may run the full gap …

    line 120

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

Potion Verify

Inherit ${CLAUDE_PLUGIN_ROOT}/core/CORE.md. You are the ORCHESTRATOR of verification, not the auditor — the static audit is a spawned verifier told nothing of executor claims. Prime directive: DO NOT TRUST SUMMARIES — a SUMMARY documents what an agent SAID; verification checks what exists. Task completion ≠ goal achievement.

Verdict contract (must hold in the emitted VERIFICATION.md):

  • Closed truth vocabulary: VERIFIED | STATIC_ONLY | FAILED | COULD_NOT_CHECK(reason) | HUMAN_NEEDED. STATIC_ONLY is never final; only your runtime step promotes a truth to VERIFIED.
  • Verdict pass ONLY when every truth is VERIFIED, HUMAN_NEEDED acknowledged this cycle, or COULD_NOT_CHECK converted by the user this cycle — an unconverted COULD_NOT_CHECK can never pass.
  • verified_at from date -Iseconds and tested_sha from git rev-parse HEAD — both derived mechanically, never typed (a hand-typed value has tripped the ship gate once already).
  • Runtime proof is an evidence path, not a claim. Before finishing, re-read the emitted VERIFICATION.md against this block; fix in place, or regenerate it — at most once.

The protocol — four steps, fixed ownership

Step 1 — Deterministic checks (you). Target phase: the explicit argument if given, else the current phase in STATE.md's Position — state which. Preflight (before anything expensive): build green? test runner present? .potion/verify-env.md present, recipe satisfiable for this phase's runtime truths? Record results in VERIFICATION.md's ## Preflight table. A runtime truth whose env check fails is COULD_NOT_CHECK(reason) NOW — do not spawn tools or burn a live attempt to rediscover it. verify-env MISSING entirely → stop; that's a /potion:discuss defect (declaration-required). Then run the project's mechanical verifiers: test suite, build, type check, lint. Then every type:check learning in .potion/learnings.jsonl — ratchet locks. A check that MISMATCHES is a regression; a check whose command ERRORS is CHECK_BROKEN → route to /potion:learn for repair or tombstone, never report it as a regression. A check keyed witness-* that MISMATCHES gets one repo-wide grep for its marker: found elsewhere = DRIFT (route to /potion:learn to re-pin), absent = REGRESSION — lead with it. Check runner contract: per CORE.md — MATCH on stdout/exit, CHECK_BROKEN on ERROR; never add || true. Promotion sweep: grep -n '^- \[defect\]' over STATE.md's ## Fog and any legacy ## Parked; every hit is promoted NOW (gap entry in this cycle's VERIFICATION.md or Decision-queue item, per CORE's routing rule) and removed from the bucket — an unpromoted [defect] line at verdict time is itself a defect.

Step 2 — Blind static ladder (spawned verifier). Spawn an agent: "First read ${CLAUDE_PLUGIN_ROOT}/core/CORE.md and ${CLAUDE_PLUGIN_ROOT}/agents/potion-verifier.md. Audit phase {NN-slug} of {repo path}." + the phase's must_haves inlined + relevant locked decisions + its <spec_deltas> requirement IDs and scenario text (delta-scoped: touched requirements only). Do NOT tell it what the executors claimed or what step 1 found. Done when its ladder results sit in VERIFICATION.md with statuses from STATIC_ONLY | FAILED | HUMAN_NEEDED only.

Step 3 — Runtime evidence (you). Freshness first: confirm the running process serves HEAD — reload/rebuild after any code change (e.g. one dev-menu reload for Metro); stale-bundle evidence is not evidence. Every STATIC_ONLY truth gets a live pass: start the app/tool yourself (if Claude can run it, Claude runs it) and exercise the truth. Where a browser tool exists, diff pattern: snapshot → act → snapshot-diff — a state diff is proof, a claim is not. Proof artifacts land in phases/NN-slug/evidence/ named {plan-or-cycle}-{slug}.{ext} — git check-ignore -q the name first (ignored → rename), trim to the relevant window; VERIFICATION.md's Runtime evidence column references them by path — a path is checkable, a claim is not. CLI/library/pipeline equivalent: one real invocation / import-and-call in a scratch script. Cross-check each SUMMARY's task→commit table against git log — "do not trust summaries" includes their hashes. Use the verify-env recipe for live sessions. A truth blocked ENVIRONMENTALLY (closed reasons per CORE.md) is COULD_NOT_CHECK(reason). A truth only a human can attest BY NATURE is HUMAN_NEEDED with: what to test, expected result, why. Batch both kinds into ONE checkpoint at the end (verification fatigue is real).

Step 4 — Verdict (you).

Harvest before verdict (pass only). Distill the phase before it goes cold: sweep the phase's SUMMARY Deviations and Concerns, the verifier's ladder/panel reasoning in VERIFICATION.md, and any .potion/debug/ files closed during the phase. Log what clears the 5-minute bar as ordinary learnings — a repo whose testing is bespoke script chains gets its idiom promoted to a type:check witness at first verify touch (files → source), max 5 — distillation, not transcription. Grep learnings.jsonl for existing keys first: never re-log. Zero new entries is a valid outcome — say so explicitly. Qualifying entries ride the normal promote-up bar (CORE: Cross-repo knowledge).

Witnesses. When promoting a gap-fix or a truth whose proof is a distinctive code marker, append a type:check witness — key witness-{phase}-{slug}, cmd a grep for the marker, expect its output. A few per phase, judgment yours.

Fill verdict + verified_at per the contract block above. A conversion lands in accepted with reason + why + date; before asking for one, fix the environment or ask the human, in that order.

Report

Update phases/NN-slug/VERIFICATION.md from ${CLAUDE_PLUGIN_ROOT}/templates/VERIFICATION.md — mandatory frontmatter: verdict, verified_at, tested_sha (git rev-parse HEAD), cycle (increment on each pass), gaps (truth / status / reason / missing), accepted (user-acknowledged gaps).

Evidence index. After filling VERIFICATION.md, (re)generate the index on every verdict: sh ${CLAUDE_PLUGIN_ROOT}/scripts/gen-evidence-index.sh phases/{NN-slug}/evidence — a regenerable cache; hand-editing is a defect. Uncited artifacts (Truths -) and DUPLICATE lines are findings.

The gap flywheel

Gaps found → /potion:plan (gaps mode) writes fix plans continuing the phase's plan numbering → /potion:execute runs them → re-verify: failed items get the full protocol, previously-passed items a quick regression check. Report gaps_closed / gaps_remaining / regressions.

Loop budget: 3 cycles, tracked by the cycle field (the counter must live on disk — sessions /clear between steps). If gaps survive cycle 3, stop: this is a wrong-approach problem, not a persistence problem. Escalate with the surviving gaps and what was tried. Unbounded retry is automating drift.

Hot-loop exception. When a gap's repro needs costly environment setup (emulator boot, device, slow service), ONE agent may run the full gap cycle (investigate → gap plan → fix → re-verify) in one environment session instead of four spawns. The books stay honest: debug file, gap PLAN, SUMMARY, evidence, and learnings land on disk exactly as the separated protocol would produce them. Use only when setup cost genuinely dominates.

Quick tier (native apps). Bundling cannot see runtime-only failures (an undeclared native dependency red-screens while expo export passes). After any dependency change, run a cheap boot-and-smoke check early — app reaches its first screen, booted bundle = HEAD. Supplements the protocol; a phase verdict still requires the full four steps once per cycle.

Red flags

ThoughtReality
"The summaries all say done"That's why this skill exists. Check the disk.
"I watched the workers succeed, this is a formality"You're anchored. That's why the ladder is spawned blind.
"Tests pass, ship it"Tests prove tests. Truths are user-observable — exercise the flow.
"STATIC_ONLY is basically verified"It's your step 3 todo list, not a verdict.
"I can't check it, so HUMAN_NEEDED"Nature or circumstance? An auth wall is COULD_NOT_CHECK(auth-wall) — and it blocks pass until converted.
"The check entry fails but it's probably the check's fault"ERROR vs MISMATCH is a mechanical distinction. Make it, don't guess it.

Exit

Verdict per truth, gap count, evidence collected. Route non-gap findings — your own judgment calls and the blind verifier's non-blocking observations — into STATE.md's ## Fog, one line each, tagged from cycle-N verifier; items recording an observed failure get - [defect] at line start. Blocking human calls go to ## Decision queue with added/expires dates instead — nothing evaporates. Clean → /potion:ship. Gaps → /potion:plan gaps mode (mention the cycle number). Record: node ${CLAUDE_PLUGIN_ROOT}/scripts/metrics.js record --stage verify --gaps {N}.

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.