AGENT SKILL

maintain-verification-skill

Check a project verification skill and feature map against source and live behavior, and leave proven corrections locally.

License 许可
MIT
所属仓库
Lomzem/dotfiles
最近更新
2026-11-13
Stars
★ 1
Forks
0

01 前言 Front Matter

name
maintain-verification-skill
description
Check a project verification skill and feature map against source and live behavior, and leave proven corrections locally.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Maintain a verification skill

A feature map rots the moment the app changes. This skill is the upkeep loop for a skill generated by /create-verification-skill in Claude Code or $create-verification-skill in Codex (or any project-local verification skill with a feature map). The unit of rigor is the feature, not every sentence: cover every feature file from source and exercise every feature live, without terminalising every bullet.

Outcomes

Pick one, and say which:

  • clean — every feature got source and live coverage; no corrections needed.
  • changed — proven doc, harness, or map corrections are left locally for review; create a PR only when requested.
  • blocked — coverage could not finish or a correction could not be proved safely. Say exactly what blocked it.

Edit scope

Only edit the verification skill's own directory (its SKILL.md, features/, and any harness scripts it owns). Never edit product code during a run: a behavior the map describes that the app no longer does is either doc drift (fix the map) or a product regression (report it, don't paper over it in docs).

Pass

  1. Locate the target. Find the verification skill to maintain: the project-local skill whose body has launch/drive sections and a feature map (usually .agents/skills/verify-*/; also inspect existing .claude/skills/verify-*/ and repository-documented locations, resolving symlinks to avoid counting one skill twice). Several candidates → ask which one; none → stop and point at /create-verification-skill in Claude Code or $create-verification-skill in Codex instead of inventing a target.

  2. Index hygiene. Read the feature map README and glob its sibling files. Fix missing, extra, duplicate, or dead entries. Lightweight; no generated inventory.

  3. Source wave. One read-only source subagent per feature file, using GPT-6.1-Sol under the current model-ownership policy. Run independent readers concurrently within the available agent limit; batch additional features. If delegation is unavailable, read each feature sequentially and report that adaptation. Each explains "how does this user-facing feature work?" from source, flags likely doc drift with citations, and returns one concise live-verification recipe. Children never drive the app, edit files, or delegate further. Follow the repository model ownership for any subsequent harness implementation. Return shape: feature summary / source entry points / likely drift or none / one recipe.

  4. Reconcile. Every feature file has a returned summary. Merge overlapping recipes into as few app states as practical. Spot-check cited drift; don't re-prove clean claims. Sweep recent churn for user-facing surfaces missing from the map — require a concrete source path before calling one missing.

  5. Live pass. Required even when source looks clean. The coordinator owns all driving; follow the verification skill's own launch model — one long-lived instance driven serially for servers and UIs, or a fresh isolated session per drive for short-lived CLIs (the skill's Launch section decides, not this one). Exercise every feature at least once, and hold three invariants the whole pass, whatever the failure: (1) never drive an instance you haven't health-checked since it last did something surprising — doctor before first drive, doctor on each fresh session where sessions are the unit, doctor again after any failed drive, and where doctor can't see the failure (a wedged UI state on a healthy process), reset to a known state or relaunch rather than hoping; (2) evidence captured so far survives every cleanup, checked at its named location, not assumed; (3) nothing a drive started outlives that drive's usefulness — failed-iteration residue is cleaned whether the session is stuck, exited, or shared (for a shared instance, clean the residue, not the instance). A doctor failure caused by skill drift is drift: fix it under edit scope and retry once — restart whatever the fix invalidated, nothing more — before calling the pass blocked. A feature that can't be reached is verified-unreachable only with the concrete prerequisite (auth, entitlement, OS, external state) and the route attempted; if the map omits that prerequisite, that's drift. Any harness fix from triage gets re-driven live before it ships. Final teardown happens after the last drive of the run — including those re-proofs — so nothing outlives the run (evidence stays, per the skill).

  6. Triage. Wrong or missing user-POV description → doc drift, fix it. Working behavior the harness can't drive → harness gap, fix it; a harness fix follows the same helpers rule as generation (scripts executable, invocation documented in the skill body). App behavior that's actually broken → product gap; record it for the user, keep it out of the verification corrections.

  7. Review and hand off. Re-read every changed file and report the outcome, coverage, evidence location and any blockers. For changed, leave proven corrections locally. When the user requests PR shipping, read ~/.agents/PR-WORKFLOW.md first and create at most one PR containing those corrections. For clean or blocked, report coverage honestly without creating a PR.

Keep concise run notes (features covered, unreachable prerequisites, confirmed drift, outcome) in a scratch location; don't commit them.

04 同仓库更多 Skills