/planning:design-handofffrom planning
Gates a finished design for planning by checking all design threads are resolved, directional, or tagged-deferred. Emits a coverage table and plan-ready summary on pass.
Ships in planning. 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.
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
git branch --show-currentThe seam between design and planning: produce the design-gate evidence /planning:plan's
prerequisite check blocks on. A binary check read off the artifact, then a handoff summary sourced
from the artifacts, never recalled from conversation memory.
Takes no arguments. Reads the design-threads artifact in the topic's design slice and, on PASS,
writes the ## Design section of the topic's PLAN.md.
Design artifacts live in <memory_dir>/<topic-slug>/design/ (default .work/), never committed;
placement per the lifecycle artifact protocol
${CLAUDE_PLUGIN_ROOT}/reference/artifact-protocol.md.
Derive <topic-slug> from the task or branch name (kebab-case, ≤40 chars; shared with
/planning:design and /planning:plan).
Read design-threads.md in the topic's design slice and confirm, thread by thread, that
every design thread is one of:
Two threads are required, each in one of those states:
Overrides bundled default <principle> per <standards file>, shaped the design, and how
generalize-now-or-wait was settled (citing the Brief's Variation intent: line counts)./planning:design "Lifecycle and
reversibility" requires at the Brief's quality bar, in a thread of that name or as Door: lines
in the decision threads.At quality bar prototype both are skipped and named: a thread reading deferred (prototype)
counts as TAGGED-DEFERRED. Stumble: the gate judged only the threads present, so a design that
never weighed principles or reversibility passed.
A thread that is unresolved and untagged, or a required thread that is missing, is a silent gap →
FAIL: open the reply with the verdict sentence (Gate: FAIL, naming each offending or missing
thread) and the coverage table, then route back by invoking /planning:design via the Skill tool
(its design-threads and discussion rounds) to resolve or tag, and do not hand off. Stumble: routing
first let the design round replace the verdict, so the reply never said the gate failed. Read the verdict off
design-threads.md, never from a "did we cover enough?" recap of your own: a producing model
rubber-stamps its own recap.
If design-threads.md does not exist, check for design-resolution.md at the same path (the
/planning:design early-exit artifact). Early-exit slices hand off on that artifact alone. A
tier: B artifact with no type sketch → FAIL: route back by invoking /planning:design via the
Skill tool to record one. A type-inventory.md on its own is not a gate artifact. Neither present →
FAIL: no design evidence; route back by invoking /planning:design via the Skill tool.
After the verdict sentence (on a FAIL, before routing back), emit one table reporting coverage across the six dimensions a design answers: what, how, where, who, when, why. Emit it on PASS and on FAIL alike. It never contributes to the pass/fail determination, it never blocks a handoff, no flag makes it block, and the table is never written to disk.
Read it over design-threads.md, or over design-resolution.md when the early-exit artifact is
what the gate read. A row is covered when a thread whose status is RESOLVED or directional
records a decision about that dimension, and the row then names that thread and its status. A
TAGGED-DEFERRED thread never covers a row.
design-resolution.md has no threads and no statuses. There a row is covered when the artifact
itself records a decision about that dimension; the Covered by cell names the recorded decision
and the Status cell reads recorded.
The artifact carries no dimension field (a thread is a name, options, a status, and a rationale), so coverage is a judgment read over the whole artifact. The reading rule per dimension is the table's second column:
| Dimension | Covered by | Status |
|---|---|---|
| what | the thread naming the thing being built or changed | RESOLVED |
| how | the thread recording the mechanism or algorithm | RESOLVED |
| where | the thread recording location, topology, or runtime placement | directional |
| who | the thread recording the actor, owner, operator, or caller | RESOLVED |
| when | the thread recording timing, sequencing, or lifecycle | directional |
| why | the thread recording the rationale behind the decision | RESOLVED |
In a real emission each Covered by cell carries the thread's own name and each Status cell that
thread's own status. An uncovered row reads none in both.
On PASS, and only on PASS, write the design into ## Design of the topic's
<memory_dir>/<topic-slug>/PLAN.md (default .work/). This is the copy that reaches the
implementer: /planning:plan keeps it and audits its phases against it, and /implementation:implement-dispatch (if enabled)
and /work-items:decompose (if enabled) quote from it, because a worker's worktree and a tracker item never
see the design directory. The section anatomy is
/planning:plan's PLAN.md template; fill its four subsections from the artifacts, never from
memory:
${CLAUDE_PLUGIN_ROOT}/reference/variation-points.md),
the seam or containing module, and the recorded reason; an abstraction question left to a human
is listed with its arbiterNet new: line listing each part no existing pattern
covers and why none fits, and one Challenges a pattern: line listing each pattern the design
departs from or questions, its path and the reason; none when a line has nothing to listAn early exit (design-resolution.md) writes the section as one line naming the early exit and
its reason. A Tier B early exit adds a ### Contracts subsection under that line, quoting the
artifact's type sketch verbatim (or, when the artifact links type-inventory.md, that file's
sketch). Re-read PLAN.md from disk before writing and replace only the ## Design section;
when PLAN.md does not exist yet, create it holding that section alone, for /planning:plan to
complete. Write no other section.
Hand off by invoking /planning:plan via the Skill tool. Sourced from the artifacts, not recalled from memory:
design-threads.md)design-threads.md; a decision with none is not listed.
"None" is the entry when no decision qualifies. Offer
to invoke /architecture:adr (if enabled) via the Skill tool for each listed decision, passing
the decision, its recorded rationale and the rejected alternative. That skill owns and applies
the admission test, the template and convention discovery; this step carries no copy of the test
and judges none. Without the architecture plugin, list the
decisions under an "ADR candidates" heading for a human to judge. The offer never blocks the
handoff: it runs beside the next step, not in place of it## Design section now holds them/planning:plan next walks its design-default checklist against the plan/planning:plan and the implementation stage inherit proactive review targetsnone, listed verbatim, so
/planning:plan can raise them as Step 1 Open Decisions. Record "none" when all six are covereddesign-threads.md has a Risks thread (/planning:design "System-scope
steps"), its rows quoted in its Risk | Likelihood | Impact | Mitigation columns, which
/planning:plan seeds its ### Risks and Mitigations from. Omit the item when there is no such
threadEmit a resume prompt so a fresh cleared session can pick up at /planning:plan reading only the
persisted artifacts. The resume prompt carries the uncovered dimensions and any Risks rows
verbatim; the coverage table stays in the emitted output and is never written to disk.
/planning:design (a FAILed gate routes
there; this skill never resolves threads itself)/planning:plan (this skill packages its input)## Design./planning:design via the Skill tool to record the why/planning:design's handoff action is an in-session shortcut that delegates here; this skill
is the single canonical gate, so gate criteria change here onlyevals/evals.json (opens in a new tab)evals/fixtures/design-resolution-early-exit.md (opens in a new tab)evals/fixtures/design-threads-all-resolved.md (opens in a new tab)evals/fixtures/design-threads-coverage-all-six.md (opens in a new tab)evals/fixtures/design-threads-coverage-gaps.md (opens in a new tab)evals/fixtures/design-threads-no-adr-worthy.md (opens in a new tab)evals/fixtures/design-threads-one-adr-worthy.md (opens in a new tab)evals/fixtures/design-threads-single-gap.md (opens in a new tab)evals/fixtures/design-threads-unresolved-gap.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub melodic-software/claude-code-plugins --plugin planning11 skills in this plugin
/audit-answersAudit answersRe-check a filled /planning:interview ledger with fresh-context subagents blind to answer rationales; only doubtful answers return. Use to validate answers, auto-answer, or second-guess ('audit my interview answers', 'have agents check the answers', 'verify the ledger'). Not for plans: /planning:devils-advocate; new: /planning:interview./brainstormDiverge before scoping: turn rough engineering problem into codebase-grounded candidate approaches (cheapest to ambitious), pick what resonates, hand off scoped. Use for problem ideas, intervene, how could we approach/what could we do, no locked scope ('brainstorm', 'what are my options', 'explore some approaches'). Not for locked/visuals./designResolve design decisions (types, contracts, package topology, module boundaries) in rounds before /planning:plan as design artifacts. Use: 'design this', 'type modeling', 'figure out the abstractions', 'model this domain', 'what should the types look like', 'how should I structure this', 'where do the module boundaries go', design space. Not for friction: /architecture:improve; gate: /planning:design-handoff./devils-advocateDevils advocateStress-test a plan or proposal adversarially before code: assumptions, evidence, failure scenarios, operational gotchas; `incumbent` attacks status quo (better way, should we still use X). Use to poke holes ('devil's advocate', 'stress test', 'what could go wrong') before deps, CI/build, cross-module arch. Not for bugs or pre-PR verification./draft-goal-conditionDraft goal conditionPick the right autonomy lever (/goal, /loop, routines, /schedule, workflow, Stop hook, one-shot) and, when /goal fits, draft a transcript-demonstrable completion condition checked against the limit by a deterministic counter. Use when: 'which loop should I use', 'craft a /goal', 'make Claude keep working until X', or unmeasurable/too-long /goal./interviewFirst step for build request/idea naming no problem, users or scope ('add search to the product'): asks before code is written. Numbered questions lock PLAN.md Brief (goal, constraints, criteria, done) or questionnaire someone else fills in. Use: 'interview me', 'lock the brief', 'spec this task', 'grill me', 'this is underspecified', 'ask me questions first', 'help me think this through'; skip quick diffs.Other plugins' skills for the same job