--- name: design-build description: Generate production-ready HTML/Tailwind code from design specifications and DESIGN.md design tokens. Use when the user has a clear design direction and wants to build. --- # /design-build Generate code from a design spec and optional DESIGN.md tokens. Produces single-file HTML with Tailwind CSS via CDN (phase 1). Future versions will scaffold React projects. ## Flow ### Step 1: Gather requirements Ask the user two questions: 1. **"What are we building?"** — Description of the page, component, or interface. Be specific about functionality, layout, content. 2. **"What style? Pick from awesome-design-md or describe it."** — Same as design-explore: URL to a DESIGN.md file, or free text description. If the user already explored in design-explore, they can reference the same DESIGN.md. ### Step 2: If DESIGN.md URL provided, download and extract ```bash curl -sL -o /tmp/design-tokens.md ``` Read the file. Extract: - Palette (colors) - Typography (fonts, sizes) - Spacing - Border radius - Shadows - Identity/language notes ### Step 3: Build the code prompt Create a detailed prompt for the coder-pro sub-agent: ``` You are building a production-quality UI component/page. ## What to build {user's design description — what it is, what it does, layout, content} ## Design tokens (MUST follow exactly) ``` {paste the extracted tokens directly} ``` ## Technical requirements - Single HTML file with Tailwind CSS via CDN (