# studio

Opens a live design studio page for a button, colours, typography, surfaces, spacing, motion, icons, fields, choices and toggles, cards and lists, navigation, dialogs and menus, messages and empty states, tables and charts, page layout, imagery, or several together, with finished looks and every option drawn for real, compare, undo, ask for more, then a proposal sent to chat.

Never changes the application until the user approves.

**When an agent uses it:** Use only when the user explicitly invokes /studio or $studio. Ordinary design requests must not activate it.

Group: [Design](https://www.atlasscope.dev/skills#design). Part of the agent-kit plugin, written for Agent Kit. License: MIT, © AtlasScope.

## Install

It comes with the plugin: https://www.atlasscope.dev/install. This skill by itself, for any agent that reads skill folders:

```sh
npx skills add AtlasScope/agent-kit --skill studio
```

## SKILL.md

# Studio

The user names a project and what they want to design. They get one live page, assembled for that request, where
every choice is drawn for real with the project's own words: finished looks first, then the few decisions that
matter, a preview beside them, compare, undo, and a way to ask you for things that are not there. **Review** sends a
proposal to the chat. The page is the deliverable; a written list of recommendations is a failure.

`<skill>` is the folder this file is in. `scripts/studio.mjs` needs only Node 18 or later. A session is a folder of
small files you edit (`project.js`, `more.js`, `more.css`); the script assembles the page from them and only the
studios the session uses, serves it on this computer, and passes messages between the page and you. Never read or
edit the assembled `index.html`.

## Assemble only what the request needs

Pick the fewest studios that answer it, then leave out the categories inside them that the project does not have
(`drop` in each studio's part, `dropSteps` for the button). The user can add a studio from the page later.

| They say | Studios |
| --- | --- |
| "the checkout button" | `button` |
| "our colours", "type feels off" | `palette`, `type` |
| "cards feel flat", "everything is cramped", "make it smoother", "icons don't match" | `surface`, `spacing`, `motion`, `icons` |
| "the sign-up form", "settings toggles", "the dashboard table" | `inputs`, `selection`, `data` |
| "the menu and sidebar", "the dialog", "toasts and empty states", "the product cards" | `navigation`, `overlays`, `feedback`, `cards` |
| "the landing page feels empty" | `layout`, `imagery` |
| "a new direction", "the whole look" | the six foundations (`palette,type,surface,spacing,motion,icons`) plus only the components the project really has |

Component studios draw with the foundations in the session, or a calm stand-in when one is absent. `list` prints every
studio.

## Gates

- Building or changing a studio never changes the application. A proposal changes it only after the user says, in the chat, to build it.
- "Today" is measured, never guessed: computed styles in the running page first, then the project's CSS, tokens and components. Record in `sources` how a value was found when it was not measured in a running page. Leave out what you could not find; the page then says "not measured".
- Never hide, mark or warn about a choice because it differs from how the project is built today. Write how it is built today into `system`.
- The page only warns about real problems (words that cannot be read, a target too small to tap), never taste.
- No review pass by another model unless the user asks.

## Run it

1. **Read the project** for each studio chosen: the component and its siblings, shared classes and tokens, the page background, fonts, the real words, and how the design system builds these today. No existing design means `measured:false` and the clean start.
2. **Start the session.** `node <skill>/scripts/studio.mjs new <primary checkout>/.artifacts/design/<slug> --modules inputs,palette`. The primary checkout is the parent of `git rev-parse --path-format=absolute --git-common-dir`, never a worktree; make sure `.artifacts/` is ignored. Outside a repository use `studio/<slug>` in the user's documents.
3. **Fill `project.js`.** It holds only the keys this session reads. Read `references/<studio>.md` for each studio's part, and `references/button.md` for the button's top-level keys. Fill `name`, `id`, the real words in `context`, `system`, then each studio's `measured`, `today` and `drop`.
4. **Check.** `node <skill>/scripts/studio.mjs check <dir>` assembles the page and must print `OK`. Errors name the file to fix.
5. **Open it.** `node <skill>/scripts/studio.mjs open <dir>` prints `URL: ...` (add `--at button/material` or `--at palette` to open where the user pointed). That is the dev server; start no other. Open the URL in the app you are running in when it has its own browser (the Claude app's browser pane via `preview_start`, the Codex or Cursor browser). With only the user's own browser, ask first; with neither, give the link. Confirm the first look reproduces today's design and there are no console errors.
6. **Listen the whole time it is open.** Run `node <skill>/scripts/studio.mjs wait <dir>` in the background and start it again each time it returns. It exits with one line:
   - `MORE: {json}` or `MODULE: name` or `PAGE ERROR: ...`: read `references/more.md`, handle it, `check`, wait again.
   - `SPEC:` ... `END SPEC`: a proposal. Read `references/proposal.md`. Build nothing until the user says so in the chat.
   - `NO_REQUEST` (exit 3) after 30 quiet minutes: wait again while the work is open, or stop.
   Requests made while you are not waiting are kept for the next `wait`. Without a listener the page offers Copy for chat; a pasted request is handled the same way. "Check the studio" means run `wait`.
7. **Hand over** in a few plain lines: the link; what today's design was found to be and how; what you could not find; what you left out and why. Then: "Pick a look or open any part. Pin versions to compare them. Ask for anything that is not there. Review sends me a proposal; I build nothing until you tell me to."

`state <dir>` prints the current picks, pins and where the user is. `stop` ends the server. `refresh` reassembles the
page from the skill's current engine; a studio made before sessions had their own files is split into them the first
time any command touches it, and its old page is kept in `.studio/`.

In a cloud session, read `references/cloud.md`. To change the skill itself, read `references/develop.md`.

## Traps

- Judge with the preview's own controls: Phone, Tablet and Computer, the project's background, In a page, and Less motion.
- The example page is an example. Do not present it as the real product, and put nothing private in `context`.
- If you can run JavaScript in the page, `studioCheck()` lists choices that draw exactly like another; fix or remove any you added.

Other files in the skill folder: .gitattributes, agents, references, scripts, src, tests. Browse them at https://github.com/AtlasScope/agent-kit/tree/main/plugin/skills/studio

Source: https://www.atlasscope.dev/skills/studio
