Use to draw a feature's UI draft canvas in this repo's .doan/canvases/ from its feature documents, following doan's canvas conventions, and to check it with the doan CLI. Writes the draft canvas, its assets and any new token with its docs/DESIGN.md line; touches no other app code and pushes only from develop.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Design Draft?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sinhyeokkang-design-draft)
---
name: design-draft
description: Use to draw a feature's UI draft canvas in this repo's .doan/canvases/ from its feature documents, following doan's canvas conventions, and to check it with the doan CLI. Writes the draft canvas, its assets and any new token with its docs/DESIGN.md line; touches no other app code and pushes only from develop.
---
Dogfooding loop (PRODUCT §5 'Dogfooding'): doan's own UI drafts are canvases in this repo's `.doan/canvases/`, viewed in the doan app, and `/design-sync` later compares the first implementation with them. This skill is the drawing half. Either runtime may draw, and the other runtime may implement from the files alone, so the draft must stand on its own: everything the implementer needs is in the canvas, the token CSS and the feature documents, not in a conversation.
**Language**: the canvas (UI copy, header, notes) is English, as the app's UI copy is. The report to the user is in Korean.
## Usage
- `/design-draft <slug>` — draw the draft that `docs/features/<slug>/design.md` asks for.
- `/design-draft <slug> --revise` — apply the user's feedback to the existing draft (same steps from 2).
## When to use
- After `/feature-review`, before `/tdd`: the review settles the list of visible states, and `/design-sync` compares only the states the draft draws. Drawn earlier, the draft is redrawn.
- For screens whose first implementation is not integrated on develop yet.
- For a redesign feature (a child of a parent feature, AGENTS.md 'Terms', or a standalone follow-up) whose `design.md` requests a new draft file for a screen already on develop.
**Not for**: restyling a screen already on develop outside a redesign feature. Once a screen's first implementation is integrated on develop (not when it is released), the code and `docs/DESIGN.md` and `docs/design/` are the reference; a new look for it is a change request through `/feature`, which may make it a redesign feature.
## Prerequisites (stop if any fails)
1. `docs/features/<slug>/design.md` has a draft request: canvas path and id, the frame ids to draw, and constraints. If the state list is missing, stop and ask; do not invent it.
2. `doan check --json --repo .` runs (the repo's `.doan/config.json` is valid). This skill dogfoods the installed `doan` on `PATH` (AGENTS.md 'Commands'); if `doan` is not on `PATH`, stop and ask the user to install Doan.
## Steps
### 1. Read the inputs
Read the files themselves; do not work from someone's summary of them.
- `docs/features/<slug>/spec.md` and `design.md` (the draft request, flows, copy, states).
- `docs/PRODUCT.md` §5 'Dogfooding' and the §5 items for the screens the draft shows; `docs/ARCHITECTURE.md` §1 'Conventions'.
- `docs/DESIGN.md` (evidence policy, design system, screen index) and `docs/design/<group>.md` — the measured contract of screens already shipped.
- Existing drafts in `.doan/canvases/` (shared classes, how "not in code" is marked), the design-system canvases in `.doan/ds/`, `app/src/renderer/tokens.css`, the shared primitives in `app/src/renderer/ds/` (`index.css`), `.doan/assets/mock.css`.
- The renderer code for any shipped screen the draft shows (`app/src/renderer/`).
- `doan ls --json --repo .` and `doan check --json --repo .` before you start, so new findings are yours.
**Design presets** (AGENTS.md 'Design presets in development skills'): typically `shape` before drawing flows and states, `harden` or `onboard` for error, empty and first-use states, `clarify` for copy, and `critique` on the finished draft before handing it over. This skill's rules win over a preset (shipped screens copied, tokens first, no app-code edits, the feature documents' decisions). If the command is unavailable (`usage_error` on an older checkout), say so and continue.
If spec and design leave a visible choice open (a state, a label, a placement), ask the user one question at a time with the runtime's question tool, one recommendation each. Record each answer in the feature's `design.md`.
### 2. Draw
Write the canvas at the path the request names (one HTML file, ARCHITECTURE §1 convention 1).
- **Work signal** (guide rules D and E, as any agent editing a canvas): run `doan work start <canvas path> --json` before the first edit, and `doan work update <canvas path> --frame <id> --note "<what you are drawing, one short line in the person's language>" --json` each time you start editing a frame. When you stop drawing (handing over, or stopping to ask), run `doan work done <canvas path> --json`. `delivered: false` is expected when the checkout is not a project the app has open and `start` cannot register it (an unregistered worktree of a saved repository usually registers itself on `start`); do not retry it. Unlike rule E, which keeps it out of the person's answer, note it in this skill's report, which goes to the maintainer.
- **Conventions** (ARCHITECTURE §1): `<meta name="doan:canvas">` with the requested id and `<meta name="doan:width">` in `<head>`; every requested frame as `data-doan-frame` with a `data-doan-title`; `data-doan-id` on elements the implementation will be paired with or a message will point at.
- **`data-doan-implements` points only to files that exist now.** A path to a file the feature will create is an `implements_not_found` error.
- **Tokens first** (read docs/DESIGN.md 'Adopted rules' before drawing): link `../../app/src/renderer/tokens.css` by a relative path and write every app value a token covers as that token. A literal is allowed only when no token has the value and the value is needed; list each one in the report as a component constant or a new token. A new token that follows the rules in docs/DESIGN.md 'Tokens first' may be added to `app/src/renderer/tokens.css` in the same change (the one exception to 'Do not edit app code' below: add tokens only, never change an existing token's value), and recorded in docs/DESIGN.md. Never pick an approximate token without asking the user. Before handing over, scan the draft's CSS for literals that have an exact token and replace them; a replacement must leave the computed value unchanged. Colors of example screens the human reviews inside the draft (the mock canvas on the board) come from `.doan/assets/mock.css`. No colour literal anywhere else. Follow the theme in DESIGN.md 'Design system' and the feature documents: light only, using the role variables in `tokens.css`, never the legacy aliases kept for old drafts.
- **No coloured edge stripes**: never mark a message, notice, card or row with a coloured or thick left/start border. Errors use an icon plus danger text or a status block; notices use an inset fill. A 1px neutral divider between panes is fine.
- **Shipped screens are copied, not redesigned** — except the screen a redesign feature is redesigning, which is drawn as its feature documents ask. Any other screen already on develop (header, sidebar, Home, Settings) is drawn as the code and `docs/DESIGN.md` and `docs/design/` have it; put any change you would make into the report as a change request instead of drawing it.
- **Every requested state gets a frame or a labelled tile**, with the real English copy from the design document (no placeholder text). Long values, empty values and error states are drawn, not described.
- **Mark what is not in code** (agent rule B) the way existing drafts do, and say in the header which frames are new.
- **Header**: one intro block — scope, which frames `/design-sync` will compare, what is copied from shipped screens, and references with their source and whether they were checked or recalled from memory (AGENTS.md 'Leave evidence for references').
- **Canvas assets**: put new canvas-only images, icons and shared CSS/scripts in `.doan/assets/`. Reference existing repository fonts, tokens and primitives in place; do not copy them merely to fill the assets directory.
- **No external resources** (CDN fonts, scripts, images). Prefer static HTML and CSS; a script only when a state cannot be drawn otherwise, because `/design-sync` pairs elements by selector.
### 3. Check with the CLI
- `doan check --json --repo .` — no new error-level finding compared with the run before you started, and none in this canvas. The only new warnings allowed are `hardcoded_color` in `.doan/assets/mock.css`.
- `doan ls --json --repo .` — the canvas is listed with the requested id and width, and its `frames` ids equal the requested list (no missing, no extra).
### 4. Hand over for review
The user reviews the draft in the doan app. Tell them how to open it when it is not already open: build the CLI and start a dev run with the commands and isolation in AGENTS 'Commands' (a temporary `HOME`, a fake `SHELL`, and `CLAUDE_CONFIG_DIR` / `CODEX_HOME` unset or overridden, besides the temporary userData),
then add this repo through the Add Projects page (File > Add Projects…, ⌘O) and open the canvas. Stop here and report. Feedback comes back through this conversation or the conductor, often pointing at frames and elements the user put into a message as chips in the canvas's conversation panel, then `/design-draft <slug> --revise`. Loop until the user confirms; record the confirmation in the feature documents (`orch.md` decision log under `/orchestrate`, otherwise `design.md`).
### 5. Commit
- Only the canvas, plus any new file under `.doan/assets/` it needs and any token added under 'Tokens first' with its `docs/DESIGN.md` line: `docs(design): <slug> draft`. A revision is `docs(design): <slug> draft revision`.
- Trailer: a Codex session ends the message with `Co-Authored-By: Codex <noreply@openai.com>` (AGENTS.md 'Commit conventions'); a Claude Code session uses its own attribution.
- Commit on whichever branch is checked out; do not switch or create a branch for the draft, but never commit on `main` (switch to develop first).
- On develop, push straight to develop, so chain links and workers that start from `origin/develop` see the draft. On a `<type>/<slug>` branch do not push; the draft reaches develop with that branch (`/ship` or `/orchestrate` pushes it).
## Report
```
🖌 design-draft: <canvas path> (new | revision)
Not drawn (first): <requested frames or states missing, and why>
Frames: <id — title> ...
Copied from shipped screens: <which, from which code / docs/design section>
Change requests: <differences from shipped screens you would propose, or none>
Questions asked: <question → answer>
Literals without a token: <value — where — component constant | proposed token>
check: <errors 0, warnings> ls: <frame ids match / differ> work: <delivered true / false and why>
Commit: <hash>
Next: user review in the app → --revise or confirmed
```
## Prohibited
- Do not edit app code, tests or other features' documents, except adding a rule-following token to `tokens.css` (see 'Tokens first').
- Do not edit the draft of a screen already on develop (e.g. `.doan/canvases/doan-canvas.html`); that is a change request. A redesign feature writes a new file instead.
- Do not add canvas conventions or test-only attributes.
- Do not draw a decision that is not in the feature documents, PRODUCT or ARCHITECTURE; ask instead.
- Do not merge, and do not push a `<type>/<slug>` branch ('Commit').