Agent skill UI design
Design Lab
Explore interface directions through requirements, design variants, and feedback.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/0xdesign/design-plugin/tree/main/design-and-refine/skills/design-lab --skill design-lab --agent claude-code --yesCheck this file in your project.claude/skills/design-lab/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/0xdesign/design-plugin/tree/main/design-and-refine/skills/design-lab --skill design-labSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use an existing frontend project, its local dev server, and a browser. Bring the target route or component, existing design patterns, and representative fixture data. The publisher’s FeedbackOverlay template is separate from the project-scoped Skill bundle.
View operation manualWhat this skill helps with
- Explore UI directions through interviews, design variants and feedback.
Good for
- Visual direction
- Starting point
- Detect the framework, package manager, style system, and available design memory.
- Comparison
- Five distinct variants with the same example content and interactive feedback.
- Decision
- Choose a direction or synthesize parts into a further variant.
- Deliverables
- A verified final preview, an implementation plan and design memory after confirmation, and cleanup of temporary lab artifacts.
- Skill name
design-lab- Repository
0xdesign/design-plugin
Make the options solve the same user task
A request for superficial variations
Use design-lab to make five versions of this panel with different colors.
Changing color alone makes it hard to compare the information order and interactions that affect the user’s task.
A fair design comparison
- Interview for the task, constraints, and existing design language.
- Use the same fixture data and behavior in five distinct arrangements.
- Record what each arrangement helps users do and preview the selected direction.
Design Lab operation manual
Set up a temporary design lab for a billing-history page, then turn specific reviewer feedback into one final preview and an implementation plan.
Find a better way for users to locate one invoice and download it. Preserve the existing fields and design language while comparing structures.
Interview for a shared design brief
Inspect the host project and find out how users identify the right invoice and which controls must stay.
Prompt · Step 1Use 0xdesign’s design-lab for [billing-history route or component]. Inspect the existing framework, package manager, components and any Design Memory before interviewing me. The user task is [find and download a past invoice]. Confirm what users look up first, which fields and interactions stay, the preferred density, and any technical constraints. Use the available question interface for missing decisions. Save the temporary design brief using the Skill’s documented path and show me a compact summary before building.Build five comparable variants and the feedback overlay
Create the temporary lab using the project’s routing conventions. Give the five layouts the same invoices and actions.
- The lab exposes five distinct layouts on one local route.
- Fixture data and the task stay comparable.
- A reviewer can attach feedback to the intended element.
Prompt · Step 2Use design-lab and its DESIGN_PRINCIPLES.md to build the agreed billing-history lab. Make five distinct structures, each with a stated trade-off. Reuse the inferred style and the same sample invoices, identifiers, and mock download action in each. Put the lab on a local temporary route using the project’s routing convention. Wire the FeedbackOverlay as described in the Skill, using the publisher’s template as a reference if the Skill-only bundle lacks it. Keep all prototype writes isolated from real billing data. Give me the local URL and a list of temporary files. Check variant switching and that feedback can be exported or read back.Compare where users find the invoice
Run the same invoice search in each variant and use the overlay to record precise feedback.
Prompt · Step 3Use design-lab to review [local lab URL] against the single task in [design brief]. Ask me to try finding the same invoice in each variant. Use the overlay for element-specific comments, or accept structured manual feedback if export is unavailable. Compare which label, arrangement, or action made the task easier and note any keyboard or narrow-screen issue you can demonstrate. Summarize verified observations without inventing reviewer feedback. Return a leading variant and any specific ideas I want to combine.
Find the relevant Design Lab phase
Ask the assistant to open the installed phase before resolving the specific problem.
The brief repeats choices the project already makesPreflight
- Command or reference
SKILL.md · Preflight Detection- Examples
- Read existing style tokens and Design Memory before asking about color or density.
A reviewer cannot identify the element to changeFeedback
- Command or reference
SKILL.md · Feedback System Setup- Examples
- Verify that the route includes the overlay and a comment refers to the intended element and variant.
The final preview is acceptedHandoff
- Command or reference
SKILL.md · Finalize- Examples
- Capture the agreed decisions, generate the plan, and remove only the temporary files from this run.
Design Lab troubleshooting
Does the lab update the actual billing page?
Design Lab works in a temporary comparison and preview flow. Its output after approval is a plan and reusable design decisions. Implementation is a separate step.
Where is the feedback template after a project-scoped install?
The tested Skill bundle includes SKILL.md and DESIGN_PRINCIPLES.md. The publisher keeps the FeedbackOverlay implementation template elsewhere in its repository, linked below.
What if I prefer parts of different variants?
Use the synthesis phase. Give the variant and element for each part to keep, then review the combined preview with the same data and task.