将 Figma 设计稿高保真转换为可直接落地的前端界面代码
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "figma-implement-design" 技能: 1. 下载 https://raw.githubusercontent.com/openai/skills/main/skills/.curated/figma-implement-design/SKILL.md 2. 保存为 ~/.claude/skills/figma-implement-design/SKILL.md 3. 装好后重载技能,告诉我可以用了
This skill provides a structured workflow for translating Figma designs into production-ready code with pixel-perfect accuracy. It ensures consistent integration with the Figma MCP server, proper use of design tokens, and 1:1 visual parity with designs.
CLAUDE.md/AGENTS.md), switch to figma-create-design-system-rules.https://figma.com/design/:fileKey/:fileName?node-id=1-2
:fileKey is the file key1-2 is the node ID (the specific component or frame to implement)figma-desktop MCP: User can select a node directly in the Figma desktop app (no URL required)Follow these steps in order. Do not skip steps.
When the user provides a Figma URL, extract the file key and node ID to pass as arguments to MCP tools.
URL format: https://figma.com/design/:fileKey/:fileName?node-id=1-2
Extract:
:fileKey (the segment after /design/)1-2 (the value of the node-id query parameter)Note: When using the local desktop MCP (figma-desktop), fileKey is not passed as a parameter to tool calls. The server automatically uses the currently open file, so only nodeId is needed.
Example:
https://figma.com/design/kL9xQn2VwM8pYrTb4ZcHjF/DesignSystem?node-id=42-15kL9xQn2VwM8pYrTb4ZcHjF42-15When using the figma-desktop MCP and the user has NOT provided a URL, the tools automatically use the currently selected node from the open Figma file in the desktop app.
Note: Selection-based prompting only works with the figma-desktop MCP server. The remote server requires a link to a frame or layer to extract context. The user must have the Figma desktop app open with a node selected.
Run get_design_context with the extracted file key and node ID.
get_design_context(fileKey=":fileKey", nodeId="1-2")
This provides the structured data including:
If the response is too large or truncated:
get_metadata(fileKey=":fileKey", nodeId="1-2") to get the high-level node mapget_design_context(fileKey=":fileKey", nodeId=":childNodeId")Run get_screenshot with the same file key and node ID for a visual reference.
get_screenshot(fileKey=":fileKey", nodeId="1-2")
This screenshot serves as the source of truth for visual validation. Keep it accessible throughout implementation.
Download any assets (images, icons, SVGs) returned by the Figma MCP server.
IMPORTANT: Follow these asset rules:
localhost source for an image or SVG, use that source directly…
为项目代码库生成定制化设计系统规则,统一 Figma 到代码协作规范。
根据代码库在 Figma 中创建或更新专业级设计系统与组件库
将代码或页面描述转成Figma完整界面,并按设计系统逐段搭建设计稿
帮助你用 gh CLI 处理当前分支 GitHub PR 的评审与问题评论。
帮助排查并修复 GitHub Actions 的 PR 检查失败,先分析日志再经批准实施修改。
帮助你将应用与基础设施部署、发布并托管到 Cloudflare 平台。
将 Figma 设计组件与代码组件建立映射,便于设计与实现保持一致。
连接 Figma 获取设计上下文与资源,并将节点高效转换为生产代码。
连接 Figma 设计稿,提取变量、截图并辅助转换为开发代码
通过 AI 读写并自动修改 Figma 设计稿
连接 Figma 与本地 AI 工作流,生成前端代码、设计令牌与交接产物。
将 Figma 设计转为结构化语义 JSON 与截图,支持 AI 设计转代码流程。