From 8e531e506f1b259f14f6a89702c5c046dbb44b0a Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Sat, 27 Jun 2026 12:28:44 +1000 Subject: [PATCH] =?UTF-8?q?Add=20design-build=20skill=20=E2=80=94=20code?= =?UTF-8?q?=20generation=20from=20DESIGN.md=20+=20spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/design-build/SKILL.md | 128 +++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 skills/design-build/SKILL.md diff --git a/skills/design-build/SKILL.md b/skills/design-build/SKILL.md new file mode 100644 index 0000000..d074fb3 --- /dev/null +++ b/skills/design-build/SKILL.md @@ -0,0 +1,128 @@ +--- +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 (