Practice skill: build an interactive prototype for Spec approval. Use in an aidd repository when a user-facing Spec needs a clickable flow, not just a wireframe.
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 Prototyping?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/thaithienvanid-prototyping)
---
name: prototyping
description: "Practice skill: build an interactive prototype for Spec approval. Use in an aidd repository when a user-facing Spec needs a clickable flow, not just a wireframe."
metadata:
checked: "2026-10-22"
---
# Prototyping
**Use it when** a Spec names a user-facing surface and Spec approval depends on how it *behaves*, not only its layout. It owns the screenshot matrix.
**Do not use when** the change is copy, one static screen, or a restyle with no new interaction.
## Standards
<!-- aidd:gen practice:prototyping -->
| Standard | Edition |
| --- | --- |
| Prototype fidelity matched to the decision: interactive where the behavior is in question, a wireframe where only the layout is | — |
| Plan before code, reviewed against the defaults | — |
| WCAG 2.2 AA, for the prototype itself | 2.2 |
| Design tokens (W3C Design Tokens format) and a design system over one-off styles (emerging) | 2025.10 |
| DESIGN.md format (Google Labs): YAML token front matter, then prose (emerging) | alpha |
| Nielsen's ten usability heuristics | 1994, revised 2020 |
| A state a reviewer cannot reach is one the developer invents: every state from fixtures, a `data-testid` on each control | — |
| A prototype consumes the real tokens, components, and copy, and runs from a clean checkout with one command and no backend | — |
Each standard's checked date and source are in the aidd-team roles reference (`references/roles.md` in `aidd-team:aidd-team`), section `aidd-team:prototyping`.
<!-- aidd:end -->
## Specify
### Size it, then pick a direction
Size the work to the request: one screen or flow is one prototype file, maybe the whole job. Build the states the Acceptance names, plus the error state. Offer directions only when the approach is open or the person asks. When only taste is open, run a quick pick first ([references/design-review.md](references/design-review.md)).
1. Plan before code: two or three directions differing in approach, not color, each with a layout concept, type, and 4–6 named colors on `DESIGN.md` roles. Then an anti-default review ([references/design-review.md](references/design-review.md)).
2. Sketch each direction's key screen in an exploration (`aidd explore`). A person, never an agent, picks one for the Spec's `## Design`. Only then build at full fidelity.
### Build
- One file per flow, `specs/<ID>/design/prototype.html` (`aidd new design-spec --prototype`). Update the product prototype, `docs/design/app/`, in the same change; never start one unasked. `aidd prototype [file]` opens either in the viewer (`#<screen>/<state>?theme=dark&frame=ios`; frame is a table id, not a size).
- Name each reusable part `data-component`, with `data-variant`, and each screen and label, by `aidd-team:naming`; the developer builds each.
- Match the showcase (`aidd prototype --example`); never start from it.
- The prototype uses the one design system, `DESIGN.md` and `design/tokens.json`, and never copies it. A missing token or component is a separate change. Components first: the system's, else the `web-front-end:component-library` choice ([references/design-system-contract.md](references/design-system-contract.md)).
- Use the design tools the project enabled, else the prototype tool (`aidd prototype --help`, or `tools/prototype/README.md`). The HTML prototype and design spec stay the source of truth: a tool's export, for example a Claude Design handoff bundle or a Figma link, is only an input, rewritten into the format.
- Every state is reachable from fixtures, in real copy at real lengths, never lorem ipsum. Never invent a metric, quote, logo, or customer count; mark a slot. Wire keyboard, reduced motion, and both themes. Add no backend, secret, network, or build step.
- A redesign first lists, in the design spec, the parts it must keep: every link, form field, handler, test id, heading, and route. The verifier turns the list into a frozen test. A part dropped on purpose is a line in the Spec.
### Rounds
- A round is a pass people or agents review: `specs/<ID>/design/rounds/<N>/`, a screenshot per screen, state, frame, and theme. Comments: `rounds/<N>/comments.json`, or a direction's `comments-<direction>.json`. Answer each in `rounds/<N+1>/changes.json`; `aidd explore` shows the rest. A rough direction: two frames, one theme, token contrast. The picked one: the fidelity pass, sized to the change as [references/design-review.md](references/design-review.md) says (`aidd prototype --shots`), before a round and done. Commit only the last round's screenshots.
- **Agent rounds** run before Spec approval only. Start one `product-designer` critic (`aidd-team:prototyping`); axe, not a subagent, checks accessibility. It gets the files, never your reasons, and writes nothing. Merge its items into the round's one file, never over it, with `by: agent:<harness>/<model>`. Decline a person's comment only after asking. Stop for a person after the third agent round, at no comment, at the timebox, or at a comment on scope, Acceptance, the copy's claims, or reviewers' disagreement.
## Review
- After Implement, compare the built UI with the prototype state by state, by keyboard, screen reader, and at 320 CSS px, as pass/fail with proof and no numeric score ([references/design-review.md](references/design-review.md)).
- A layout holds on every platform the product ships to: check it with a wider font, at the smallest and largest widths, and at a non-integer zoom or pixel ratio. A visual test waits for the settled state and says what it waits for, never a fixed sleep ([references/prototype-screenshots.md](references/prototype-screenshots.md#hold-on-every-platform)).
## Test commands
| Command | Proves | How |
| --- | --- | --- |
| Prototype lint | no raw color, hotlink, placeholder, or emoji icon; every control named and reachable | `aidd prototype --check`, [references/design-review.md](references/design-review.md#the-prototype-lint) |
| Token drift test | the CSS and `DESIGN.md`'s tokens match `design/tokens.json` | `node design/build.mjs --check` (Style Dictionary once it reads DTCG) |
| DESIGN.md lint | no broken reference; each component pair 4.5:1 in both themes | `npx @google/design.md@0.4.0 lint DESIGN.md`, failing on `broken-ref` or `contrast-ratio` |
| Screenshot matrix | no unreviewed change per screen, state, frame, and theme | web: Playwright `toHaveScreenshot()` after `page.emulateMedia({colorScheme})`, one pinned OS image, `*-snapshots/` in `tests.files` (Spec approval freezes the baseline), `<screen>-<state>-<frame>-<theme>.png` (`<screen>-<state>-<frame>.png` with `dark_mode` off); iOS: swift-snapshot-testing, `performAccessibilityAudit`; Android: Paparazzi or Roborazzi, Espresso accessibility checks |
| Platform and settle checks | the layout holds with a wider font, at the smallest and largest widths, and at a non-integer ratio, and no test waits a fixed time | the checks and the `settled` wait of [references/prototype-screenshots.md](references/prototype-screenshots.md) |
## Stop if
- Directions are open, none is picked, and full fidelity is next.
- The prototype needs a color, font, or component the design system lacks.
- You are about to change design files Spec approval froze.
- A redesign drops a part it listed to keep, and the Spec doesn't say so.
## Hand off
- Done: the direction recorded, if any, the prototype in a `design-files` doc, and its tests for the verifier to freeze. Next role: the verifier, then Spec approval. Needs: a person to pick a direction, a state with no right answer, or a missing token. Stopped at: none, or the stop rule's code.