Scaffold a new page from a Figma frame
When to use: You have a ready Figma frame and want React/Next.js code that fits your codebase.
Flow
-
Point at the frameConvert this Figma frame to a Next.js page: <figma URL>. Reuse components from src/components/.✓ Copied→ Agent inventories existing components before writing new ones
-
Prop-map variantsMap the Figma variants to typed props (size, intent, disabled).✓ Copied→ TS types generated; no anys
-
Mock dataUse mock data; don't invent API calls. Keep backend out.✓ Copied→ Clean fetch-less component with a mocks file
Outcome: A real Next.js page merged in one PR — no reviewer rewrite.
Pitfalls
- Generating a parallel component library next to the existing one — Start with 'list existing components' so the agent reuses what's there