← back to the book

The Kit — prompts, specs, chains

Everything you need to run the design system generation workflow without copy-pasting between book chapters and your AI tool. Two modes: guided sequential (Chain Mode) or one-at-a-time (Ad-hoc Mode).

Download the full kit All prompts, specs, chains, and the chain runner in one archive
Download kit.zip

Two ways to use the kit

Mode A
Chain Mode (recommended)

Paste chain.md into Claude Code once. The orchestrator collects all decisions upfront (archetype, BYOC, fonts, scope), runs prompts sequentially, saves every output automatically, and pauses for your review at each checkpoint.

Mode B
Ad-hoc Mode

Paste one prompt at a time from prompts/ into any Claude session. Each prompt is self-contained — meta-header checks prerequisites, asks branching questions (BYOC, fonts), generates output, and announces what to run next.

Chain Mode setup

1
Copy the kit into your project root

Extract kit.zip into the root of the project you're building a design system for. Or clone the kit folder directly.

2
Open in Claude Code

Open the project in Claude Code (recommended — enables auto-save of generated files). Claude.ai also works; each save point will give you copy-paste instructions instead.

3
Paste chain.md

Open kit/chain.md and paste its contents into your Claude session. The orchestrator scans your output/ folder (creates it if needed), detects where you are in the chain, and asks the six upfront questions before running anything.

4
Answer the Q&A

Archetype · BYOC brand colors · brand fonts · framework · component scope · domain components. Answer once — answers carry forward through every prompt automatically.

5
Review at each checkpoint

Each step produces a checkpoint: "Saved output/tokens.css. Continue?" You can review, preview, skip, or stop. Progress is saved in output/chain-state.md — resume any time.

Path entry points

Path When to use Start with Chain
A · Quick Greenfield — no Figma file, starting from adjectives chain.md → choose scope A–D Chain 9 — Greenfield end-to-end
B · Standard Existing Figma file — extract tokens via Dev Mode MCP 01-tokens-from-spec.md (MCP mode) Chain 2 — Figma MCP extract
C · Deep Audit existing work against the archetype spec 11-drift-audit.md + 12-a11y-audit.md Chains 4 + 5

The two-paste workflow

Universal rule

Every prompt that generates tokens or components requires two pastes before running: 1. Paste governance.spec.md (HTML preview) first — universal gates, non-negotiable. 2. Paste your chosen archetype spec second — HTML preview and .md download on each card in the Archetype specs section below. Two pastes, every prompt.

Prompt sequence (Path A)

# Prompt What it produces Output file
00Archetype from adjectivesArchetype recommendation + per-dimension reasoning(decision only)
01Token generationColor, spacing, radii, motion tokens. BYOC built in.output/tokens.css
02Typography scaleFont families + full type scale. Brand fonts applied here.output/tokens.css (updated)
03Foundation componentsButton, Input, Badge, Card, Alert, Dialog, Table, Form, Empty stateoutput/foundation.css
04Composite componentsModal, Drawer, Tabs, Combobox, Accordion, Popoveroutput/composite.css
05Pattern componentsArchetype-aware page patternsoutput/patterns.css
06ChromeNav, Header, Footer, Sidebar, Modal Sheet, Draweroutput/chrome.css
07Domain componentsProduct-specific components from 2-sentence descriptionsoutput/domain.css
08Spec pageSelf-contained design-system-spec.html (live rendered)output/design-system-spec.html
09Section templatesArchetype section template libraryoutput/section-templates.css
10Layer 3 extractionComponent-level tokens discovered from repeated valuesoutput/tokens-layer-3.css
11Drift auditSeverity-ranked drift report(report)
12A11y auditWCAG 2.1 AA findings(report)
13Framework wrappersCSS → React / Vue / Svelte component filesoutput/*.tsx / *.vue / *.svelte

BYOC — Bring Your Own Colors

BYOC is built into Prompt 01. When Prompt 01's meta-header asks "Do you have brand colors to honour?" — answer yes and supply your primary hex (and optionally accent). The prompt activates ramp derivation and WCAG validation inline. No separate prompt needed.

Archetype specs

Paste the governance spec FIRST, then your chosen archetype spec. Both live in specs/. Each card opens the rendered HTML preview in a new tab; the download button retrieves the raw .md for pasting into Claude.

HarborEditorial / marketing
SentinelEnterprise / product
CurrentMobile-first consumer
LatticeData-dense terminal