Phase 4: Prototype
Build the component in Figma via the MCP server.
Purpose
The prototype phase takes the chosen design from ideation and builds it as a Figma component using the Figma MCP server.
Usage
/design:prototype <component-name>Prerequisites
.metapowers/design/<component-name>/component-contract.md(hard gate — enforced by hook).metapowers/design/<component-name>/ideation-options.md(soft gate)FIGMA_ACCESS_TOKENenvironment variable set
What It Does
- Reads the component contract and chosen ideation option
- Creates the component structure with
figma_create_componentandfigma_create_frame - Adds text layers with
figma_create_textand shapes withfigma_create_shape - Configures layout with
figma_set_auto_layoutand applies styles withfigma_apply_styles - Arranges variant sets with
figma_arrange_component_set - Exports preview images with
figma_export_image - Writes notes to
.metapowers/design/<component-name>/prototype-notes.md
Figma MCP Integration
The Design plugin uses @anthropic-ai/figma-mcp to write directly to your Figma canvas. The hook at hooks/check-define-exists.sh ensures a component contract exists before any Figma write operations.
Output
- Figma component created on your canvas
.metapowers/design/<component-name>/prototype-notes.mdwith implementation notes
MCP Tools Used
figma_create_component— Create a new Figma componentfigma_create_frame— Create a frame or container nodefigma_create_text— Create a text layer with content and stylingfigma_create_shape— Create a rectangle, ellipse, or other shapefigma_set_auto_layout— Configure auto-layout on a frame or componentfigma_apply_styles— Apply fill, stroke, and effect styles to a nodefigma_arrange_component_set— Arrange variants in a component set gridfigma_export_image— Export a node as PNG, SVG, or PDF
Next Phase
After prototype, proceed to Test to validate the implementation.