Contributing
How designers and engineers propose, document and review changes, with coding agents doing the typing.
Run the site
From the repository root:
pnpm install
pnpm design-system # showcase → http://localhost:4321
pnpm storybook # workshop → http://localhost:6006
Work with an agent
Open the repository in Claude Code, Cursor or Codex and describe the change, for example:
- “Document the Badge component in the design system.”
- “Add a loading example to the Button page.”
- “The secondary button looks wrong in Darker. Show me why.”
The agent follows apps/design-system/AGENTS.md and the
document-component skill: it writes the stories next to the component, the
page in apps/design-system/src/content/docs/components/, and runs the checks.
Ask it to start the site and send you the page link.
Where things live
| What | Where |
|---|---|
| Component code | packages/ui/src/components/ui/<name>.tsx |
| Stories: variants, sizes, states | packages/ui/src/components/ui/<name>.stories.tsx |
| Component pages | apps/design-system/src/content/docs/components/<name>.mdx |
| Page template | apps/design-system/templates/component.mdx |
| Tokens | packages/ui/src/globals.css and packages/ui/tailwind.config.ts |
Review
- Design reviews visuals, states and content guidance.
- Engineering reviews component code and API changes in
packages/ui.
Documenting a problem never needs sign-off. Fixing a component changes the product, so it needs both.
For coding agents
/llms.txtlists every page with its description;/llms-full.txthas the full text.- While Storybook runs,
http://localhost:6006/mcpserves component docs, props and story previews. - Component JSDoc carries an
@importtag with the exact import line.