# Design and Refine: five UI variants, compare, refine (0xdesign/design-plugin) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-19 against commit 913a7ab (version 1.1.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/0xdesign/design-plugin/

## Explain it to a non-programmer
Your AI assistant designs a screen or a part of a screen five different ways, inside your own app and in your own colours and fonts. You compare them side by side in your browser, click on parts to leave comments, and it merges what you liked into a new version. When you are happy, it removes the test files and writes a plan for building the final design.

## Who it is for
- You are starting a new component or page and want to see different approaches before committing
- You want alternatives to a screen you already have
- You are stuck on a design direction and want concrete options
- You need to show real variations to someone, not describe ideas
- Not for: You don't use Claude Code: it ships as a Claude Code plugin
- Not for: Your project is not a web app built on Next.js, Vite, Remix, Astro or Create React App

## What it is
- Kind: command, knowledge
- License: see the repository
- Repository: https://github.com/0xdesign/design-plugin

## What it does
- Checks your project first: framework, package manager, styling system, and an existing design memory file
- Reads your colours, type, spacing, corner radius and shadows from your Tailwind config, CSS variables or theme, and looks at 2 to 3 existing buttons, cards and forms
- Interviews you in five short steps: scope, pain points and inspiration, brand tone and density, users and tasks, constraints
- Builds five variants, each on a different axis: information hierarchy, layout, density, interaction model, expressive direction
- Merges what you liked into a new variant F and repeats until you are happy, then shows a final preview (with before and after for redesigns)
- Deletes its temporary files and writes DESIGN_PLAN.md and DESIGN_MEMORY.md
- Never cuts: the feedback overlay on the lab page, and cleanup of the temporary files at the end or on abort

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| design-lab | /design-and-refine:start [target] | yes | Interviews you, builds five design variants in your app, refines them with your feedback and writes a build plan |
| cleanup | /design-and-refine:cleanup | yes | Removes the temporary design lab files if a session left any behind, after asking you |

### design-lab
- Asks for: The component or page to design, or nothing and it asks
- Asks for: Component or full page, new or a redesign (and the file path if a redesign)
- Asks for: Pain points, brands you like (Stripe, Linear, Notion, Apple) and interaction patterns
- Asks for: Brand adjectives, density, whether dark mode is needed
- Asks for: Main user, desktop or mobile first, top 3 tasks, what must stay, technical limits
- Gives: A design brief summary
- Gives: Five variants A to E at /__design_lab, each with a short reason it exists
- Gives: A synthesized variant F after your feedback, as many rounds as you need
- Gives: A final preview at /__design_preview
- Gives: DESIGN_PLAN.md: files to change, steps, component API, UI states, accessibility and testing checklists, design tokens
- Gives: DESIGN_MEMORY.md: style decisions reused in later sessions
- Say: "/design-and-refine:start ProfileCard"

## Know before installing
- It writes into your project while it works: a .claude-design/ folder and temporary routes such as app/__design_lab/; in a Vite app without a router it edits App.tsx and reverts it at the end.
- Two files stay after you finish: DESIGN_PLAN.md and DESIGN_MEMORY.md in the project.
- It does not start your app; keep your dev server running in another terminal.
- A small shell script runs when a session ends or the assistant stops; it only prints a warning if temporary design files are left.
- Saying cancel, abort or stop at any point makes it ask, then delete all lab files with no plan.
- The repository has no LICENSE file; the README and the plugin manifest say MIT.

## Install (official commands)
- Claude Code: `/plugin marketplace add 0xdesign/design-plugin` && `/plugin install design-and-refine@design-plugins` — Send as two separate prompts. The plugin is then available in any project.
- Claude Code (local copy): `claude --plugin-dir /path/to/design-variations-plugin` — For trying a local checkout of the plugin folder.

## What runs on the user's machine
- Code on the machine: yes (Claude Code plugin installs)
- Network: none
- Session end and every time the assistant stops: A bash script checks the current project for .claude-design/, __design_lab and __design_preview routes and feedback-*.json files and prints a warning. It reads only, writes nothing, 10-second limit.
- During a session: The assistant writes variant files to .claude-design/ and temporary routes into your app, and saves design-brief.json.
- In your browser at /__design_lab: A copied React feedback overlay keeps your comments in the browser's localStorage and copies them to the clipboard. No network calls.
- Finalize or abort: The assistant deletes .claude-design/ and the temporary routes; on finalize it writes DESIGN_PLAN.md and DESIGN_MEMORY.md.

