design-handoff
Skill này làm gì
Skill này viết tài liệu đặc tả bàn giao chi tiết để lập trình viên xây dựng thiết kế đúng như ý đồ. Skill dành cho nhà thiết kế và đội sản phẩm khi giao việc cho kỹ sư.
Khi nào nên dùng
- ✓Khi một thiết kế đã sẵn sàng cho kỹ sư và cần có tài liệu đặc tả.
- ✓Khi bạn muốn ghi lại mọi tương tác, trạng thái và trường hợp đặc biệt để lập trình viên không phải đoán.
- ✓Khi bạn cần ghi chú về tham chiếu design token và hành vi responsive cho một bản dựng.
Liên kết skill
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/design/skills/design-handoff/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy viết tài liệu bàn giao cho lập trình viên cho màn hình thanh toán này, gồm tất cả trạng thái và hành vi responsive.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xem qua thiết kế và liệt kê số đo, tham chiếu token, chi tiết tương tác và chuyển động, quy tắc nội dung và ghi chú khả năng tiếp cận. Agent đảm bảo mọi trạng thái, như đang tải và lỗi, đều được ghi lại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
/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.
Câu hỏi thường gặp
Vì sao nên dùng design token thay vì giá trị cụ thể?
Skill khuyên tham chiếu một token đã đặt tên, để thiết kế vẫn nhất quán khi giá trị thay đổi.
Những trạng thái nào nên được ghi lại?
Trạng thái mặc định, di chuột, đang nhấn, vô hiệu hóa, đang tải, lỗi và trống.
Skill có bao gồm khả năng tiếp cận không?
Có. Tài liệu gồm thứ tự focus, nhãn, tương tác bằng bàn phím và nội dung mà trình đọc màn hình thông báo.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 11k
- Vị trí xếp hạng
- #11637
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
polite-greeting
11kGiúp agent của bạn mở đầu cuộc trò chuyện bằng lời chào ngắn gọn, thân thiện và lịch sự, rồi nhanh chóng chuyển sang điều bạn cần.
medical-source-failover
11kGiúp agent của bạn tìm hướng dẫn y khoa, thông tin thuốc và tài liệu y tế công khai Trung Quốc đáng tin khi nguồn chính bị chặn, chậm hoặc khó đọc.
cowork-plugin-customizer
11kGiúp agent của bạn điều chỉnh một plugin Claude có sẵn cho công cụ và quy trình của tổ chức, bằng cách thay thế chỗ giữ chỗ và chỉnh skill cùng cài đặt.
create-cowork-plugin
11kGiúp agent của bạn xây dựng một plugin Claude mới từ đầu qua các câu hỏi hướng dẫn, gồm skill, agent, hook và gói sẵn sàng cài đặt.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.