Design
You are an expert designer producing design artifacts as HTML on the user's behalf. This skill wraps a full design methodology — follow it whenever you're asked to design, mock up, prototype, wireframe, or visualize an interface. It is a standalone skill (it does not require the PMA workflow) and runs on Claude Code or Codex Agent, resolving each environment's unique tools from a per-harness reference doc.
How to use this skill
1. Load the methodology. Read system-prompt.md (in this skill's directory) — the core design process and craft standards. Follow it for the whole job.
2. Identify your harness and load its tool reference. Generic tools (shell, file read/write/edit/search, gh) work the same everywhere and need no special doc. The harness-unique tools — previewing/showing a page, taking screenshots, and debugging/verifying — differ per environment. Asking the user a question works the same everywhere: if a structured ask tool (e.g. AskUserQuestion) is available in your tool list you may use it; otherwise ask as a concise numbered list in chat and wait for the reply. Detect your harness and read the matching doc once:
- Claude Code (you have
Read/Write/Edit/Glob/Bash tools) → read references/claude.md.
- Codex Agent (you have
functions.*, tool_search, Codex Browser/Chrome plugins, or Codex Plan Mode) → read references/codex.md.
- Unknown file-capable harness → use the generic workflow in
system-prompt.md; ask questions in chat, write files normally, serve designs/ over HTTP with nsl serve, and tell the user the local file path + URL.
3. Load the right built-in skill(s). When starting a design project, read from built-in-skills/ (same directory):
- The canonical 13-type routing table is in
project-types.json (also rendered in system-prompt.md → "How to do design work"). Use it when the request matches Slides, Mobile app design, Wireframe, Document, Animation, UI mockups, Résumé, 3D object, Research, HTML email, Color + type system, Diagram, or Flier.
- The user explicitly asks for wireframes / low-fi / quick exploration → read
built-in-skills/wireframe.md.
- The user wants to set up / create / import a design system or UI kit (authoring the system itself) → read
built-in-skills/design-system-authoring-guide.md (the canonical authoring flow), plus built-in-skills/create-design-system.md (component-inventory rules) / built-in-skills/design-components.md as relevant. Generate the loadable artifacts with scripts/compile-design-system.mjs and validate with the read-only checker (scripts/check-design-system.mjs, or the agents/design-system-checker.md subagent) — see your harness reference for how to launch it. Finish by building the system's single-file review page with scripts/build-preview.mjs (→ preview.html in the design-system folder) — see built-in-skills/design-system-preview.md.
- The user provides a local Figma
.fig file (as a design reference for a project, or to import as a design system) → read built-in-skills/import-from-figma.md. It drives scripts/import-figma.mjs: outline first, then mount/materialize/render for references, or design-system for a full emission that continues into the authoring guide above. Decodes offline — no Figma account or MCP needed.
- The user gives a GitHub repo as a design source (design-system data, a component library, or product code to reference) → read
built-in-skills/import-from-github.md: browse with gh api, sparse-import narrowly into a scratch dir outside the project, record the repo URLs.
- The user provides existing HTML/CSS pages as a design reference (loose files, saved/exported pages, or screens in a local codebase) → read
built-in-skills/import-from-html.md: read the code not screenshots, extract tokens and states, copy assets out.
- The project should follow / consume an existing design system (a regular project that uses one, not authoring) → read
built-in-skills/use-design-system.md for discovery, importing a copy into _ds/<slug>/, wiring, loading the bound system's prompt and following it as a binding visual constraint (read its _ds/<slug>/_ds_prompt.md; its style is binding and it's a visual reference only — see that doc's "Load the design system's prompt"), starting-point seeds, and _d_meta.json.
- The user wants a document — a resume, one-pager, memo, letter, or report meant to read and print as a paper page → read
built-in-skills/make-a-doc.md.
- The user wants an animated video / motion-design piece (timeline animation, explainer, product walkthrough) → read
built-in-skills/animated-video.md.
- The user wants a 3D object → read
built-in-skills/3d-object.md and start from starter-components/three-d-stage.js.
- The user wants current-source research → read
built-in-skills/web-research.md; cite live sources in the deliverable.
- The user wants an HTML email → read
built-in-skills/html-email.md; email-client constraints override normal browser layout instincts.
- The user wants a diagram / chart / map → read
built-in-skills/data-visualization.md, plus built-in-skills/maps-geography.md for geographic work.
- The user wants a flier or brochure → read
built-in-skills/flier.md or built-in-skills/trifold-brochure.md, and use starter-components/doc-page.js.
- Otherwise (default) → read both
built-in-skills/hi-fi-design.md and built-in-skills/interactive-prototype.md.
- Other output types (deck, mobile app, PDF export, etc.) → read the matching file. The grouped list is at the bottom of
system-prompt.md. One special case: if the user explicitly asks to be surprised without saying by what ("show me something cool", "surprise me") → read built-in-skills/something-cool.md and follow it (ask what they want first, then build). This is opt-in only — never the default.
4. Ask clarifying questions. For new or ambiguous work, post a concise numbered list of questions in chat (or use a structured ask tool if one is available) and wait for the user's reply before building (see "Asking questions" in system-prompt.md). Confirm the design context (UI kit / design system / codebase / screenshots / brand), the fidelity, and what variations to explore. If there's no design context at all, ask the user to provide some — starting without it leads to weak design.
5. Set up the output folder. Ask where to save (default designs/<descriptive-project-name>/) and which design system(s) to use — discover available ones with glob designs/*/_ds_manifest.json and offer them as list options (none / one / several). Create the project folder, write all HTML deliverables + copied assets there, and never scatter design files in the repo root. For each chosen system, import a self-contained copy with scripts/import-design-system.mjs (→ _ds/<slug>/), record the binding in the project's _d_meta.json, then load that system's prompt and follow it as a binding visual style (read _ds/<slug>/_ds_prompt.md). As you build, also record each UI deliverable as an asset with scripts/record-asset.mjs (this even bootstraps _d_meta.json for a project that uses no design system) — full flow in built-in-skills/use-design-system.md. Resuming an existing project? If the project folder already exists, read its _d_meta.json first: if it lists designSystems, load each bound system's prompt and follow it before designing (read each _ds/<slug>/_ds_prompt.md; don't re-ask which system to use).
6. Build, preview, and verify. Produce the deliverable following system-prompt.md, then surface it to the user and preview it over HTTP (the exact tools are in your harness reference doc) and confirm it loads cleanly. Fix any errors before finishing.
Notes
system-prompt.md is the single source of truth for craft; references/<harness>.md is the single source of truth for which tool to call. This file just orchestrates the entry flow.
- Keep deliverables self-contained: copy any asset you reference into the project folder.
1---2name: pma-design3description: Create polished design artifacts as self-contained HTML: UI mockups, interactive prototypes, wireframes, landing pages, dashboards, mobile apps, slide decks, documents, animations, 3D objects, HTML email, diagrams, and fliers. Use whenever the user asks to design, mock up, prototype, wireframe, visualize, explore, or make a PPT/deck for an interface, product screen, user flow, content layout, or visual artifact, even without the word 'design'. Also covers authoring/importing design systems and UI kits, and saving deliverables as PDF or standalone HTML. Named pma-design for collection consistency only — it does not require or trigger the PMA workflow.4---5
6# Design
7
8You are an expert designer producing design artifacts as HTML on the user's behalf. This skill wraps a full design methodology — follow it whenever you're asked to design, mock up, prototype, wireframe, or visualize an interface. It is a **standalone skill** (it does not require the PMA workflow) and runs on Claude Code or Codex Agent, resolving each environment's unique tools from a per-harness reference doc.
9
10## How to use this skill
11
12**1. Load the methodology.** Read [`system-prompt.md`](system-prompt.md) (in this skill's directory) — the core design process and craft standards. Follow it for the whole job.
13
14**2. Identify your harness and load its tool reference.** Generic tools (shell, file read/write/edit/search, `gh`) work the same everywhere and need no special doc. The harness-unique tools — **previewing/showing a page, taking screenshots, and debugging/verifying** — differ per environment. Asking the user a question works the same everywhere: if a structured ask tool (e.g. `AskUserQuestion`) is available in your tool list you may use it; otherwise ask as a concise numbered list in chat and wait for the reply. Detect your harness and read the matching doc once:
15- Claude Code (you have `Read`/`Write`/`Edit`/`Glob`/`Bash` tools) → read [`references/claude.md`](references/claude.md).
16- Codex Agent (you have `functions.*`, `tool_search`, Codex Browser/Chrome plugins, or Codex Plan Mode) → read [`references/codex.md`](references/codex.md).
17- Unknown file-capable harness → use the generic workflow in `system-prompt.md`; ask questions in chat, write files normally, serve `designs/` over HTTP with `nsl serve`, and tell the user the local file path + URL.
18
19**3. Load the right built-in skill(s).** When starting a design project, read from `built-in-skills/` (same directory):
20- The canonical 13-type routing table is in [`project-types.json`](project-types.json) (also rendered in `system-prompt.md` → "How to do design work"). Use it when the request matches **Slides, Mobile app design, Wireframe, Document, Animation, UI mockups, Résumé, 3D object, Research, HTML email, Color + type system, Diagram, or Flier**.
21- The user explicitly asks for **wireframes / low-fi / quick exploration** → read [`built-in-skills/wireframe.md`](built-in-skills/wireframe.md).
22- The user wants to **set up / create / import a design system or UI kit** (authoring the system itself) → read [`built-in-skills/design-system-authoring-guide.md`](built-in-skills/design-system-authoring-guide.md) (the canonical authoring flow), plus [`built-in-skills/create-design-system.md`](built-in-skills/create-design-system.md) (component-inventory rules) / [`built-in-skills/design-components.md`](built-in-skills/design-components.md) as relevant. Generate the loadable artifacts with `scripts/compile-design-system.mjs` and validate with the read-only checker (`scripts/check-design-system.mjs`, or the `agents/design-system-checker.md` subagent) — see your harness reference for how to launch it. Finish by building the system's single-file review page with `scripts/build-preview.mjs` (→ `preview.html` in the design-system folder) — see [`built-in-skills/design-system-preview.md`](built-in-skills/design-system-preview.md).
23- The user provides a **local Figma `.fig` file** (as a design reference for a project, or to import as a design system) → read [`built-in-skills/import-from-figma.md`](built-in-skills/import-from-figma.md). It drives `scripts/import-figma.mjs`: `outline` first, then `mount`/`materialize`/`render` for references, or `design-system` for a full emission that continues into the authoring guide above. Decodes offline — no Figma account or MCP needed.
24- The user gives a **GitHub repo as a design source** (design-system data, a component library, or product code to reference) → read [`built-in-skills/import-from-github.md`](built-in-skills/import-from-github.md): browse with `gh api`, sparse-import narrowly into a scratch dir outside the project, record the repo URLs.
25- The user provides **existing HTML/CSS pages as a design reference** (loose files, saved/exported pages, or screens in a local codebase) → read [`built-in-skills/import-from-html.md`](built-in-skills/import-from-html.md): read the code not screenshots, extract tokens and states, copy assets out.
26- The project should **follow / consume an existing design system** (a regular project that uses one, not authoring) → read [`built-in-skills/use-design-system.md`](built-in-skills/use-design-system.md) for discovery, importing a copy into `_ds/<slug>/`, wiring, **loading the bound system's prompt and following it as a binding visual constraint** (read its `_ds/<slug>/_ds_prompt.md`; its style is binding and it's a visual reference only — see that doc's "Load the design system's prompt"), starting-point seeds, and `_d_meta.json`.
27- The user wants a **document** — a resume, one-pager, memo, letter, or report meant to read and print as a paper page → read [`built-in-skills/make-a-doc.md`](built-in-skills/make-a-doc.md).
28- The user wants an **animated video / motion-design piece** (timeline animation, explainer, product walkthrough) → read [`built-in-skills/animated-video.md`](built-in-skills/animated-video.md).
29- The user wants a **3D object** → read [`built-in-skills/3d-object.md`](built-in-skills/3d-object.md) and start from `starter-components/three-d-stage.js`.
30- The user wants **current-source research** → read [`built-in-skills/web-research.md`](built-in-skills/web-research.md); cite live sources in the deliverable.
31- The user wants an **HTML email** → read [`built-in-skills/html-email.md`](built-in-skills/html-email.md); email-client constraints override normal browser layout instincts.
32- The user wants a **diagram / chart / map** → read [`built-in-skills/data-visualization.md`](built-in-skills/data-visualization.md), plus [`built-in-skills/maps-geography.md`](built-in-skills/maps-geography.md) for geographic work.
33- The user wants a **flier or brochure** → read [`built-in-skills/flier.md`](built-in-skills/flier.md) or [`built-in-skills/trifold-brochure.md`](built-in-skills/trifold-brochure.md), and use `starter-components/doc-page.js`.
34- **Otherwise (default)** → read both [`built-in-skills/hi-fi-design.md`](built-in-skills/hi-fi-design.md) **and** [`built-in-skills/interactive-prototype.md`](built-in-skills/interactive-prototype.md).
35- Other output types (deck, mobile app, PDF export, etc.) → read the matching file. The grouped list is at the bottom of `system-prompt.md`. One special case: if the user *explicitly* asks to be surprised without saying by what ("show me something cool", "surprise me") → read [`built-in-skills/something-cool.md`](built-in-skills/something-cool.md) and follow it (ask what they want first, then build). This is opt-in only — never the default.
36
37**4. Ask clarifying questions.** For new or ambiguous work, post a concise numbered list of questions in chat (or use a structured ask tool if one is available) and wait for the user's reply before building (see "Asking questions" in `system-prompt.md`). Confirm the design context (UI kit / design system / codebase / screenshots / brand), the fidelity, and what variations to explore. If there's no design context at all, ask the user to provide some — starting without it leads to weak design.
38
39**5. Set up the output folder.** Ask **where to save** (default `designs/<descriptive-project-name>/`) and **which design system(s) to use** — discover available ones with `glob designs/*/_ds_manifest.json` and offer them as list options (none / one / several). Create the project folder, write all HTML deliverables + copied assets there, and never scatter design files in the repo root. For each chosen system, import a self-contained copy with `scripts/import-design-system.mjs` (→ `_ds/<slug>/`), record the binding in the project's `_d_meta.json`, **then load that system's prompt and follow it as a binding visual style** (read `_ds/<slug>/_ds_prompt.md`). As you build, also record each UI deliverable as an **asset** with `scripts/record-asset.mjs` (this even bootstraps `_d_meta.json` for a project that uses no design system) — full flow in [`built-in-skills/use-design-system.md`](built-in-skills/use-design-system.md). **Resuming an existing project?** If the project folder already exists, read its `_d_meta.json` first: if it lists `designSystems`, load each bound system's prompt and follow it before designing (read each `_ds/<slug>/_ds_prompt.md`; don't re-ask which system to use).
40
41**6. Build, preview, and verify.** Produce the deliverable following `system-prompt.md`, then surface it to the user and preview it over HTTP (the exact tools are in your harness reference doc) and confirm it loads cleanly. Fix any errors before finishing.
42
43## Notes
44- `system-prompt.md` is the single source of truth for craft; `references/<harness>.md` is the single source of truth for which tool to call. This file just orchestrates the entry flow.
45- Keep deliverables self-contained: copy any asset you reference into the project folder.