一键导入
talk-to-figma-design
Parse Figma design prompt, enrich via MCP, explore codebase, generate design spec, and invoke brainstorming
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Parse Figma design prompt, enrich via MCP, explore codebase, generate design spec, and invoke brainstorming
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | talk-to-figma-design |
| description | Parse Figma design prompt, enrich via MCP, explore codebase, generate design spec, and invoke brainstorming |
Collect Figma design requirements, enrich them with live Figma data and codebase analysis, then hand off to the brainstorming pipeline for implementation planning.
User invokes /talk-to-figma-design after pasting a markdown prompt exported from the figma-annotations VS Code extension.
Arguments (all optional):
--channel <id> — override channel ID from prompt--collection "<name>" — process only the named collection's items<topic> — free text topic name for the spec file (default: derived from first frame name)bun socket on port 3055)Follow these steps in order. Do NOT skip steps. Do NOT implement any code — this skill only collects, enriches, and generates a spec.
<!-- talk-to-figma-design --> marker## Connection section--channel argument provided, use it instead of the prompt's channel ID--collection argument provided, filter to only items from that collectionUse the cursor-talk-to-figma MCP tools to gather detailed design data.
join_channel with the resolved channel IDget_node_info(nodeId) — capture children hierarchy, layout properties, auto-layout settingsscan_text_nodes(nodeId) — capture all text content within the frameget_styles() — capture color tokens, typography, effectsget_local_components() — capture available component libraryError handling: If MCP connection fails (relay not running, wrong channel), warn the user and continue with the prompt data only. Note in the spec that enrichment was skipped.
Use GitNexus to find existing components in the user's codebase that can be reused or adapted.
For each design frame:
gitnexus_query with the inferred type and function:
gitnexus_query({query: "authentication form with email password"})gitnexus_query({query: "product card with price image add to cart"})gitnexus_query({query: "navigation header with logo menu items"})gitnexus_context on the top match to understand its full interfaceGlobal patterns:
gitnexus_query({query: "design system UI components shared"}) — find reusable patternsgitnexus_query({query: "layout components page structure"}) — find layout patternsMap results: For each design frame, record:
Error handling: If GitNexus is not indexed in this project, skip this step entirely. Note in the spec that codebase exploration was skipped and recommend running npx gitnexus analyze first.
Write the spec to docs/figma-design-spec-YYYY-MM-DD-<topic>.md using this template:
# Design Spec: <topic>
## Overview
<Synthesized summary from all collections and enriched data.
What is being built? What screens/flows does it cover? What is the scope?>
## Design System
### Colors
<From get_styles — list color tokens with their values>
### Typography
<From get_styles — font families, sizes, weights>
### Components
<From get_local_components — reusable Figma components available>
## Screens / Frames
### <FrameName> (<nodeType>, <width>x<height>)
- **Node ID:** `<nodeId>`
- **Layout:** <auto-layout mode, padding, spacing from enriched data>
- **Children:** <hierarchy from get_node_info — list key elements>
- **Text Content:** <from scan_text_nodes — actual text values>
- **Design Notes:** <from original prompt notes>
- **Related Code:** <link to code refs from the same collection, if any>
- **Existing Match:** <from GitNexus — component path and assessment, or "new component needed">
## Code Context
### <file>:<lines>
<code snippet in fenced code block>
> <note from the prompt>
## Existing Components (from codebase)
### Matches Found
| Design Frame | Existing Component | Assessment |
|---|---|---|
| <frameName> | <component path> | reuse / adapt / new |
### Reusable Patterns
<List components, hooks, utilities, layouts that can be leveraged>
## Requirements
<Synthesize actionable requirements from:
- Design notes (what the designer intended)
- Enriched frame details (actual structure, text, layout)
- Code context (existing implementation state)
- Existing component analysis (what to reuse vs create)
Format as a numbered list of concrete, implementable requirements.>
After writing the spec file:
<path>. Now invoking brainstorming to refine requirements and plan implementation."/superpowers:brainstorming skill with the spec file as context/superpowers:writing-plans for implementation planningPriority order:
--channel CLI argument (highest)## Connection section of the parsed prompt