Token pipeline (Style Dictionary v4, DTCG format): - Primitive tokens: colour palettes (brand, sage, neutral, feedback), typography (3 font families, 21-variant type scale), spacing (4px grid), border radius, shadows, opacity - Semantic tokens: text, surface, border, interactive, feedback colours; typography roles; layout spacing - Component tokens: Button (4 sizes), Input (2 sizes) - Generated outputs: CSS custom properties, JS ES6 module, flat JSON Atoms (3 components): - Button: contained/soft/outlined/text × primary/secondary, 4 sizes, loading state, underline for text variant - Typography: 21 variants across display/heading/body/label/caption/overline, maxLines truncation - Input: external label, helper text, error/success validation, start/end icons, required indicator, 2 sizes, multiline support Infrastructure: - MUI v5 theme with full token mapping - Storybook 8 with autodocs - Claude Code agents and skills for token/component workflows - Design system documentation and cross-session memory Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.1 KiB
1.1 KiB
name, description, argument-hint
| name | description | argument-hint |
|---|---|---|
| write-stories | Write or update Storybook stories for a component | [ComponentName] |
Write or update Storybook stories for an existing component.
Use the story-writer agent to handle this task. The component to document:
Component: $ARGUMENTS
Instructions for the agent:
- Read
docs/conventions/component-conventions.mdfor story standards - Read the component source file at
src/components/(check atoms/, molecules/, organisms/) - Create or update
{ComponentName}.stories.tsxin the component's folder - Cover ALL items in the story coverage checklist:
- Default state with typical content
- All visual variants side by side
- All sizes side by side (if applicable)
- Disabled state
- Loading state (if applicable)
- Error state (if applicable)
- Long content / content overflow
- Empty/minimal content
- With and without optional elements (icons, badges, etc.)
- Every story meta MUST include
tags: ['autodocs'] - Verify the component renders correctly in Storybook at http://localhost:6006
- Update
docs/memory/session-log.mdwhen done