design-handoff — скилл для Claude Code: спека для разработчиков
Скилл превращает макет или его описание в спецификацию для разработчиков: размеры, токены, состояния, брейкпоинты, краевые случаи.
npx skills add anthropics/knowledge-work-plugins --skill design-handoff -a claude-codeЧто делает design-handoff
Скилл design-handoff собирает документ для передачи дизайна в разработку. На вход идёт ссылка на Figma или текстовое описание со скриншотом. Если ссылка есть, скилл забирает макет из Figma; если нет — работает по описанию.
В спецификацию попадают точные отступы и ширины, ссылки на токены вместо жёстких значений, варианты и состояния компонентов, поведение при клике и наведении, длительность и кривая анимаций, жесты. Отдельно расписываются лимиты символов, обрезка текста, пустые, загрузочные и ошибочные состояния, а также доступность: порядок фокуса, ARIA-метки, работа с клавиатуры.
Скилл требует указать аргумент: ссылку на Figma или описание дизайна. Без него запускать нечего. Если подключён трекер задач, скилл привязывает спеку к тикету и нарезает подзадачи по разделам. Стек лучше назвать заранее — тогда замечания по реализации будут ближе к вашему коду.
Какие задачи решает
- собрать спеку для разработчиков из готового макета
- зафиксировать токены вместо жёстких значений в пикселях
- описать все состояния компонента: hover, active, disabled, loading, error
- расписать поведение на брейкпоинтах для десктопа, планшета и мобильного
- проговорить краевые случаи: пустой список, длинный текст, медленная сеть
Примеры запросов агенту
- Сделай handoff-спеку для экрана оформления заказа по ссылке на макет
- Опиши состояния кнопки оплаты и поведение формы при ошибке
- Собери спецификацию для карточки товара, стек — React и Tailwind
Как установить design-handoff
1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-handoff -a claude-code2Вручную: положить файлы
~/.claude/skills/design-handoff/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/design-handoff/
1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-handoff -a codex2Вручную: положить файлы
.agents/skills/design-handoff/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-handoff -a cursor2Вручную: положить файлы
.cursor/skills/design-handoff/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install anthropics/knowledge-work-plugins design-handoff2Вручную: положить файлы
.github/skills/design-handoff/SKILL.md1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-handoff -a gemini-cli2Командой платформы
gemini skills install https://github.com/anthropics/knowledge-work-plugins --path design/skills/design-handoffВручную: положить файлы
.devin/skills/design-handoff/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-handoff -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о design-handoff
Как установить design-handoff в Claude Code?
Выполните npx skills add anthropics/knowledge-work-plugins --skill design-handoff -a claude-code. Файл скилла окажется по пути ~/.claude/skills/design-handoff/SKILL.md.
Что делает design-handoff?
Готовит документ для передачи дизайна в разработку: размеры, токены, варианты компонентов, состояния, брейкпоинты, анимации и краевые случаи.
Что нужно передать скиллу на вход?
Ссылку на Figma или описание дизайна. Без ссылки скилл работает по описанию или скриншоту, поэтому детали придётся указать текстом.
Исходный текст
SKILL.md · Apache-2.0
--- name: design-handoff description: 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. argument-hint: "<Figma URL or design description>" --- # /design-handoff > If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../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 1. **Don't assume** — If it's not specified, the developer will guess. Specify everything. 2. **Use tokens, not values** — Reference `spacing-md` not `16px`. 3. **Show all states** — Default, hover, active, disabled, loading, error, empty. 4. **Describe the why** — "This collapses on mobile because users primarily use one-handed" helps developers make good judgment calls. ## Output ```markdown ## 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 1. **Share the Figma link** — I can pull exact measurements, tokens, and component info. 2. **Mention edge cases** — "What happens with 100 items?" helps me spec boundary conditions. 3. **Specify the tech stack** — "We use React + Tailwind" helps me give relevant implementation notes.
© anthropics · Apache-2.0 · anthropics/knowledge-work-plugins