Communitygithub.com

Figma MCP 設計導入工具

透過 Figma MCP 伺服器取得設計脈絡、截圖、變數與資產,並將 Figma 節點轉換為實際程式碼。適合處理包含 Figma 網址、節點 ID、設計轉程式碼或 Figma MCP 設定與除錯的任務。

Figma MCP 設計導入工具 是什麼?

此技能整合 Figma MCP 伺服器,提供從設計到程式碼的完整工作流程。支援 React + Tailwind 框架輸出,並可依據專案慣例進行樣式替換。透過 `get_design_context` 取得節點結構、`get_screenshot` 作為視覺參考,確保最終實作與 Figma 設計達成一比一視覺匹配。資產處理方面,直接使用 MCP 回傳的 localhost 來源,無需額外匯入圖示套件或建立佔位圖。此技能適用於任何需要從 Figma 設計稿生成前端程式碼的場景,並強調遵循專案設計系統(色彩記號、元件庫、排版比例),減少重工與樣式不一致。

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

在你喜歡的 AI 中提問

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

說明文件

Figma MCP

使用 Figma MCP 伺服器進行以 Figma 為驅動的實作。關於設定與除錯細節(環境變數、設定檔、驗證方式),請參閱 references/figma-mcp-config.md。

Figma MCP 整合規則

以下規則定義如何將 Figma 輸入轉換為此專案的程式碼,每次以 Figma 驅動的變更都必須遵守。

必要流程(不得跳過)

  1. 先執行 get_design_context 以取得目標節點的結構化表示。
  2. 若回傳內容過大或被截斷,請執行 get_metadata 取得高層級節點對映,再以 get_design_context 重新擷取僅需要的節點。
  3. 執行 get_screenshot 取得正在實作的節點變體的視覺參考。
  4. 必須同時擁有 get_design_context 與 get_screenshot 後,才能下載所需資產並開始實作。
  5. 將輸出(通常為 React + Tailwind)轉換為此專案的慣例、樣式與框架。盡可能重複使用專案的色彩記號、元件與排版。
  6. 在標記完成前,與 Figma 比對以確保外觀與行為完全一致。

實作規則

  • 將 Figma MCP 的輸出(React + Tailwind)視為設計與行為的表示,而非最終的程式碼風格。
  • 在適用情況下,將 Tailwind 工具類別替換為專案偏好的工具組或設計系統記號。
  • 重複使用現有元件(例如按鈕、輸入框、排版、圖示包裝器),避免重複實作功能。
  • 一貫使用專案的色彩系統、排版比例與間距記號。
  • 尊重儲存庫中已採用的路由、狀態管理與資料擷取模式。
  • 力求與 Figma 設計達到一比一的視覺對等。當發生衝突時,優先採用設計系統記號,並最小幅度調整間距或大小以吻合視覺。
  • 針對外觀與行為,對最終 UI 與 Figma 截圖進行驗證。

資產處理

  • Figma MCP 伺服器提供資產端點,可提供圖片與 SVG 資產。
  • 重要:若 Figma MCP 伺服器回傳 localhost 來源的圖片或 SVG,請直接使用該圖片或 SVG 來源。
  • 重要:請勿匯入或新增新的圖示套件,所有資產應來自 Figma 酬載。
  • 重要:若已提供 localhost 來源,請勿使用或建立佔位圖。

基於連結的提示

  • 此伺服器以連結為基礎:複製 Figma 畫框或圖層連結,並在請求實作協助時將該 URL 提供給 MCP 客戶端。
  • 客戶端無法瀏覽該 URL,但會從連結中提取節點 ID;務必確保連結指向您想要的確切節點或變體。

參考資料

  • references/figma-mcp-config.md — 設定、驗證、除錯以及基於連結的使用提醒。
  • references/figma-tools-and-prompts.md — 工具目錄與提示模式,用於選擇框架/元件及擷取後設資料。

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

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.

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

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.

相關技能