prototype
Build the component in Figma using the chosen design approach from ideation
SKILL.mdplugins/design/skills/prototype/SKILL.md
GitHubPrototype
Build "$ARGUMENTS" in Figma as a component with all variants and states specified in the component contract.
Arguments. $ARGUMENTS may contain the project name and optional flags. Take the first token as <project> and treat --skip-checks as a flag; never include flags in file paths. All paths below use <project>. If --skip-checks is present, skip the prerequisite check and, before writing any artifact, append one line to .metapowers/design/<project>/skip-log.md: - <ISO timestamp> — <skill name> skipped prerequisite check for <artifact file> — reason: <reason or "none given">.
Prerequisites
Read .metapowers/design/<project>/02-define.md (required — hard gate enforced by hook).
Read .metapowers/design/<project>/03-ideate.md. If this file does not exist, tell the user:
Phase 3 (Ideate) has not been completed for "<project>". Run
/design:ideate <project>first, or use--skip-checksto bypass.
Process
Read context files:
- Read
.metapowers/design/<project>/02-define.mdfor the component contract (props, variants, states, tokens) - Read
.metapowers/design/<project>/03-ideate.mdfor the chosen design approach (if exists) - Read
${CLAUDE_PLUGIN_ROOT}/shared/component-contract-template.mdfor reference
- Read
Read the design system via MCP tools:
- Call
figma_get_variablesto get current token values for fills, spacing, typography - Call
figma_get_design_system_summaryto understand the system structure
- Call
Build the base component:
- Call
figma_create_componentwith the component name and base dimensions - Call
figma_set_auto_layoutto establish layout structure - Call
figma_create_textfor text elements - Call
figma_create_shapefor visual elements - Call
figma_apply_stylesto apply token-based fills, strokes, and effects
- Call
Build variant components for each variant dimension:
- Create a component for each variant value
- Call
figma_arrange_component_setto combine as a variant set
Apply states to each variant:
- Modify fills, opacity, and effects for hover, focus, active, disabled, error, loading states
Verify the prototype:
- Call
figma_export_imageto capture a visual of the built component - Compare against the component contract requirements
- Call
Write the artifact to
.metapowers/design/<project>/04-prototype.mdwith implementation notes
Output
The Figma component built on the canvas and notes written to .metapowers/design/<project>/04-prototype.md. Present to the user:
- Component node ID for reference
- Visual export of the component
- Any deviations from the contract and why
- Notes for the Test phase