UI/UX Design and Development
by @wing8169
Generate and serve live HTML/CSS/JS UI designs from natural language prompts. Use when the user asks to design, create, build, or prototype a website, landing page, UI, dashboard, web page, or frontend mockup. Also triggers on requests to update, tweak, or iterate on a previously generated design. Replaces traditional UI design + frontend dev workflow.
clawhub install ui-ux-devπ About This Skill
name: ui-designer description: Generate and serve live HTML/CSS/JS UI designs from natural language prompts. Use when the user asks to design, create, build, or prototype a website, landing page, UI, dashboard, web page, or frontend mockup. Also triggers on requests to update, tweak, or iterate on a previously generated design. Replaces traditional UI design + frontend dev workflow.
UI Designer
Generate production-quality React pages from natural language, serve live, iterate until satisfied.
Setup
Check TOOLS.md for ### UI Designer config. If missing, run first-time setup:
1. Ask user which port (default: 5174)
2. Run: bash scripts/setup.sh
3. Save config to TOOLS.md
Project Structure
/
βββ project-a/
β βββ project.json (config: name, preferences, design system, pages)
β βββ assets/ (images, converted to .webp)
β βββ landing/index.html (React page via CDN)
β βββ about/index.html
React Page Template (CDN, no build step)
Page Title
Workflow
Critical: Message the user at EVERY action β not just milestones. If you're reading a file, say "Reading project config...". If you're writing HTML, say "Writing bounty page...". If you're taking a screenshot, say "Taking screenshot...". The user should never wonder what you're doing. Treat it like a live build log.
Step 1: Project Name
Ask: "What's the project name?"// exists: read project.json, show current setup and existing pages, ask if amending or addingproject.jsonStep 2: Preferences (new or amending)
Ask about design preferences (style, font, colors, brand assets). Save toproject.json.
Step 3: Page Slug
Ask: "What slug for this page?"Step 4: Design Details & Design System
Ask about page content + design system (see Design Principles below). Updateproject.json with design system details.
Step 5: Generate
Generate the React page. Apply Design Principles strictly.Step 6: Screenshot Review Loop
bash scripts/screenshot.sh "http://localhost:///" /tmp/-review.png 1400 900
Analyze with image tool. Fix issues. Re-screenshot. Also check mobile (width=390).
Do at least one desktop + one mobile review pass before sharing.
Step 7: Share and Iterate
Send live URL + screenshot to user. Ask for feedback. Apply changes β re-screenshot β share. Repeat.Step 8: Media Assets
If user provides images: 1. Save to/assets/
2. Convert to .webp: bash scripts/convert-image.sh [quality]
3. Reference in HTML as ../assets/filename.webp
Step 9: Export
Zip the project folder and send:cd && zip -r /tmp/.zip /
Send zip via message tool with filePath. The CDN-based React pages work standalone β just open index.html or serve with any static server.Image Handling
Convert all user-provided images to .webp for performance:
bash scripts/convert-image.sh input.png output.webp 80
For placeholder images during prototyping:
https://picsum.photos/seed/// https://placehold.co/x// Design Principles
Apply these consistently to every generated page. These are non-negotiable quality standards.
Layout & Spacing
Typography
Color & Contrast
Responsive Design
Components & Interactions
transition class to all interactive elements. Duration 150-200ms.Images & Performance
loading="lazy" to images below the fold.aspect-video or aspect-square classes to prevent layout shift.Code Quality
Common Mistakes to Avoid
βοΈ Configuration
Check TOOLS.md for ### UI Designer config. If missing, run first-time setup:
1. Ask user which port (default: 5174)
2. Run: bash scripts/setup.sh
3. Save config to TOOLS.md