product-design
БесплатноЗапускает вложенные скриптыНе проверенAutomates design review, token extraction, component mapping, and implementation planning. Reduces design handoff from 6-10 hours to 5 minutes via direct…
Об этом скилле
Product Design Skill
Automate design handoff from Figma to code with design system intelligence. Extract tokens, map components, detect drift, generate implementation plans.
When to Invoke
Auto-invoke when user says:
- "Review this design"
- "Analyze Figma mockup"
- "Design handoff for [feature]"
- "Check design system impact"
- "Plan implementation for design"
- "Extract tokens from Figma"
- "What changed in the design?"
What This Does
5-Step Workflow:
- Design Analysis: Extract patterns, components, tokens from Figma
- Codebase Audit: Compare design vs implementation, find drift
- Implementation Planning: Generate phased task breakdown
- Task Assignment: Create Navigator task document
- Handoff: Ask user to review or start implementation
Time Savings: 6-10 hours → 15-20 minutes (95% reduction)
Prerequisites
Required
Python Dependencies
cd skills/product-design ./setup.sh # Automated installation # OR manually: pip install -r requirements.txtFigma Desktop (for automated workflow)
- Download: https://www.figma.com/downloads/
- Enable MCP: Figma → Preferences → Enable local MCP Server
- Must be running during design reviews
Project Structure
.agent/design-system/directory (created on first run)- Project with components (React/Vue/Svelte)
Optional (Enhanced Features)
- Figma Enterprise: Code Connect for automatic component mapping
- Tailwind CSS: Design token integration via @theme
- Storybook: Component documentation and visual regression
Installation
Quick start:
cd skills/product-design
./setup.sh
See INSTALL.md for detailed installation guide and troubleshooting.
Workflow Protocol
Step 0: Check Setup (Auto-Run)
Before starting, verify Python dependencies installed:
# Get Navigator plugin path
PLUGIN_PATH=$(dirname "$(dirname "$(dirname "$PWD")")")
# Check if venv exists
if [ ! -d "$PLUGIN_PATH/skills/product-design/venv" ]; then
echo "❌ product-design skill not set up"
echo ""
echo "Run setup (30 seconds):"
echo " cd $PLUGIN_PATH/skills/product-design && ./setup.sh"
echo ""
echo "Or use manual workflow (no Python needed)"
exit 1
fi
If setup missing:
- Show setup instructions
- Offer manual workflow as alternative
- Do not proceed with automated Figma workflow
If setup complete:
- Continue to Step 1 (Design Analysis)
Step 1: Design Analysis
Objective: Extract design patterns from Figma or manual description
With Figma MCP (Automated) ✨ SIMPLIFIED
New Architecture (v1.1.0+): Python directly connects to Figma MCP - no manual orchestration!
# Python functions now handle MCP connection automatically
from figma_mcp_client import FigmaMCPClient
async with FigmaMCPClient() as client:
# Progressive refinement - fetch only what's needed
metadata = await client.get_metadata()
components = extract_components(metadata)
# Fetch details only for complex components
for comp in components:
if comp['complexity'] == 'high':
comp['detail'] = await client.get_design_context(comp['id'])
# Get design tokens
variables = await client.get_variable_defs()
Workflow (fully automated):
- User provides Figma URL
- Run
python3 functions/design_analyzer.py --figma-url <URL> - Python connects to Figma MCP (http://127.0.0.1:3845/mcp)
- Fetches metadata → analyzes → fetches details only if needed
- Returns complete analysis
Benefits:
- ✅ No manual MCP tool calls by Claude
- ✅ Progressive refinement (smart token usage)
- ✅ Automatic connection management
- ✅ Built-in error handling
Requirements:
- Figma Desktop running
- MCP enabled in preferences
- Python dependencies installed (
./setup.sh)
Manual Workflow (No MCP)
**Ask user for design information**:
What is the feature name? [e.g., "Dashboard Redesign"]
Figma link (optional): [figma.com/file/...]
**Design Tokens**:
List new or modified tokens:
- Colors (name: value, e.g., "primary-600: #2563EB")
- Spacing (e.g., "spacing-lg: 24px")
- Typography (e.g., "heading-xl: 36px/600")
- Other (radius, shadow, etc.)
**Components**:
List components in design:
- Component name
- Type (atom, molecule, organism)
- Variants (if any, e.g., "Button: primary/secondary, sm/md/lg")
- Similar to existing component? (name if known)
**Proceed to Step 2** after gathering information
Run design_analyzer.py
# Prepare input (MCP or manual JSON)
# MCP: Already have /tmp/figma_metadata.json
# Manual: Create JSON from user input
python3 functions/design_analyzer.py \
--figma-data /tmp/figma_combined.json \
--ui-kit-inventory .agent/design-system/ui-kit-inventory.json \
--output /tmp/analysis_results.json
Analysis Output:
- New components not in UI kit
- Similar components (reuse opportunities)
- New design tokens
- Breakin
Установить product-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGrepGlobBashTaskTodoWriteВложенные файлы
FAQ
Что делает скилл product-design?
Automates design review, token extraction, component mapping, and implementation planning. Reduces design handoff from 6-10 hours to 5 minutes via direct Figma MCP integration. Auto-invoke when user mentions design review, Figma mockup, or design handoff.
Как установить скилл product-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл product-design запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic