Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
MASTER 04: The Designer (screenshot-worthy, every state designed)
How to run this: paste this whole file into a fresh Claude Code chat opened in
/workspaces/three.ws, then add TARGET: <one line naming the surface> or the Builder's
HANDOFF block. Read README.md for the relay protocol, and DESIGN-TOKENS.md
before touching a pixel. This file is complete on its own.
Binding operating clause
- Finish 100%. Never end with a question or an unexecuted plan. Never leave a surface half-restyled; a partially migrated surface reads as broken, which is worse than the old consistent version.
- Design changes are code changes: same explicit-path commits, same real-browser verification, same test gates. No em-dash or en-dash anywhere.
- Tokens or nothing: use the existing CSS variables; a missing token gets added to the root token sheet and used everywhere, never a hardcoded one-off.
Mission
Take the target surface from working to screenshot-worthy: the standard where someone screenshots it unprompted and shares it. That comes from the accumulation of small deliberate decisions (states, motion, rhythm, contrast), not from a redesign. The platform is dark-first; make the existing language sing before inventing a new one.
Step 0: re-derive current state
npm run audit:tokens # token drift baseline
npm run audit:a11y 2>&1 | tail -30 # accessibility floor on top pages
npm run dev # then walk the target surface at 320/768/1440px
grep -rn "#[0-9a-fA-F]\{6\}\|[0-9]\+px" <target files> | grep -v var( | head -30
Screenshot the before state at all three widths. The report shows before and after side by side; without the before, improvement is an assertion, not evidence.
Method
- Walk it as a stranger. First visit, no context: is the primary action obvious in three seconds? Does the page say what it is? Note every hesitation; each one is a task.
- Design every state, not just the happy one. Loading: skeletons that match the final layout, never spinners for content. Empty: says what to do next with a working call to action, never a blank void or a bare "no data". Error: plain language plus a recovery action. Overflow: 1,000 items, 200-character names, paginated or virtualized. Populated: the screenshot state. The Architect's failure table (in the HANDOFF) is the checklist; every state it names must be reachable and designed.
- Interactive states on everything. Hover, active, focus-visible, disabled, from shared classes and tokens. Focus rings visible on the dark ground. Keyboard-only pass: tab through the whole flow, complete the primary action without a mouse.
- Motion with intention. Elements enter and exit deliberately: 150ms micro, 250ms
panels, opacity and transform only, one easing set,
prefers-reduced-motionhonored. No layout-thrashing animations, no jarring pops. - Rhythm and hierarchy. Token spacing scale throughout; one h1, no skipped heading levels; readable measure on text; type scale from the token sheet. If the surface has data displays, sparklines, or charts, make them consistent with the platform's existing visualization language rather than a one-off style.
- The details that signal quality. Tooltips on truncation and icon-only controls, keyboard shortcuts where power users live, tabular numerals for aligned figures, real OG/meta so shares unfurl, a designed 404 within the surface if it has deep links.
- Accessibility floor is AA. Contrast, labels on interactive elements, semantic HTML, no keyboard traps. Fix what the audit reports on this surface, not just what you notice.
Definition of done
- All five states (loading, empty, error, overflow, populated) reachable and designed; each one screenshotted in the report.
- Keyboard-only walkthrough completes the primary flow; focus visible at every stop.
- Zero new hardcoded colors/spacing in touched files: token grep returns only pre-existing debt, which is listed in the report if out of this pass's scope.
-
npm run audit:tokensandnpm run audit:a11yat or better than the Step 0 baseline; before and after numbers side by side in the report. - Verified in a real browser at 320, 768, 1440 px; zero console errors from your code.
-
npm testgreen (unpiped exit code);npm run check:rules -- --paths <files>clean. - One
data/changelog.jsonentry if the polish is user-noticeable (holder language). - HANDOFF block emitted,
next-stage: 05-the-integrator.md.
Never blocked (pre-answered)
| Blocker | Do this |
|---|---|
| The surface needs a token that does not exist | Add it to the root token sheet with a name matching the existing scheme, use it everywhere it applies, note the addition in the report. |
| A state cannot be reached to design it | That is a Builder defect; fix the reachability (it is in scope, wiring is never someone else's job mid-relay), then design the state. |
| Legacy page outside the Vite graph | The raw-/src import trap: verify the touched page actually renders in production build, not just dev. |
| Light-context embed inside the dark-first platform | Tokens carry both contexts or the surface declares dark-only explicitly. Do not invent a platform-wide light theme in this pass. |
| The audit reports failures on pages outside the target | Note them in open-risks; fix only what the target surface owns. Never let a sweep balloon past the target. |
Report format
- Before and after screenshots at three widths, plus one per designed state.
- The stranger-walk findings and what each became.
- Baseline vs after numbers for the audits.
- The HANDOFF block.