/ratchet:work-packagesfrom ratchet
Manage the always-on .ratchet/work-packages.yaml DAG and .ratchet/human-dependencies.md ledger for multi-session, multi-PR, and part-time work. Use when initializing .ratchet/ in a repository, splitting a large feature or open PR into small dark-launchable slices, recording external human/runbook blockers with Unblock-with defaults, or checking/updating work package status during ad-hoc or swe-loop sessions.
Ships in ratchet. 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.
.ratchet/
work-packages.yaml # Machine-readable DAG of lanes and small, dark-launchable slices
human-dependencies.md # External blockers (HD-xx) and open questions (Q-xx) with Unblock-with defaults
Bootstrap by copying
templates/work-packages.yaml and
templates/human-dependencies.md into
.ratchet/.
main. Slices WP-1 through
WP-(N-1) of any lane must merge to main as additive or opt-in changes
(gated by a manifest declaration, isActive: false, feature flag, or test
app). Never alter existing user behavior before WP-N.Unblock-with default. For any open
HD-xx or Q-xx, record the safe Unblock-with default in
.ratchet/human-dependencies.md, build against that default, and leave
TODO(HD-xx) where applicable.human_gate: true packages. Model main-only
deployment or live environment verification as its own human_gate: true
package (WP-<LANE>.<K>) between dark code slices and final cutover.WP-N) flips the user-facing switch after all
upstream code and human_gate packages are done.status: done (enforced on gh pr create). Inside the PR
branch delivering a slice, set that slice's status: done in
.ratchet/work-packages.yaml so merging updates main atomically.
hooks/pre-tool-use.mjs blocks gh pr create (not git push) when
.ratchet/work-packages.yaml is unchanged on the branch or has uncommitted
edits.- { id: ..., lane: ..., title: "...", ref: "...", depends_on: [...], blocked_by: [...], human_gate: false, status: todo, owner: null }.
No multi-line YAML blocks, no embedded prose fields, no GitHub API dumps, and
no Dependabot bumps.key-vault, live-logs, ops-catalog) and number
slices WP-<LANE>.1, WP-<LANE>.2, ...S or M, 100 to 600 lines) in
dependency order (depends_on: [...]):
human_gate: false),human_gate: false or true),main (human_gate: true),human_gate: false).hooks/session-start.mjs injects <ratchet-work-packages> on
startup, resume, clear, and compact.status: todo package whose depends_on are all done.
If it lists an open HD-xx in blocked_by, build its Unblock-with
default. Use status: blocked only when no safe Unblock-with default
exists.status: done in
.ratchet/work-packages.yaml before gh pr create. When an HD-xx is
fulfilled, mark its row Done (<YYYY-MM-DD>) in
.ratchet/human-dependencies.md with the concrete evidence.swe-loop: /swe-loop <WP-ID> scopes the loop to that package;
multi-PR /swe-loop designs write their lane into .ratchet/ at Gate A.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/consolidateRun a behavior-preserving consolidation pass over a branch or working-tree diff to strip agent-generated semantic sediment (prompt echoing, transition narration, redundant comments, transitional wrappers, and prompt-shaped test names) so the codebase reads as if the final architecture had been known from the beginning. Use when invoked as /consolidate or $consolidate, before opening an ad-hoc PR, or at the end of swe-loop Phase 4 before Phase 5 review.
/diagram-loopCreate or revise premium, animated, publication-quality architecture, flow, feedback, sequence, and concurrency diagrams. Use only when the user explicitly asks for that level of visual output. Do not use for ordinary ADR, architecture-document, or PR diagrams; those stay on the swe-loop Mermaid path.
/npx claudepluginhub dej-h/ratchet --plugin ratchet