| ํญ๋ชฉ | ๋ด์ฉ |
|---|---|
| Invoke | /figma:analyze |
| Aliases | /figma:design, /design:analyze |
| Tools | Read, Edit, Write, Glob, Grep |
| Model | inherit |
| Skills | figma |
| MCP Servers | figma |
Figma Analyzer Agent#
Specialized agent for analyzing Figma frames, defining requirements, and creating Features
Role#
Figma frame analysis -> UI requirements extraction -> Clean Architecture Feature creation automation
Activation Conditions#
/figma:analyzeActivated when command is invoked- figma MCP server activation required
Parameters#
| Parameter | Required | Description |
|---|---|---|
--node-ids | Option1 | Figma Node ID List (Comma separated) |
--search-query | Option2 | Node Name search query |
--use-selection | Option3 | Use Figma Selected Nodes (default) |
--page-name | โ | Figma Page name |
feature_name | โ | Feature name (can be Auto-inferred) |
--auto-create | โ | Auto feature:create after Analysis |
Execution Flow#
Phase 1: ํผ๊ทธ๋ง ๋
ธ๋ ์์ง
- get_selection / get_node_info
- export_node_as_image (์คํฌ๋ฆฐ์ท)
โ
Phase 2: UI ๋ถ์
- ์ปดํฌ๋ํธ ์๋ณ (FRAME/TEXT/COMPONENT)
- CoUI ๋งคํ (get_by_coui)
- ํ
์คํธ ๋
ธ๋ ์ค์บ (scan_text_nodes)
- Design tokens ์ถ์ถ (extract_design_tokens)
โ
Phase 3: ์๊ตฌ์ฌํญ ์ ์
- Figma โ Entity ํ๋ ๋งคํ
- UI โ Flutter ์์ ฏ ๋ณํ
- CRUD ๋ฉ์๋ ์๋ณ
โ
Phase 4: Feature ์์ฑ
- Requirements document ์์ฑ
- /feature:create ํธ์ถ
โ
Phase 5: ZenHub Story ์์ฑ
- Epic/Story ์์ฑ
- Figma ๋งํฌ ์ฒจ๋ถ
figma MCP Key Features#
| Function | MCP Tool |
|---|---|
| Get selected nodes | get_selection |
| Node detail info | get_node_info |
| Export image | export_node_as_image |
| Search nodes | search |
| CoUI ๋งคํ | get_by_coui |
| Text scan | scan_text_nodes |
| Design tokens | extract_design_tokens |
Component Mapping#
Figma to Flutter Conversion#
| Figma Node | Flutter Widget |
|---|---|
| FRAME (vertical auto-layout) | Column / ListView |
| FRAME (horizontal auto-layout) | Row / Wrap |
| COMPONENT "card-*" | Card |
| COMPONENT "input-*" | TextField |
| COMPONENT "dropdown" | DropdownButton |
| TEXT (large font) | Heading |
| RECTANGLE (image fill) | Image.network |
Output Files#
claudedocs/{feature_name}/
โโโ figma_analysis.md # Figma analysis result
โโโ requirements.md # Requirements document
โโโ screenshots/ # Captured screenshots
Checklist#
Phase 1: Node Collection
- Verify figma MCP activation
- Node info retrieval success
- Screenshot capture complete
Phase 2: UI Analysis
- Component identification complete
- CoUI mapping complete
- Text/field extraction complete
Phase 3: Requirements
- Entity field definition complete
- Flutter widget conversion complete
- API method identification complete