figma
npx skills add https://github.com/howells/arc --skill figma
Agent 安装分布
Skill 文档
Figma Implementation Workflow
Implement UI components directly from Figma designs using the Figma MCP.
<required_reading> Load interface rules for UI implementation:
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/design.md â Visual principles
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/colors.md â Color methodology
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/spacing.md â Spacing system
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/typography.md â Typography rules
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/layout.md â Layout patterns
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/animation.md â If implementing motion
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/forms.md â If implementing forms
- ${CLAUDE_PLUGIN_ROOT}/rules/interface/interactions.md â Touch, keyboard, hover
- ${CLAUDE_PLUGIN_ROOT}/references/frontend-design.md â Fonts and anti-patterns
- ${CLAUDE_PLUGIN_ROOT}/references/component-design.md â React component patterns </required_reading>
Prerequisites â CHECK FIRST
Before doing anything else, verify Figma MCP is available:
-
Check MCP Server Installation
- Look for
mcp__figma__*tools in your available tools - If no Figma MCP tools exist, STOP and notify the user:
“The Figma MCP server is not installed. To use /arc:figma, you need to install the Figma MCP server. See: https://github.com/figma/figma-mcp“
- Look for
-
Check Authentication
- Attempt a simple Figma MCP call (e.g.,
mcp__figma__get_design_contextwith the provided file) - If you receive an authentication error, STOP and notify the user:
“The Figma MCP server needs authentication. Please configure your Figma access token in the MCP server settings.”
- Attempt a simple Figma MCP call (e.g.,
-
Do NOT proceed if either check fails
- Do not attempt to implement designs without Figma access
- Do not guess at design specs
- Simply halt and inform the user what’s needed
Process
Only proceed with the following if Figma MCP is available and authenticated.
Follow the instructions in ${CLAUDE_PLUGIN_ROOT}/agents/design/figma-implement.md:
-
Extract Design Intent â Use Figma MCP to get specs (colors, typography, spacing, shadows, component hierarchy)
-
Understand Codebase Context â Find existing design system, component patterns, styling methodology
-
Implement with Fidelity â Write code using existing tokens, get padding/spacing right (most commonly missed)
-
Review and Compare â Screenshot the result, compare against Figma, fix discrepancies, iterate until matching
Required Input
- Figma URL (file or specific node)
- OR description of what to find in an already-shared Figma file
Usage
/arc:figma https://figma.com/design/xxx/yyy?node-id=123-456
Or if Figma file already shared:
/arc:figma "the header component"
Figma MCP Commands
Get design context:
mcp__figma__get_design_context: fileKey, nodeId
Get screenshot for comparison:
mcp__figma__get_screenshot: fileKey, nodeId
Extract specific values:
- Colors, gradients
- Typography (font, size, weight, line-height)
- Spacing (padding, margins, gaps)
- Shadows, borders, radii
- Component structure
<progress_context>
Use Read tool: docs/progress.md (first 50 lines)
Check for related prior UI/design work. </progress_context>
<arc_log>
After completing this skill, append to the activity log.
See: ${CLAUDE_PLUGIN_ROOT}/references/arc-log.md
Entry: /arc:figma â [Component/screen] implemented from Figma
</arc_log>
<success_criteria> Figma implementation is complete when:
- Design specs extracted via Figma MCP (colors, typography, spacing, shadows)
- Component implemented using existing design system tokens
- Screenshots compared against Figma design
- Responsive states handled (mobile, tablet, desktop)
- Discrepancies identified and fixed
- Progress journal updated </success_criteria>
Interop
- Use /arc:design if you need to create a design from scratch (no Figma reference)
- Use /arc:implement for planned multi-step implementations