将 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…
帮助用户截取桌面、窗口或指定区域的系统级屏幕截图。
帮助你用 gh CLI 处理当前分支 GitHub PR 的评审与问题评论。
将应用或网站部署到 Vercel,并生成线上或预览访问链接。
帮助用户生成或编辑位图图像,用于插画、照片、贴图与透明抠图等视觉素材。
帮助用户用 Netlify CLI 部署、发布并关联网站项目到 Netlify。
帮助用户创建、搭建或修改 Jupyter 笔记本,用于实验探索与教程编写。
将代码或页面描述转成Figma完整界面,并按设计系统逐段搭建设计稿
将 Figma 设计组件与代码组件建立映射,便于设计与实现保持一致。
根据代码库在 Figma 中创建或更新专业级设计系统与组件库
连接 Figma 获取设计上下文与资源,并将节点高效转换为生产代码。
让编码代理读取 Figma 设计数据并一键生成前端实现代码
连接 Figma 设计稿,提取变量、截图并辅助转换为开发代码