## Settings
- `DESIGN_AUTO_IMPLEMENT`: true: implement the plan right after you confirm
- `DESIGN_KEEP_LAB`: true: keep the lab until you run the cleanup command
- `DESIGN_MEMORY_PATH`: Custom path for the design memory file

## Examples (from the pack's own files)
- Pasted feedback from the overlay: output format defined in None

## Steps only the person can do
- Start the app's dev server in a separate terminal (Your project's own dev command (for example pnpm dev)) Then: The assistant gives the /__design_lab URL and asks for feedback
- Open /__design_lab, leave comments with Add Feedback, submit, and paste the copied text into the chat (http://localhost:3000/__design_lab (or your dev server port)) Then: The assistant edits the variants or builds a synthesized variant F

## Mistakes to avoid
- Not: Wait for the assistant to start the dev server. Instead: Start your dev server yourself in another terminal before opening /__design_lab. Why: The plugin does not start it
- Not: Add the marketplace as 0xdesigner/design-plugin, as the plugin folder's README shows. Instead: Use /plugin marketplace add 0xdesign/design-plugin from the main README. Why: The repository lives under 0xdesign; the inner README names a different owner
- Not: Build the lab without the feedback overlay or move it into .claude-design/. Instead: Keep FeedbackOverlay.tsx in the same folder as the lab page and import it relatively. Why: The skill says .claude-design/ imports can fail with some bundler setups
- Not: Expect the final design to be built into your app when you finalize. Instead: Read DESIGN_PLAN.md and ask for the implementation, or set DESIGN_AUTO_IMPLEMENT. Why: Finalize cleans up and writes a plan
- Not: Keep edits you made inside the lab files. Instead: Copy anything you want to keep before you finalize or abort. Why: The whole .claude-design/ folder and the temporary routes are deleted

## Lines in the pack aimed at agents (ask the person first)
- "Plugin starts: `pnpm dev`" (design-and-refine/skills/design-lab/SKILL.md): The example flow contradicts Phase 4 and the README, which say not to start the dev server; leave it to the person.
- "`DESIGN_AUTO_IMPLEMENT`: If `true`, implement the plan immediately after confirmation" (design-and-refine/skills/design-lab/SKILL.md): Implementing edits real project files beyond the lab; confirm with the person before turning this on.
- "If no router: create a conditional render in `App.tsx` based on `?design_lab=true` query param" (design-and-refine/skills/design-lab/SKILL.md): This edits a file the person wrote; check git status and confirm the revert after cleanup.

## May I use it like this?
- commercial-app: conditions (README and plugin manifest say MIT, but the repository has no LICENSE file with the full text)
- client-work: conditions (Declared MIT; no LICENSE file in the repository)
- redistribute-files: conditions (Declared MIT; no LICENSE text to include in copies, so ask the author or keep the README notice)

## Which one to pick
- If You want five variants of one component or page inside your own app, click-to-comment feedback and a build plan: skill:0xdesign/design-plugin
- If You want to explore distinct UI directions and compare them side by side with Codex or other agents, not only Claude Code: skill:oil-oil/oil-ui
- If You want design commands to review, critique and polish existing screens: skill:pbakaus/impeccable
- If You want art direction rules for a landing page or dashboard instead of variants in your own style: skill:Leonxlnx/taste-skill

## Works well with
- tool:tailwindcss: The skill reads colours, spacing, radius, fonts and shadows from the Tailwind config
- tool:mui: Material UI themes are one of the style sources it reads
- tool:chakra-ui: Chakra UI themes are one of the style sources it reads

## Works in and needs
- Works in Claude Code: plugin
- Needs A web app on Next.js, Vite, Remix, Astro or Create React App: The lab is a temporary route inside your app
- Needs A running dev server: You view the variants at /__design_lab in it
- Needs bash: The session-end hook is a bash script

## How to tell it works
With your app's dev server running, type "/design-and-refine:start ProfileCard" and answer the questions. It works if five labelled variants appear at http://localhost:3000/__design_lab (or your port) with an Add Feedback button in the bottom-right corner.

## Related
- 0xdesign/design-gate

## Safety
Deletion is limited by its own rules to .claude-design/ and routes named __design_lab or __design_preview; the cleanup command asks before deleting. Commit your work first so you can see every change.
