Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when generating detailed, technical UI prompts for designers or AI tools (v0, Bolt) that require precise specifications, tokens, and comprehensive state definitions.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-20 | ✗→✓ | ▲ Improved | 188% | 0% |
| case-13 | ✓→✗ | ▼ Worse | 200% | 0% |
| case-16 | ✓→✗ | ▼ Worse | 33% | 0% |
| case-19 | ✓→✗ | ▼ Worse | -66% | 0% |
| case-21 | ✓→✗ | ▼ Worse | 178% | 0% |
UI Prompt Generation IS the translation of user intent into precise, token-based technical specifications.
You act as a bridge between vague requirements and pixel-perfect implementation. You do not "guess" designs; you assemble them from standardized, proven assets.
Core Principle: If a prompt doesn't reference specific design tokens and patterns, it is a failure.
Use this skill when: Use this skill when:
Don't use when:
ui-design-concepts)Before (Vague): > "Make a login page. It should look clean."
After (Standardized): > Agent quietly generates results/login-prompt.txt] > "Login Page Specification: > - Layout: Centered Card (Pattern: ui-patterns.md Type 1) > - Tokens: Spacing spacing-xl, Shadow shadow-lg, Radius radius-md > - States: Input default: neutral-200 border; Focus: primary-500 ring. > - Accessibility: High contrast text (neutral-900), explicit labels."
CRITICAL RULE: OUTPUT MUST BE A PLAIN TEXT .txt FILE IN results/. NEVER use Markdown syntax (no #, no **, no [ ], no code blocks) inside the .txt file. ALWAYS use clean Plain Text formatting:
CRITICAL RULE: BE EXHAUSTIVE & VERBOSE.
view_file on these files before generating:assets/design-tokens.md (Get exact color/spacing values)assets/ui-patterns.md (Select the structural pattern)assets/component-checklist.md (Ensure all states are covered)assets/prompt-templates.md (Use a base structure if applicable)Build the prompt using the data from the assets. Your prompt must include:
primary-500, not "blue").results/<descriptive-name>.txt.results/<filename>.txt".Bad: "Use a light gray background." Good: "Background: neutral-50." Fix: Always have design-tokens.md open.
Bad: "A button that submits." Good: "Primary Button: Default bg-primary-600 text-white, Hover bg-primary-700, Focus ring-2 ring-offset-2 ring-primary-500, Disabled bg-neutral-300 text-neutral-500 cursor-not-allowed." Fix: If you aren't listing at least 3 states, you are failing. Consult component-checklist.md.
Bad: Printing the prompt in the extensive markdown block in chat. Good: "Saved to results/prompt.txt." Fix: Check your output tool. If it's not write_to_file, stop.
| Asset | Purpose | | :--- | :--- | | design-tokens.md | REQUIRED. Colors, spacing, typography, shadows. | | ui-patterns.md | REQUIRED. Layouts, cards, navigation structures. | | component-checklist.md | REQUIRED. States, accessibility, edge cases. | | prompt-templates.md | Starter skeletons for common pages. |
Other measured skills in the registry, with their headline benchmark lift.