/design-engine:design-handoff-and-dev-specfrom design-engine
Creates token-referenced design specs for engineering handoff, including redlines, component states, breakpoints, accessibility notes, and testable acceptance criteria.
Ships in design-engine. 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.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com.
09-…/design-tokens-and-naming. A handoff references those tokens by name; it
does not invent them. Do that skill first so this spec can cite real role names.09-…/component-library-architecture. This skill specs a component (or screen) as placed
in a design, citing the library component; it does not design the library component from scratch.00-…/design-qa-and-pre-launch-review. This skill's QA is the narrower
spec-vs-build fidelity check for the handed-off unit.| Artefact or context | Source | Required? | Why |
|---|---|---|---|
| Approved frames for every state and breakpoint | Design owner | yes | Prevents engineering guesswork |
| Stable token and component names | Design system | yes | Keeps the handoff composable |
| Behaviour, content, accessibility, data, and platform constraints | Product and engineering | yes | Makes acceptance criteria testable |
09-…/design-tokens-and-naming (semantic role names: color.text.default,
space.inset.md, radius.200, elevation.raised, motion tokens). Redlines reference these, never
raw values.09-…/component-library-architecture — so the
spec says "Button / primary / md, library v2.3" instead of re-describing a button.07-…/cross-platform-design-parity).Decide the unit and assemble every frame first. One component, or one screen? Pull all its
frames before writing a word: default, plus every variant, every interactive state (hover, focus,
active, disabled, loading, selected, error), every breakpoint/container size, and every content
edge case (empty, one item, overflow, longest localized string, error). A handoff drawn from only
the happy-path frame is the single most common defect — it pushes the missing decisions onto the
developer, who will improvise, and the improvisation is where fidelity dies. If a frame is
missing, the design is not ready to hand off; go get it. See references/handoff-checklist.md.
Redline against tokens, never against raw values. Every measurement is a token reference:
spacing is space.inset.md (not "16px"), colour is color.action.primary.bg (not "#3B5BDB"),
radius is radius.200, type is text.body.md / font.size.300, elevation is elevation.raised.
A redline full of literal hexes and pixels has bypassed the system — it will drift the moment a
token changes and it tells the developer to hardcode. State the token; put the resolved value in
parentheses only as a sanity check (space.inset.md → 16px). This is the contract that makes the
build inherit the design system instead of forking it. See references/redline-and-spec-format.md
and the doctrine sourcing-authority rule (values trace to the token system, not to ad-hoc picks).
Spec the box model explicitly: size, spacing, alignment. For each element give width/height behaviour (fixed, fill, hug, min/max), internal padding (inset tokens), gaps between children (stack/inline gap tokens), and alignment within the parent. Name the layout primitive (flex/grid, direction, wrap, justify/align) so the developer builds the same auto-layout the designer used — not a pixel-pushed approximation that breaks at the next content length.
Specify every interactive state — states are not optional. For each control, give the visual
spec of hover, focus-visible, active/pressed, disabled, loading, selected, and error, each as
token deltas from the default ("focus: 2px border.focus ring, offset space.50"). Disabled and
loading states are where handoffs are thinnest and where bugs ship. Focus-visible is an
accessibility requirement, not a nicety — name the ring token and that it must clear 3:1 against
the adjacent surface (doctrine/references/wcag-2.2-criteria.md, WCAG 1.4.11 / 2.4.11–2.4.13).
Document behaviour and motion as precisely as the visuals. What does each control do: the
action, the validation rule and when it fires (on blur? on submit?), the async/optimistic
behaviour, the success/error outcome, navigation. Motion as token references (duration + easing
tokens), what triggers it, and what it communicates — plus the reduced-motion fallback
(prefers-reduced-motion). "It animates" is not a spec; "150ms motion.ease.standard opacity +
4px rise on enter, no transform under reduced-motion" is.
Annotate accessibility inline, not as an afterthought. On the spec, mark: semantic
role/element (is this a <button> or a link?), the accessible name and where it comes from, focus
order, keyboard interactions (Enter/Space/Esc/arrow behaviour), live-region announcements for
async/error, the 24px minimum target size (WCAG 2.5.8), and any state that must be conveyed by
more than colour. These are build instructions, not review notes — they belong on the handoff
so they get implemented, not bolted on after the audit fails. (wcag-2.2-criteria.md.)
Cover the responsive/adaptive behaviour, not just two endpoints. State what changes at each breakpoint or container size — reflow, stack, hide, font-step, target growth — and what the intermediate behaviour is (does it scale fluidly, or snap?). Name whether sizing is viewport- or container-driven. The gap between "mobile frame" and "desktop frame" is where developers guess; close it.
Write acceptance criteria as testable, binary statements. Each is a checkable assertion a
reviewer (or a visual-regression test) can mark pass/fail with no judgement call: "Primary button
uses action.primary.bg; on hover, action.primary.bg.hover." / "Focus-visible ring is 2px
border.focus, offset 2px, ≥3:1 vs surface." / "At ≤containerSm, the actions stack vertically
with space.stack.sm gap." / "Empty state renders the zero-items frame, not a blank region." /
"Submit disabled until both fields valid; error announced via aria-live=polite." Vague criteria
("looks good", "matches Figma") are not criteria. See references/redline-and-spec-format.md.
Run the fidelity review against those criteria and log deltas. When the build lands, walk the
acceptance list against the implementation across states and breakpoints; record each delta with
the criterion it fails, the expected token/behaviour, and the actual. Triage (blocker / polish /
accept-with-note). Parity is measured against the spec, not against a fresh re-read of the
designer's intent — which is exactly why the spec and its acceptance criteria had to be written
down first. Pairs with 00-…/design-qa-and-pre-launch-review for the broader gate.
| Condition | Action | Wrong-choice failure |
|---|---|---|
| Approved tokens and components exist | Reference their stable names and versions | The handoff forks the design system with raw values |
| A value or state is not defined upstream | Stop and resolve the design decision before handoff | Engineering is forced to invent product behaviour |
| One implementation target is in scope | Specify its native breakpoints, input modes, and accessibility behaviour | Generic handoff language misses platform constraints |
| Several platforms share intent but not controls | Share semantic intent and write platform-specific mappings | Pixel parity is imposed where behavioural parity is required |
Read access to approved design files, tokens, component documentation, content, and target-platform constraints is required. Editing is limited to the authorised handoff artefacts. Build inspection is optional during authoring and required when producing a fidelity-review verdict.
If token, component, content, or state definitions are missing, issue a readiness gap list and do not label the handoff build-ready. If the implementation cannot be inspected, provide acceptance tests but leave fidelity results unverified.
Button / primary / md @ v2.3).
Duplicating the spec guarantees the screen and the library drift apart.| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| Token-referenced component or screen specification | Engineering | Every state, breakpoint, behaviour, content edge, and accessibility note is buildable |
| Binary acceptance checklist and fidelity log | QA and pre-launch review | Each criterion can pass or fail against the approved design and implementation |
examples/component-handoff-sheet.md — a complete redlined dev spec for one real component (a
primary Button as placed in a form): token-referenced measurements, the full state matrix,
responsive behaviour, behaviour + motion with reduced-motion fallback, inline a11y annotations,
content edge cases, and the acceptance-criteria checklist a reviewer signs off against.doctrine/design-doctrine.md — Mission §0 (authored, system-driven output over convergent
approximation) and Anti-Slop Charter §2 (state the choice first; the sourcing-authority asymmetry —
a redline's values trace to the token system and human design authority, never to a reflexive
default or an AI tool's pick).doctrine/references/wcag-2.2-criteria.md — the contrast floors (4.5:1 / 3:1), focus-visible /
focus-appearance (1.4.11, 2.4.11–2.4.13), and 24px target size (2.5.8) annotated inline on the
spec and asserted in the acceptance criteria.references/handoff-checklist.md — the readiness + completeness checklist (every frame, state,
breakpoint, edge case) a handoff must satisfy before it is "ready".references/redline-and-spec-format.md — how to write token-referenced redlines and binary,
testable acceptance criteria; the annotation vocabulary and the spec sheet anatomy.09-…/design-tokens-and-naming (the semantic token names this spec cites) and
09-…/component-library-architecture (the library components this spec composes and references).00-…/design-qa-and-pre-launch-review (broader pre-ship gate),
07-…/cross-platform-design-parity (when the handoff targets iOS + Android),
08-…/motion-and-interaction (the motion tokens and choreography the spec references).chwezi-sdlc-documentation/03-design-documentation/05-ux-specification/SKILL.md and form and content rules to
chwezi-sdlc-documentation/03-design-documentation/09-ux-content-and-form-specification/SKILL.md; component
code, ARIA wiring and token pipelines go to
chwezi-dev-engine/skills/frontend-ux/frontend-architecture/SKILL.md, and automated
state and accessibility checks to chwezi-dev-engine/skills/sdlc-meta/advanced-testing-strategy/SKILL.md.
Design supplies values and tests; evidence stays NOT_ASSESSED until the build is measured.Use the design-system operating model to connect visual handoff to behaviour, tokens, accessibility, and acceptance evidence.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job