/docflow:ship-itemfrom docflow
Completes a plan/todo item in a documentation-led repo by running the verify gate, integrating via fast-forward or PR, moving the item from todo to done with a shipped footer, advancing ADRs to Implemented, and regenerating INDEX.
Ships in docflow. 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.
Complete one queue item in the order required by the repository. Prepared completion on an unmerged PR is ready, not shipped. Never infer merge authorisation from a request to prepare or update the PR.
Read AGENTS and CONVENTIONS for integration branch/remote, gate, coordination
mode, signing, trailers and guardrails. Resolve adr/, plan/, INDEX.md
and _agent/ against the recorded root. Select the named item, otherwise
the lowest eligible one, and read its owning decisions and criteria in full.
Require Accepted ownership before preparing completion. If a linked PR
already contains the completion move, verify that prepared state instead
of repeating the move or rejecting its prepared Implemented status.
Inspect worktree cleanliness and item ownership. Preserve unrelated edits.
Only finish the named item; never repair unrelated decisions or accept
Proposed ones to make the gate pass. A literal branch named claim, an
invalid item key, or a source with no matching item is not a valid claim.
Validate branch names with git check-ref-format --branch.
claim/<item-key> under separate-worktree
direct integration. Read the item from its fetched remote tip. Use the
detached integration procedure below, never an executor or operator tree.The orchestrator invokes this once per ready item in queue order. Reuse a caller-supplied clean owned detached integration worktree, or create one outside the operator tree and remove it afterwards. A leftover is reused or removed only after proving ownership and cleanliness. Never check out, force-move or delete a branch another worktree holds.
Shipped at HEAD <rebased implementation tip> from claim/<item-key>. Record the tip before the completion commit, never the
completion commit itself. Run the gate again after committing completion.Only this serial integration step regenerates the full completion INDEX. An executor may update its own rows before that so its own gate can run; INDEX is exempt from exclusive ownership, unlike decision and item bodies.
Perform these together in one Conventional Commit with a Rationale footer:
git mv the resolved plan/todo/NNNN-<slug>.md to
plan/done/<YYYY-MM-DD>-<slug>.md, retaining its numbered title.## Status section, retaining other item content.Write no separate worklog, dashboard or snapshot. For an unmigrated legacy repo, honour its recorded additional steps and identify that legacy layout; never introduce such files into a modern layout.
Retain the source SHA verified for this integration before integrating.
Never replace it with a newly read remote tip. After confirmed completion,
delete the branch-backed remote claim only if its tip still equals that
source. Use an explicit expected-tip lease on deletion:
git push --force-with-lease=refs/heads/claim/<item-key>:<verified-source-sha> origin :refs/heads/claim/<item-key>.
A changed ref is a cleanup blocker: preserve it and report the branch plus
expected and observed SHAs. If the verified source is missing or the remote
state is unverifiable, preserve the claim and report that cleanup blocker.
Keep the confirmed integration outcome; list unresolved cleanup under
Yet to do. If the host already deleted the branch, confirm absence. Remove
only clean owned executor worktrees with no unpushed changes; leave others
and report them. Delete the local claim only when no worktree holds
it and there are no unpushed changes. For a rebased claim, forced local
branch deletion is permissible only after these proofs and confirmed
integration; ordinary merged branches use normal deletion.
Shared checkouts release only their own lock rows; single writers have no claim branch. Clean ordinary PR work branches only when owned and unused. Remove an owned clean integration worktree when this invocation created it; the wave caller removes its reused worktree after the last item. Fast-forward a clean operator checkout only if already on the integration branch.
Report both gate outputs/exits, implementation and completion references, push/merge evidence, identifiers repaired and cleanup performed. On failure update Blockers/Stopped on the queued item, or the PR body if already moved, with date/reason and This run / Overall / Yet to do. Preserve recoverable work within the existing grant. A failed final gate never advances the remote.
An explicit host/tool permission denial stops the affected operation immediately, including receipt export and cleanup. Do not retry through another tool, shell, staging directory, move, archive, symlink or delegate, or probe writes to the denied destination. Report the denied action and destination, actual partial effects and missing permission as stopped/blocked. If recording Status or committing/exporting would cross that boundary, report in the current response and leave persistence pending. Resume only after explicit permission for that action. A gate environment failure is distinct and never overrides a denial.
End every run, including blocked, failed and stopped runs, with a section headed exactly Status at a glance, containing these three labels:
Routine progress messages need no block. Keep final results brief and distinguish work prepared on a PR from work confirmed shipped.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/add-conventionAssess and add a CONVENTION (a reusable rule, practice, or naming/process standard) to a documentation-led repo — decides FIRST whether it is worth codifying at all, then routes it to the right home (AGENTS.md hard rule, CONVENTIONS.md guidance, GLOSSARY term, or to /new-adr if it is really a one-off decision). Pushes back on premature or duplicate conventions. Use when the user says "add a convention", "make this a rule", "document this practice", "we should always X", or invokes /add-convention. NOT for recording a single architectural/product decision (use /new-adr) and NOT for queueing work (use /new-plan)./agent-waveRun a bounded wave over the plan/todo queue in a documentation-led repo, using available parallel agents or sequential execution. Establishes width, budget and supervision; isolates work and collects verified outcomes. Use for "spawn a wave of agents", "run the queue in parallel", "fan out the work", or "agent wave", not for authoring a decision or queuing a new item./auditAudit a documentation-led repo against its own conventions — contiguous ADR numbering, INDEX sync, plan/ coverage, required sections, status validity, cross-reference resolution, language mandate, ADR-privacy leaks into user-visible code, cross-worktree collisions (duplicate numbers, duplicate plan ownership, same ADR edited on two branches), and — for a multi-repo product — cross-repo federation checks (bidirectional membership, identity collisions, dangling cross-repo references, roll-up drift, convention drift). Reports a punch list and offers to fix the mechanical issues. Use when the user says "audit the ADRs", "lint the conventions", "check repo consistency", or "are the ADRs in sync"./bootstrapScaffold or retrofit documentation-led conventions (AGENTS.md, CLAUDE.md, CONVENTIONS.md, ADR catalogue, plan/ queue, _agent/ coordination) into a repo. Use when the user asks to "set up conventions", "bootstrap ADRs", "scaffold the documentation-led layout", or "add AGENTS.md and a plan queue". Works on fresh repos and existing ones — preserves existing content and merges rather than overwrites. Opens with an express / guided / full depth choice, so a quick conservative setup needs almost no questions./brainstormDecompose a problem, feature, or goal into candidate ADRs and plan items for a documentation-led repo — one decision per ADR, dependency edges, suggested ordering. Proposes drafts for review and writes nothing until approved. Use when the user says "brainstorm ADRs", "break this down into decisions", "what ADRs do we need for X", "plan out the work", or invokes /brainstorm./new-adrAuthor a new ADR — record a DECISION (what the system must do, or how it is built) in a documentation-led repo. Picks the next contiguous number, chooses the shape (capability vs technology), fills the template, sets status Proposed, regenerates INDEX, updates domain READMEs, handles supersede/deprecate linkage, commits. Use when the user says "add an ADR", "new ADR", "record a decision", "create an architecture decision record", or invokes /new-adr. NOT for queueing a unit of work against an existing decision (use /new-plan) and NOT for recording a reusable rule, practice, or naming/process standard (use /add-convention).npx claudepluginhub evolvehq/docflow --plugin docflowOther plugins' skills for the same job