Skip to content
public-library› Skills›Maintain verification skill

Maintain verification skill

maintain-verification-skillRecommended : fabricahq/public-library recommends installing this skill when you add its skills and rules. Forked from pstack : fabricahq/public-library created its own copy of this skill from pstack.
View on GitHub

A feature map rots the moment the app changes. This skill maintains any project-local verification skill with a feature map, including one generated by create-verification-skill. The target is discovered in the project at runtime, not installed as a fixed dependency of this skill. 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; nothing worth shipping. No branch, no PR.
  • changed - one PR ships proven doc, harness, or map corrections.
  • blocked - coverage could not finish or a proven fix could not ship safely. Say exactly what blocked it.

Edit scope

Only edit the verification skill's authored directory (its SKILL.md, features/, and any harness scripts or control-<app> CLI it owns). In a Trail Guide project or library, the build may also refresh its managed installed copies; inspect and include only that target's generated updates. 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 authored verification skill whose body has launch/drive sections and a feature map. In a Trail Guide project, start in .trailguide/skills/, and in a Trail Guide library in skills/src/; otherwise inspect the repository's documented project-local skill locations and the active agent's supported locations. Trace an installed copy back to its authored source before editing. Treat copies of one authored skill as one candidate. If the target only exists as a managed installed copy, report that it needs an editable project-owned source before maintenance; do not edit that copy. Several distinct candidates -> ask which one; none -> stop and suggest create-verification-skill as a separate task. Creation is not run by this skill and need not be installed to maintain an existing 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. Assign one read-only review per feature file. Use subagents in bounded batches within the host's concurrency limit; if delegation is unavailable, perform the same reviews sequentially. Follow the project's approval requirements for large parallel runs. Each review explains "how does this user-facing feature work?" from source, flags likely doc drift with citations, and returns one concise live-verification recipe. Source review never drives the app or edits files. 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. In a Trail Guide project, run trailguide project build after any authored changes and before following the installed instructions, including each re-proof; in a Trail Guide library, run trailguide library build. Inspect generated updates; never edit installed copies by hand. If the build requires unresolved choices or affects unrelated authored content, report the blocker. 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 read what each drive showed as its user would, judging only from the captured output and the user's task, not filling gaps with what you know of the implementation: is anything missing, repeated, contradictory, or in the app's internal terms, and is it clear what happens next? The right end state on confusing output isn't a pass. 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), and a fix to a control-<app> CLI keeps its tests passing. A proof that replays pre-written e2e specs, or a journey that lists commands with no state to check between them -> harness gap: move the steps that only reach the feature into named setup sequences, and pair each remaining step with what the agent checks before the next one. App behavior that's actually broken, or output that works but would confuse its user -> product gap; record it for the user with the evidence, keep it out of this PR. A map that compares output verbatim, or names nothing a user should be able to tell -> doc drift: replace the pinned text with what the user should be able to tell, and where users or scripts rely on that text, name the automated test that checks it or record the missing test as a product gap.

  7. Ship or stop. For changed: one PR of proven corrections, re-read every changed file first. For clean or blocked: no PR, report the outcome and the coverage honestly.

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