prototypes
Installation
SKILL.md
Prototypes
prototypes/README.md is the index: one folder per template, each prototype's artifact link, the kit, and the build. Read it first. Each prototype is one source.html that node prototypes/kit/build.ts <name> turns into a single page, published as a Claude artifact. Designers and PMs ask the agent to open a prototype; there is no gallery page.
What a prototype shows
- Shipped-app prototypes (Chat, Slides, Clips web and desktop, Analytics) match the code exactly: the menus' icons, state colors (red where the code uses destructive), copy verbatim (em dashes and emoji included), and the app's custom SVG icons. Check the component before claiming what ships.
- The Design prototype is a redesign. Redesign rules apply there: text-only menus, amber warnings with red only for destructive actions, 24px controls, everything on the 8pt grid. Mark controls the code doesn't have as new.
- Tokens come from the code at build time. Use the code's names (
--color-border,--design-editor-accent-color) and never copy values in.
Edit and republish
- Change
<name>/source.html. Shared needs go inprototypes/kit/(menus, Settings, icons viakit/add-icons.ts), not copied between prototypes. - Add a dated, past-tense entry at the top of
<name>/changes.json. The prototype's Changes drawer shows it. - Build, then load
dist/index.htmlheadlessly (Playwright, via the main checkout'snode_modules/.pnpm/playwright@*) in light and dark. Zero page and console errors, and look at a screenshot of what changed. - Republish to the link in the README (the Artifact tool's
url), so the link stays. Publishing only stamps a new version. - Commit and push on the current branch.
Building the experience in the app (design to code) is a separate handoff: work in templates/<app> from the prototype, its Changes log, and the Figma frames, then follow adding-a-feature and ship.