/design-studio:design-studiofrom design-studio
Use when the user asks to design, redesign, restyle or mock up a page, screen, flow or app UI, says a UI looks ugly or dated, wants to compare visual directions or variants before code changes, or wants Superdesign-style drafts without an external design service.
Ships in design-studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You write designs as single-file HTML drafts, look at every render, and show them side by side on a local canvas. Quality comes from real content from the code, one design system once a direction is chosen, and fixing what the renders show. Everything lives in .design/ in the project, so later sessions continue from there.
The tool is one command with two subcommands: bun ${CLAUDE_PLUGIN_ROOT}/bin/design-studio shot and bun ${CLAUDE_PLUGIN_ROOT}/bin/design-studio canvas. Below it is written design-studio. If the plugin root is not filled in above, it is two folders up from this skill's folder. Formats are in references/draft-contract.md, the review checklist in references/review.md.
In DSH (DSH_SESSION_ID is set), start a new topic with design-studio brief new <fresh-slug>, even in an existing conversation. Use the returned root in place of .design everywhere below, including context, design system, screenshots and drafts. Do not read, copy or infer a direction from previous briefs. For a new screen without an approved shell, start from the requirements and current product source, not an old mockup. Continue within this root for iterations on the same topic. Only on explicit continuation of an earlier topic use design-studio brief resume <slug> (or @legacy for the old project-wide drafts). A name collision is not permission to resume.
In DSH, open the returned url with sidebar_open after selecting a brief. Use the DSH origin the user actually visits if the host advertises loopback to a remote browser. If the tool is unavailable, direct the user to the Design Studio tab in the right sidebar. Do not launch a standalone canvas or give its printed loopback URL in DSH.
.design/context.md.drafts/<target>/current/v1.html: today's UI with realistic sample data, since a static file has no backend, covering the same part of the screen as the variants. A screen that does not exist yet has no baseline; start from the shell of the closest existing one..design/design-system.md, drafts use only its tokens. Without it, each first-round draft may propose a style and records it in meta.json tokens.proposed. When creating drafts for a known common variant, assign its meta.variant slug explicitly; for a known alternate source, also declare meta.variantParent consistently as described in the contract. Neither field is inferred from a draft name or a version parent.design-studio shot --all .design. Exit 4 means a page threw: fix that first. Open each shots/sheet-*.png, then the single PNG of anything that looks off, and work through the checklist. After fixes, run --all again and look again. Your report describes the images from the last run, never a fix you have not seen rendered.design-studio canvas --dir .design in the background (add --open when the user is at this machine). It prints its URL (port 4870, or a free one) once it answers; give that URL and ask which direction to continue. Stop it with the kill command it prints.meta.versions for every new version that has a source, including the first version of an alternative. Mark a genuinely source-free root with an empty version entry. Initial variants branch from the baseline when one exists. Branch from the exact version selected, not automatically from the latest; if the source is unclear, ask. Keep existing files and metadata intact and update status as appropriate. See references/draft-contract.md for legacy inference and warnings..design/design-system.md from that draft. A choice applies only to the specific draft, version and scope the user identified; ask if ambiguous. It does not approve other variants, screens, later iterations or implementation.meta.variant string slug. For a new alternate variant with a known source variant, set meta.variantParent to that source slug consistently on every draft declaring the alternate. The source variant must exist and variant origins must not cycle. These declarations do not replace the exact same-target version parent in meta.versions. Do not infer variant membership or origin from draft names or version edges. Leave legacy drafts unassigned and accessible unless manually opted in with known relationships; do not move or delete files, and ask when a relationship is uncertain. Ask before assuming a selection applies to another screen. See references/draft-contract.md for the full variant contract and migration rules.| Mistake | Instead |
|---|---|
| Features the product lacks (global search, history views, version labels) | Leave them out, or list each in proposed |
| The raw page as the baseline: its script never runs, so it has no data | Reproduce it as a draft with sample data |
| Reporting a fix from the source | Report what the last --all run shows |
| A new palette on every later screen | After a pick, the design system is a hard constraint |
<, > or & in sample text vanishing as tags | Escape them |
| Phone layouts judged from a cropped desktop render | --width 390 renders at the real width |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kolezka/design-studio --plugin design-studio