/design-handoff
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Generate comprehensive developer handoff documentation from a design.
Usage
/design-handoff $ARGUMENTS
Generate handoff specs for: @$1
If a Figma URL is provided, pull the design from Figma. Otherwise, work from the provided description or screenshot.
What to Include
Visual Specifications
- Exact measurements (padding, margins, widths)
- Design token references (colors, typography, spacing)
- Responsive breakpoints and behavior
- Component variants and states
Interaction Specifications
- Click/tap behavior
- Hover states
- Transitions and animations (duration, easing)
- Gesture support (swipe, pinch, long-press)
Content Specifications
- Character limits
- Truncation behavior
- Empty states
- Loading states
- Error states
Edge Cases
- Minimum/maximum content
- International text (longer strings)
- Slow connections
- Missing data
Accessibility
- Focus order
- ARIA labels and roles
- Keyboard interactions
- Screen reader announcements
Principles
- Don't assume — If it's not specified, the developer will guess. Specify everything.
- Use tokens, not values — Reference
spacing-md not 16px.
- Show all states — Default, hover, active, disabled, loading, error, empty.
- Describe the why — "This collapses on mobile because users primarily use one-handed" helps developers make good judgment calls.
Output
## Handoff Spec: [Feature/Screen Name]
### Overview
[What this screen/feature does, user context]
### Layout
[Grid system, breakpoints, responsive behavior]
### Design Tokens Used
| Token | Value | Usage |
|-------|-------|-------|
| `color-primary` | #[hex] | CTA buttons, links |
| `spacing-md` | [X]px | Between sections |
| `font-heading-lg` | [size/weight/family] | Page title |
### Components
| Component | Variant | Props | Notes |
|-----------|---------|-------|-------|
| [Component] | [Variant] | [Props] | [Special behavior] |
### States and Interactions
| Element | State | Behavior |
|---------|-------|----------|
| [CTA Button] | Hover | [Background darken 10%] |
| [CTA Button] | Loading | [Spinner, disabled] |
| [Form] | Error | [Red border, error message below] |
### Responsive Behavior
| Breakpoint | Changes |
|------------|---------|
| Desktop (>1024px) | [Default layout] |
| Tablet (768-1024px) | [What changes] |
| Mobile (<768px) | [What changes] |
### Edge Cases
- **Empty state**: [What to show when no data]
- **Long text**: [Truncation rules]
- **Loading**: [Skeleton or spinner]
- **Error**: [Error state appearance]
### Animation / Motion
| Element | Trigger | Animation | Duration | Easing |
|---------|---------|-----------|----------|--------|
| [Element] | [Trigger] | [Description] | [ms] | [easing] |
### Accessibility Notes
- [Focus order]
- [ARIA labels needed]
- [Keyboard interactions]
If Connectors Available
If ~~design tool is connected:
- Pull exact measurements, tokens, and component specs from Figma
- Export assets and generate a complete spec sheet
If ~~project tracker is connected:
- Link the handoff to the implementation ticket
- Create sub-tasks for each section of the spec
Tips
- Share the Figma link — I can pull exact measurements, tokens, and component info.
- Mention edge cases — "What happens with 100 items?" helps me spec boundary conditions.
- Specify the tech stack — "We use React + Tailwind" helps me give relevant implementation notes.
1---2name: design-handoff3description: Generate developer handoff specs from a design. Use when a design is ready for engineering and needs a spec sheet covering layout, design tokens, component props, interaction states, responsive breakpoints, edge cases, and animation details.4---5
6# /design-handoff
7
8> If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../CONNECTORS.md).
9
10Generate comprehensive developer handoff documentation from a design.
11
12## Usage
13
14```
15/design-handoff $ARGUMENTS
16```
17
18Generate handoff specs for: @$1
19
20If a Figma URL is provided, pull the design from Figma. Otherwise, work from the provided description or screenshot.
21
22## What to Include
23
24### Visual Specifications
25- Exact measurements (padding, margins, widths)
26- Design token references (colors, typography, spacing)
27- Responsive breakpoints and behavior
28- Component variants and states
29
30### Interaction Specifications
31- Click/tap behavior
32- Hover states
33- Transitions and animations (duration, easing)
34- Gesture support (swipe, pinch, long-press)
35
36### Content Specifications
37- Character limits
38- Truncation behavior
39- Empty states
40- Loading states
41- Error states
42
43### Edge Cases
44- Minimum/maximum content
45- International text (longer strings)
46- Slow connections
47- Missing data
48
49### Accessibility
50- Focus order
51- ARIA labels and roles
52- Keyboard interactions
53- Screen reader announcements
54
55## Principles
56
571. **Don't assume** — If it's not specified, the developer will guess. Specify everything.
582. **Use tokens, not values** — Reference `spacing-md` not `16px`.
593. **Show all states** — Default, hover, active, disabled, loading, error, empty.
604. **Describe the why** — "This collapses on mobile because users primarily use one-handed" helps developers make good judgment calls.
61
62## Output
63
64```markdown
65## Handoff Spec: [Feature/Screen Name]
66
67### Overview
68[What this screen/feature does, user context]
69
70### Layout
71[Grid system, breakpoints, responsive behavior]
72
73### Design Tokens Used
74| Token | Value | Usage |
75|-------|-------|-------|
76| `color-primary` | #[hex] | CTA buttons, links |
77| `spacing-md` | [X]px | Between sections |
78| `font-heading-lg` | [size/weight/family] | Page title |
79
80### Components
81| Component | Variant | Props | Notes |
82|-----------|---------|-------|-------|
83| [Component] | [Variant] | [Props] | [Special behavior] |
84
85### States and Interactions
86| Element | State | Behavior |
87|---------|-------|----------|
88| [CTA Button] | Hover | [Background darken 10%] |
89| [CTA Button] | Loading | [Spinner, disabled] |
90| [Form] | Error | [Red border, error message below] |
91
92### Responsive Behavior
93| Breakpoint | Changes |
94|------------|---------|
95| Desktop (>1024px) | [Default layout] |
96| Tablet (768-1024px) | [What changes] |
97| Mobile (<768px) | [What changes] |
98
99### Edge Cases
100- **Empty state**: [What to show when no data]
101- **Long text**: [Truncation rules]
102- **Loading**: [Skeleton or spinner]
103- **Error**: [Error state appearance]
104
105### Animation / Motion
106| Element | Trigger | Animation | Duration | Easing |
107|---------|---------|-----------|----------|--------|
108| [Element] | [Trigger] | [Description] | [ms] | [easing] |
109
110### Accessibility Notes
111- [Focus order]
112- [ARIA labels needed]
113- [Keyboard interactions]
114```
115
116## If Connectors Available
117
118If **~~design tool** is connected:
119- Pull exact measurements, tokens, and component specs from Figma
120- Export assets and generate a complete spec sheet
121
122If **~~project tracker** is connected:
123- Link the handoff to the implementation ticket
124- Create sub-tasks for each section of the spec
125
126## Tips
127
1281. **Share the Figma link** — I can pull exact measurements, tokens, and component info.
1292. **Mention edge cases** — "What happens with 100 items?" helps me spec boundary conditions.
1303. **Specify the tech stack** — "We use React + Tailwind" helps me give relevant implementation notes.