一键导入
design-handoff
Use when preparing design specifications for engineering handoff and quality assurance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when preparing design specifications for engineering handoff and quality assurance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | design-handoff |
| description | Use when preparing design specifications for engineering handoff and quality assurance. |
Prepare comprehensive design specifications for engineering. Ensure design fidelity by documenting all states, tokens, interactions, edge cases, and accessibility requirements.
Announce at start: "I'm using the design-handoff skill to prepare specifications for development."
You MUST create a task for each of these items and complete them in order:
Every interactive component must specify all applicable states. Missing states are the #1 cause of design drift.
| State | When It Applies | What to Specify |
|---|---|---|
| Default | Component at rest | Visual appearance, layout |
| Hover | Cursor over element (desktop) | Color shift, underline, scale |
| Active/Pressed | Click/tap in progress | Darker color, scale down |
| Focus | Keyboard navigation reached element | Focus ring style, offset |
| Disabled | Element not interactive | Opacity, cursor, tooltip |
| Loading | Data being fetched | Skeleton, spinner, progress bar |
| Empty | No data to display | Illustration, message, CTA |
| Error | Something went wrong | Error message, retry action |
| Success | Action completed | Confirmation, auto-dismiss timing |
| Read-only | Data displayed, not editable | Visual distinction from editable |
Document as named variables, never raw hex values. Every visual property should reference a token.
| Category | What to Define |
|---|---|
| Colors | Primary, neutral, error, success palettes with tints/shades (e.g. color-primary-500, color-primary-600 for hover) |
| Typography | Font family, size scale (heading-lg/md, body, caption), weights, line-heights |
| Spacing | Scale in rem (xs: 0.25, sm: 0.5, md: 1, lg: 1.5, xl: 2, 2xl: 3) |
| Radii | sm, md, lg, full |
| Shadows | sm, md, lg (specify rgba values) |
| Breakpoints | mobile (375px), tablet (768px), desktop (1024px), wide (1440px) |
Document how things move. Use a consistent animation scale (100ms, 200ms, 300ms).
Component: [Name]
Trigger: [What starts the interaction]
Duration: [ms]
Easing: [cubic-bezier or named curve]
Outcome: [What the user sees happen]
prefers-reduced-motionAccessibility is not optional. Document per component:
role="alert", aria-live="polite"| Edge Case | What to Specify |
|---|---|
| Long text | Truncation? Line clamping? How does layout handle 3x expected length? |
| No text | What shows when a field is empty? |
| Many items | 1,000+ items in a list — pagination? Virtual scrolling? |
| Very long names | "Hubert Blaine Wolfeschlegelsteinhausenbergerdorff Sr." |
| RTL languages | Layout in Arabic, Hebrew |
| Small viewport | 320px width |
| Large viewport | 2560px width |
| No internet / slow connection | Offline state, 5+ second API calls |
| First-time user | Before any data exists |
| Power user | 10,000+ items, high-frequency usage |
| Permission-restricted | Limited permissions view |
icon-name-type@scale.formatCreate a checklist for reviewing built UI against design:
Visual Fidelity: spacing, typography, colors, border radius, shadows, icon sizes match design. No hardcoded hex values.
Responsive: Mobile (375px), tablet (768px), desktop (1024px) layouts match. No horizontal overflow at any breakpoint.
States: All states implemented (default, hover, focus, active, disabled, loading, empty, error). Loading states have skeleton/spinner. Empty states have illustration + guidance. Error states show actionable messages.
Interactions: Animations match specified duration/easing. Transitions are smooth. Gestures work on mobile.
Accessibility: Keyboard navigation works. Focus indicators visible. Screen reader announces content correctly. Contrast meets WCAG AA.
Data Variability: Layout works with 1 character, 500+ characters, no content, and many items (stress test).
| User Story | Design File | Version | Status |
|---|---|---|---|
| Sign up with email | [Figma link] | v3 (approved May 20) | Ready for dev |
| Dashboard overview | [Figma link] | v1 (approved May 22) | Ready for dev |
| Settings page | [Figma link] | v2 (draft May 25) | In review |
Before development starts:
Use when analyzing competitors, understanding competitive landscape, conducting SWOT analysis, or positioning your product against alternatives.
Use when setting up or improving a continuous product discovery practice with weekly customer interviews.
Use when planning a product or feature launch and preparing go-to-market execution.
Use when you have raw user feedback from multiple sources (interviews, surveys, tickets, reviews) and need to extract themes, patterns, and actionable insights
Use when defining product metrics, designing experiments, analyzing feature adoption, or setting up measurement frameworks.
Use when starting any conversation — before ANY response including clarifying questions