/skills:drive-prd [PRD issue number or URL; defaults to the session's PRD]from skills
Drive a PRD's tickets under a WIP cap through implementer, independent review, fixes, a head-pinned verdict, CI, and merge, parking human-only work, until no agent-ready ticket remains.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the orchestrator of one PRD workstream. Subagents build, review, and verify; you pick tickets, adjudicate findings, and merge. Every ticket you claim ends merged or parked, and the loop runs until Stop holds.
The issue tracker and triage label vocabulary should have been provided to you (docs/agents/ or the repo's AGENTS.md/CLAUDE.md). If not, tell the user to run /setup-matt-pocock-skills. Label names below are the canonical roles; use the repo's mapping.
## Parent section names the PRD.gh api repos/{owner}/{repo}/issues/<n>/dependencies/blocked_by), else one listed in its ## Blocked by section.ready-for-agent, unassigned, with every blocking issue closed.gh issue edit <n> --add-assignee @me) before any work on it.ready-for-agent for ready-for-human, unassign, and comment the exact question with your recommendation. If it has a PR, convert it to draft (gh pr ready <n> --undo) and keep its worktree. A parked ticket stays open, so its dependents leave the frontier with it.verifier writes to a file and you post verbatim, never writing or editing a VERDICT: yourself. First line VERDICT: PASS|PASS+NOTES|FAIL @ <full 40-char head sha>, then a ledger with one line per finding: S<n> [blocker|should|nit] path:line claim → fixed|declined(<reason>)|open. Your own read and the implementer's never count. A head verdict covers a later head only when git patch-id --verbatim of the PR diff is unchanged (a pure rebase); any other push needs a fresh one. Only comments whose author association is OWNER, MEMBER, or COLLABORATOR count. A PASS or PASS+NOTES whose ledger has a [blocker] or [should] line ending → open counts as FAIL.Invoking this skill authorizes, for workstream tickets only: worktrees and branches, pushes, PRs, PR and issue comments, label and assignee edits, follow-up issues, and merges once a PR passes every gate below. Merge through gh pr merge alone, so branch protection and required checks stay in force. Leave the PRD issue open; closing it is the user's call.
Assignment, labels, PR state, and comments are the record. After each ticket merges or parks, comment one line on the PRD issue (Merged #<pr> for #<ticket> or Parked #<ticket>: <question>). A fresh session reading the PRD, its tickets, and their PRs can resume the loop. Subagents write long output to a file in your scratchpad and return the path; your own context holds verdicts and pointers.
to-prd, broke into tickets, or discussed. Name it in the kickoff so a wrong guess is visible. Ask only when the session holds no PRD or more than one.gh issue view <n> --comments) and every workstream ticket. Read the repo's AGENTS.md/CLAUDE.md and note its default branch and the merge method its history uses (merge commit or squash).needs-triage or no state label (to-issues publishes them that way), list them and ask the user once which are agent-ready. Relabel per the answer. This is the loop's only up-front question.WIP cap, per orchestrator session: a ticket is active when claimed and not HITL-parked (a PR waiting only on someone else's merge stays active). At most 1 active ticket in Build and at most 3 active in total; a ticket in Build counts as its future PR. A full cap means wait, not start more; with room in the cap, Pick runs again even while other tickets sit in Review, Fix, or Verify, since background steps do not hold the loop. Each step ends on its completion criterion before the next starts.
Re-fetch the frontier: merges unblock tickets, and the user may edit the tracker between iterations. Pick the ticket that unblocks the most open workstream tickets; break ties by lowest number. A ticket that touches the same files, modules, or ADR as an active ticket waits: such tickets run one after another. Claim it. A frontier ticket that already has a PR (unparked) re-enters at Verify: re-claim it, mark the PR ready (gh pr ready <n>), and keep its PR and worktree; its round count restarts. Cap full, or only waiting tickets left: wait for an active ticket to merge or park. When Stop holds, go there.
Done when: one ticket is claimed, or the cap or an overlap holds you.
git fetch origin, then branch the worktree from the freshly merged default branch, never from local HEAD:
git worktree add -b <slug> ~/.claude/worktrees/<slug> origin/<default>, slug <repo>-<ticket#>-<short-kebab-description>.implementer agent in the background with pointers only: ticket number, PRD number, worktree path. Add to its brief: finish by pushing the branch and opening a PR whose body follows the pr skill and carries Closes: #<ticket> on its own line; report the PR number with its usual report; write anything long to a file and return the path.Done when: the implementer returns a PR number, or a question, which is a HITL block.
Launch three reviewer subagents in parallel, read-only, each on one angle. Brief each with the PR number, ticket number, PRD number, its angle, and an output file path. Keep the implementer's report out of their briefs, so each reviewer meets the diff cold. Brief them: correctness gaps only, skip style.
| Angle | Looks for |
|---|---|
| Correctness | each acceptance criterion met; bugs, edge cases, error paths |
| Tests | each new test fails without the change; behaviour tested through public interfaces; acceptance criteria with no test. For IaC, CI and config files, plan or validate output, or one negative case, is proof enough: never ask for a check that pins the repo's own text, config values or upstream shapes |
| Fit | PRD intent, ADRs, CONTEXT.md vocabulary, repo conventions, scope creep; supply chain when dependencies, CI, images, or IaC change; any growth in CI wall time or check code, which must be justified |
Each finding carries path:line, the claim, a concrete failure scenario, and a severity (blocker, should, or nit).
Done when: all three files exist.
Read every finding and give it one verdict:
Found in: line naming the PR and the PRD. Give it no ## Parent: it is not a workstream ticket, and this loop builds it only if the user later makes it one. Label it needs-triage, and wire a blocking edge if it gates another ticket.Route any finding you doubt through the verifier agent before ruling; its evidence decides. Post the full verdict table as one PR comment.
Done when: every finding has a verdict on the PR. Then go to Fix, or to Verify when no finding is fix.
Launch a fresh implementer for each fix round, pointed at the ticket, the PRD, the PR, the worktree, and the comment whose verdicts it answers (the verdict table, or the head verdict after a FAIL); it pushes fix commits to the PR branch. A fresh agent answers the verdicts in an uncompacted context and without the builder's assumptions. Add to the brief:
Fix budget: 3 rounds, or 5 when the PR touches live-safety code (guards, applies, secrets, destroys, release scripts). Running out, or getting no answer, is a HITL block: the PR is parked.
Done when: the fix commits are pushed. Go to Verify.
After every push, a rebase included, merge-gate decides whether the last head verdict carries over. If not, launch one fresh verifier, briefed without the implementer's report: PR number, head sha, the adjudication comment, the rulings, and the head verdict format. It checks the PR at the new head, each fix verdict and ruling included. A change no verdict or ruling asks for, or one that contradicts a ruling, is an open ledger line. FAIL needs an open blocker or should that can be shown.
Done when: the latest head verdict names the current head. PASS or PASS+NOTES: put each open [nit] line in the PRD's single nit issue, then go to Merge. FAIL: its open blocker and should lines become fix verdicts; another Fix round.
gh pr checks <pr> --watch as a background command; its exit wakes you.gh run rerun <run-id> --failed once; red again is a HITL block.origin/<default> moved since the branch was cut, have a fresh implementer rebase the PR branch onto it in the worktree and push (a conflict that needs judgement is a HITL block), then return to Verify and wait for CI again.VERDICT: comment from a counted author) is not FAIL and names the current head sha in full (gh pr view <pr> --json headRefOid), or carries over (merge-gate reports carried). Merge with the repo's method and --delete-branch.git worktree remove ~/.claude/worktrees/<slug>, delete the local branch, and comment on the PRD.Done when: the PR is merged, the ticket closed, the worktree gone. Return to Pick.
Park the ticket, comment on the PRD, and return to Pick. The loop keeps working everything a parked ticket does not block.
Above 70% of the 5-hour limit, keep looping, but route read-only recon that touches no secrets to Flash, per the global routing rule. When the user says they are near the limit, or a call fails on the limit, finish the step in flight, merge or park the ticket, and go to Stop.
The loop stops when no active ticket can progress without the user and no frontier ticket can start (the frontier is empty, the cap is full, or every pick overlaps an active ticket), or the budget runs out. Send one report:
Then send a push notification with a one-line summary, since the user is likely away.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (jvcorredor/skills) — no native marketplace selected
npx claudepluginhub p/jvcorredor-skills13 skills in this plugin
/better-sqlite3-rebuildUse when seeing errors about better-sqlite3 native module, NODE_MODULE_VERSION mismatch, "was compiled against a different Node.js version", or similar native binding errors./c-modelC4 architecture model and diagrams (context, container, component, code, deployment, sequence/dynamic) for any repo or named system, kept as one Structurizr workspace grounded in the code and rendered to SVG via C4-PlantUML. Use when the user asks for a model, a diagram, the architecture, a C1/C2/C3/C4 or L1-L4 level diagram of something (including "holistically"), a C4 view, a sequence diagram of a flow, how something works end to end, or what X looks like; or types /c-model./explainerGenerates a self-contained interactive HTML explainer for complex topics in a dark GitHub-inspired theme with Mermaid diagrams, before/after toggles, pipeline cards, timelines, risk tables, and decision checklists. Picks from four variant templates — PRs (code changes), issues/stories/epics (work items), concepts/frameworks/ADRs (ideas to evaluate), research/claims (evidence to evaluate) — each with its own narrative spine ending in an actionable decision checklist. Use when the user asks for a visual explainer, asks to "help me understand" something complex, wants an HTML write-up of a PR/issue/paper, asks for an interactive walkthrough, or invokes /explainer. Saves to /tmp/ by default.