design-handoff
它能做什么
这项技能撰写详细的交接规范,让开发人员能够按设计意图实现界面。适合把工作交给工程师的设计师和产品团队。
适用场景
- ✓当设计已经可以交给工程师,需要一份规范表时。
- ✓当你希望把每个交互、状态和边界情况都写下来,让开发人员无需猜测的时候。
- ✓当构建过程中需要记录设计令牌的引用和响应式行为时。
技能链接
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/design/skills/design-handoff/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为这个结账页面撰写开发交接规范,包括所有状态和响应式行为。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会逐项梳理设计,列出尺寸、设计令牌引用、交互和动效细节、内容规则以及无障碍说明。它会确保每个状态,例如加载中和出错状态,都被覆盖。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/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-mdnot16px. - 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.
常见问题
为什么要使用设计令牌,而不是具体数值?
该技能建议引用命名的令牌,这样在数值改变时,设计仍能保持一致。
应当记录哪些状态?
默认、悬停、激活、禁用、加载中、出错和空状态。
它也涵盖无障碍吗?
是的。它包括焦点顺序、标签、键盘交互以及屏幕阅读器播报内容。
详情
作者的原始描述
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.
repo: TencentCloud/Octop
热度
- GitHub 星标
- 11k
- 排名
- #11637
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
polite-greeting
11k帮你的智能体用简短、友好且礼貌的问候开启对话,然后迅速进入你需要的事情。
medical-source-failover
11k帮你的智能体在主要来源被屏蔽、速度缓慢或难以阅读时,查找可信的中国医学指南、药品信息和公共卫生文件。
cowork-plugin-customizer
11k帮你的智能体通过替换占位符、调整技能和设置,使现有的 Claude 插件适配某个组织的工具和工作流程。
create-cowork-plugin
11k帮你的智能体通过引导式问答,从零开始构建一个新的 Claude 插件,涵盖技能、智能体、钩子以及可直接安装的插件包。