将 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…
帮助开发者将指令文件、技能、代理和MCP配置迁移到Codex项目与全局文件。
将对话与决策整理成结构化 Notion 页面,便于沉淀知识库与规范文档
结合 Notion 上下文与研究结果,高效准备会议议程、预读和参会材料。
跨多个 Notion 信息源检索并整合,生成带引用的结构化文档与报告。
用于读取、生成与审阅PDF,并通过渲染检查版式和内容准确性。
将音频或视频中的语音转成文字,并可区分说话人与整理访谈记录。
将代码或页面描述转成Figma完整界面,并按设计系统逐段搭建设计稿
将 Figma 设计组件与代码组件建立映射,便于设计与实现保持一致。
根据代码库在 Figma 中创建或更新专业级设计系统与组件库
连接 Figma 获取设计上下文与资源,并将节点高效转换为生产代码。
将 Figma 设计稳定转换为代码,并支持校验迭代与无限制调用。
将 Figma 设计转为结构化语义 JSON 与截图,支持 AI 设计转代码流程。