AGENT SKILL

verify

Execute VERIFY.md scenarios through real consumer paths, review the frozen task-owned diff, deliver the verdict, and close the bundle — distilling durable lessons into the repo's MEMORY.md. Also the route for re-running an open bundle's gates or updating its VERIFY.md/NOTES.md, including after another agent's commits — never by ad-hoc scripts. For an open bundle only; tier-Light changes are verified inline, not through this skill.

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

01 前言 Front Matter

name
verify
description
Execute VERIFY.md scenarios through real consumer paths, review the frozen task-owned diff, deliver the verdict, and close the bundle — distilling durable lessons into the repo's MEMORY.md. Also the route for re-running an open bundle's gates or updating its VERIFY.md/NOTES.md, including after another agent's commits — never by ad-hoc scripts. For an open bundle only; tier-Light changes are verified inline, not through this skill.

03 SKILL.md 正文

verify

Turn evidence into a verdict, then close.

Precondition: an open bundle with a drafted VERIFY.md. No bundle → the change is tier Light; verify the changed surface inline and skip this skill.

Verify

  1. Cross-check coverage before running anything: every behavior in the SPEC's Testing Decisions has a red test that went green, every red test maps to a VERIFY.md scenario or repo check, and every scenario traces back to a SPEC behavior or Anti-goal. An orphan on any side is a gap — record it and surface it; do not silently proceed past it.
  2. Run every VERIFY.md scenario through the real consumer path at its seam; record command, output, and PASS/FAIL per scenario.
  3. Run the repo's checks for the touched surface: tests, lint, types, build.
  4. Freeze and review the task-owned diff: every changed line traces to SPEC scope; nothing unrelated is staged.
  5. For risky seams, spot-check assertion strength: hand-flip 2–3 mutants in the new logic (invert a condition, off-by-one a boundary, drop a call) — the suite must go red each time. A surviving mutant is a missing or weak test, and a FAIL of the red list.
  6. Record deviations and risks. Contradictions or unavailable proof are surfaced, never silently marked passed. A scenario that cannot be executed as written goes back to spec for a checkable rewrite — do not invent a substitute measurement. The scenario list is frozen once this pass starts: scenarios gain results here, never rewrites or removals.
  7. Write the verdict last. A passing command is evidence; VERIFY.md owns the verdict.

For substantial diffs, run this skill in a fresh context — a new session or a subagent that reads only the bundle and the diff. The implementer verifying their own work invites confirmation bias. A dispatched subagent never fixes anything: mutants it flips are reverted before reporting, and on FAIL it records the verdict and stops — routing back to implement belongs to the parent turn that holds the user's ask. A subagent that fails to start or report is a dispatch failure, not evidence: fall back to running the checklist in this session instead of polling for it.

Red flags

The thought The reality
"It obviously passes — running it is a formality" Scenarios exist because "obviously" has been wrong before. Run every one and record the output.
"The scenario can't run as written, but this similar check proves the same thing" That is a substitute measurement. Route back to spec for a checkable rewrite.
"The mutant survived, but the code is clearly fine" A surviving mutant is a weak or missing test, and a FAIL of the red list.
"I wrote this diff — I know it works" That is the confirmation bias the fresh-context rule exists for.
"I'll just fix this small failure while I'm verifying" Verify delivers a verdict, never fixes. A FAIL routes back to implement.

Close (on PASS, with durable ship or handoff proof)

  1. Append a dated close-out line to NOTES.md citing the ship evidence (commit hashes or handoff target).
  2. Sweep the SPEC's Implementation Decisions: any that is hard to reverse, surprising without context, AND a real trade-off — and has no ADR yet — is promoted to .waymark/adr/NNNN-<slug>.md with an index line in MEMORY.md, before the bundle is buried in the archive.
  3. Append 2–3 distilled lines to .waymark/MEMORY.md — invariants discovered, decisions and their why, gotchas — each linking to the bundle. Prune stale entries in the same edit; keep the index ≤200 lines. Offer the user one line: the new lessons by name, and that coach can teach the concept behind any of them grounded in this repo.
  4. mv .waymark/active/<work-id> .waymark/archive/<work-id>.

When the verdict passes but the ship commit has not landed yet, do not leave the close implicit: set NOTES.md Next Action to "commit, then close bundle". The turn that lands the commit performs the close in that same turn — a PASS bundle never stays in active/ across sessions.

On FAIL: back to implement with the failing scenarios noted in NOTES.md and this pass appended to its Attempts list. Never close on a FAIL, and never stage or commit bundle contents. A scenario still failing after three implement passes — counted from Attempts, across sessions — is a SPEC problem, not an implementation one: stop and re-settle the decision via scout/spec.

04 同仓库更多 Skills

ReinaMacCredy
ReinaMacCredy/waymark

spec

Turn the current conversation and codebase understanding into a work bundle with SPEC.md — synthesis of what is already known, interviewing only on material open forks. Use for unresolved ideas, requirements, sources, system maps, or plans.

★ 1
ReinaMacCredy
ReinaMacCredy/waymark

scout

Settle the pre-spec unknowns that need a decision — interview the user on open forks, prototype feel-right design questions, sharpen the domain model, or chart an effort too big for one session. Use when an idea is still vague, options compete unchosen, the user doesn't know where to start, or asks to be grilled. Evidence questions with no decision attached (external facts, baselines) belong to explore instead.

★ 1
ReinaMacCredy
ReinaMacCredy/waymark

questionnaire

Turn a decision the user can't fully answer into a Markdown questionnaire for the one person who can — filled in async, or together over a meeting. Adapted from Matt Pocock's to-questionnaire.

★ 1
ReinaMacCredy
ReinaMacCredy/waymark

implement

Implement authorized Full-tier work from the bundle's SPEC.md, red-first at pre-agreed seams. Requires an explicit user request to implement or fix production code, and a SPEC whose red-test list covers this exact scope — post-ship review findings and follow-ups go through spec first. Never invoke on your own initiative. Do NOT trigger when the target is a throwaway prototype, research spike, or baseline (explore's scope), or when the fix is a tier-Light quickfix (proceed directly, no skill).

★ 1
ReinaMacCredy
ReinaMacCredy/waymark

handoff

Compact the current conversation so another agent can pick the work up — into the active bundle's NOTES.md when one exists, or a standalone handoff document otherwise. Adapted from Matt Pocock's handoff.

★ 1
ReinaMacCredy
ReinaMacCredy/waymark

explore

Answer an evidence question without touching production code — research external facts against primary sources, build or iterate a disposable prototype (its own bugfixes included), or baseline current repository behavior before deciding or implementing. Use when the question is answerable by reading, building, or measuring, with no user decision required; unsettled decisions belong to scout. Prototype iteration stays here, never implement. Prototypes are throwaway.

★ 1