Communitygithub.com

/design-handoff

從設計稿生成開發者交接文件。當設計準備好移交給工程團隊,需要涵蓋佈局、設計 token、組件 props、互動狀態、響應式斷點、邊界情況和動畫細節的規格表時使用。

design-handoff 是什麼?

此技能會根據設計稿(Figma 連結、描述或截圖)自動生成一份完整的開發者交接規格文件。它將設計視覺細節轉換為工程團隊可直接執行的技術規格,涵蓋精確尺寸、設計 token 引用、組件狀態與變體、互動行為、響應式斷點、邊界情況和無障礙性。支援 Figma 連接以獲取精確數據,也可與專案管理工具整合,自動鏈接任務並建立子任務。此技能確保所有可能的不確定性被消除,讓開發者無需猜測設計意圖。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tmnhutwork/Landingpage-Photo-Retouch/tree/HEAD/.agents/plugins/anthropic-design/skills/design-handoff

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

design-handoff 是做什麼的?

如果遇到不熟悉的佔位符,或需要檢查哪些工具已連接,請參閱 CONNECTORS.md。

從設計稿生成全面的開發者交接文件。

使用方式

/design-handoff $ARGUMENTS

為 @$1 生成交接規格:

如果提供了 Figma 連結,則從 Figma 拉取設計。否則,根據提供的描述或截圖進行工作。

應包含的內容

視覺規格

  • 精確尺寸(內距、邊距、寬度)
  • 設計 token 參考(顏色、字體排版、間距)
  • 響應式斷點及行為
  • 組件變體與狀態

互動規格

  • 點擊/觸摸行為
  • 懸停狀態
  • 過渡與動畫(持續時間、緩動函數)
  • 手勢支援(滑動、捏合、長按)

內容規格

  • 字元限制
  • 截斷行為
  • 空白狀態
  • 載入中狀態
  • 錯誤狀態

邊界情況

  • 最小/最大內容
  • 國際文字(較長字串)
  • 慢速連線
  • 資料遺失

無障礙性

  • 焦點順序
  • ARIA 標籤與角色
  • 鍵盤互動
  • 螢幕閱讀器宣告

原則

  1. 不要假設 — 如果未明確指定,開發者就會猜測。請指定一切。
  2. 使用 token,而非數值 — 請參考 spacing-md 而不是 16px。
  3. 顯示所有狀態 — 預設、懸停、啟用、停用、載入中、錯誤、空白。
  4. 說明原因 — 「這個在行動裝置上會折疊,因為使用者主要單手操作」,這能幫助開發者做出正確判斷。

輸出

## 交接規格:[功能/畫面名稱]

### 概覽
[此畫面/功能的作用、使用者情境]

### 佈局
[網格系統、斷點、響應式行為]

### 使用的設計 Token
| Token | 值 | 用途 |
|-------|-----|------|
| `color-primary` | #[hex] | CTA 按鈕、連結 |
| `spacing-md` | [X]px | 區塊間距 |
| `font-heading-lg` | [大小/粗細/字體] | 頁面標題 |

### 組件
| 組件 | 變體 | Props | 備註 |
|------|------|-------|------|
| [組件] | [變體] | [Props] | [特殊行為] |

### 狀態與互動
| 元素 | 狀態 | 行為 |
|------|------|------|
| [CTA 按鈕] | 懸停 | [背景加深 10%] |
| [CTA 按鈕] | 載入中 | [旋轉圖示、停用] |
| [表單] | 錯誤 | [紅色邊框、下方顯示錯誤訊息] |

### 響應式行為
| 斷點 | 變更 |
|------|------|
| 桌面 (>1024px) | [預設佈局] |
| 平板 (768-1024px) | [變更內容] |
| 手機 (<768px) | [變更內容] |

### 邊界情況
- **空白狀態**:[無資料時應顯示的內容]
- **長文字**:[截斷規則]
- **載入中**:[骨架屏或旋轉圖示]
- **錯誤**:[錯誤狀態外觀]

### 動畫/動態效果
| 元素 | 觸發 | 動畫 | 持續時間 | 緩動函數 |
|------|------|------|----------|----------|
| [元素] | [觸發] | [描述] | [毫秒] | [easing] |

### 無障礙性備註
- [焦點順序]
- [所需的 ARIA 標籤]
- [鍵盤互動]

如果連接工具可用

如果 ~~設計工具 已連接:

  • 從 Figma 拉取精確尺寸、token 和組件規格
  • 匯出資源並生成完整的規格表

如果 ~~專案管理工具 已連接:

  • 將交接文件鏈接到實作票務
  • 為規格的每個章節建立子任務

提示

  1. 分享 Figma 連結 — 我可以拉取精確的尺寸、token 和組件資訊。
  2. 提及邊界情況 — 「100 個項目時會怎樣?」,這能幫助我制定邊界條件。
  3. 指定技術棧 — 「我們使用 React + Tailwind」,這能幫助我提供相關的實作備註。

Individual skills in this repo

This repo contains 15 individual skills — each has its own dedicated page.

tmnhutwork/Landingpage-Photo-Retouch

Run a WCAG 2.1 AA accessibility audit on a design or page. Trigger with "audit accessibility", "check a11y", "is this accessible?", or when reviewing a design for color contrast, keyboard navigation, touch target size, or screen reader behavior before handoff.

tmnhutwork/Landingpage-Photo-Retouch

Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.

tmnhutwork/Landingpage-Photo-Retouch

Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

tmnhutwork/Landingpage-Photo-Retouch

Synthesize user research into themes, insights, and recommendations. Use when you have interview transcripts, survey results, usability test notes, support tickets, or NPS responses that need to be distilled into patterns, user segments, and prioritized next steps.

tmnhutwork/Landingpage-Photo-Retouch

Plan, conduct, and synthesize user research. Trigger with "user research plan", "interview guide", "usability test", "survey design", "research questions", or when the user needs help with any aspect of understanding their users through research.

tmnhutwork/Landingpage-Photo-Retouch

Write or review UX copy — microcopy, error messages, empty states, CTAs. Trigger with "write copy for", "what should this button say?", "review this error message", or when naming a CTA, wording a confirmation dialog, filling an empty state, or writing onboarding text.

tmnhutwork/Landingpage-Photo-Retouch

Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.

tmnhutwork/Landingpage-Photo-Retouch

Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.

tmnhutwork/Landingpage-Photo-Retouch

Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.

tmnhutwork/Landingpage-Photo-Retouch

Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

tmnhutwork/Landingpage-Photo-Retouch

Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.

tmnhutwork/Landingpage-Photo-Retouch

Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.

tmnhutwork/Landingpage-Photo-Retouch

Create strategic HTML presentations with Chart.js, design tokens, responsive layouts, copywriting formulas, and contextual slide strategies.

tmnhutwork/Landingpage-Photo-Retouch

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.

tmnhutwork/Landingpage-Photo-Retouch

UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.

相關技能