Design handoff

From melodic-software/claude-code-plugins · View interactive version

Design handoff is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Gate a finished design for /planning:plan: FAILs on any design thread left unresolved and untagged, then emits a coverage table, the plan-ready summary, and a resume prompt. Use when: 'design handoff', 'hand off the design', 'is the design ready', 'plan-ready summary', 'design gate', or design round

How to use this skill

Skill file

Repository context. Gather first

<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->

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).

<!-- END GENERATED: gather-block -->

Purpose

The 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

CODE0.

Derive <topic-slug> from the task or branch name (kebab-case, ≤40 chars; shared with

/planning:design and /planning:plan).

Binary gate. Check the artifact, not your memory

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).

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.

Coverage report (advisory)

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.

Write the plan's Design section (gate passed)

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:

topology, boundary, or component artifact the scope produced)

contracts artifact; a typed artifact's first fenced block is copied verbatim with its info string

verdict (abstract now, contain now, or leave inline, per

CODE0),

the seam or containing module, and the recorded reason; an abstraction question left to a human

is listed with its arbiter

follows. Never a memory-slice path: PLAN.md is published, and that path would dangle. Under them,

from the resolved threads' rationale: one Net 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 list

An 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.

Handoff summary (gate passed)

Hand off by invoking /planning:plan via the Skill tool. Sourced from the artifacts, not recalled from memory:

with that alternative quoted from 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

TAGGED-DEFERRED.

/planning:plan next walks its design-default checklist against the plan

code-design, security, multi-tenancy, messaging, and the like), list which apply to this slice

so /planning:plan and the implementation stage inherit proactive review targets

from human judgment, mark per capability whether a sub-step is script-, hook-, agent-, or

human-owned; a trivial early-exit records "no deterministic sub-steps"

/planning:plan can raise them as Step 1 Open Decisions. Record "none" when all six are covered

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

thread

Emit 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.

What this skill does not do

there; this skill never resolves threads itself)

stage seam, not a pause-point

Next

Related

Gotchas

/planning:design via the Skill tool to record the why

exactly what the binary gate exists to catch

is the single canonical gate, so gate criteria change here only

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.