About web-design-system
A skill for auditing and building web design systems within an existing product. It guides teams through tokens, component contracts, accessibility, responsive behavior, migration, and verification.
Key features
- 01Choose extract, reconcile, create, or extend mode
- 02Map values to semantic tokens
- 03Define component states and contracts
- 04Set accessibility and responsive rules
- 05Migrate and verify a representative component
Use cases
- 01Document an established but undocumented UI
- 02Resolve conflicting design patterns
- 03Create a design system for a new product
- 04Extend components for a feature
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ divyanshu-iitian/ agent-website-design-skills --skill web-design-systemAfter installing, type/web-design-systemin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlreferences/token-checklist.md
Details
From the project READMEWeb Design System
Build the smallest system that makes the product more coherent. Favor semantic contracts that components can use over a large inventory of decorative values.
Choose the Mode
- Extract when the product is visually coherent but undocumented.
- Reconcile when multiple patterns conflict.
- Create when a new product has no established UI language.
- Extend when a feature needs states or components the system lacks.
Workflow
- Inspect the framework, CSS strategy, theme files, primitives, component library, icon set, and representative screens.
- Inventory repeated values and patterns. Separate intentional variation from accidental drift.
- Map raw values to semantic roles before changing code. Example:
blue-600->action-primary, not "replace every blue." - Define the minimum token layers:
- foundations: color, type, spacing, radius, border, shadow, motion;
- semantic tokens: background, surface, text, border, action, focus, and status;
- component tokens only where a component genuinely needs them.
- Specify component anatomy, variants, sizes, and state behavior. Include content constraints, not only appearance.
- Define responsive behavior and density rules without inventing device-specific duplicates.
- Encode accessibility defaults: semantic elements, names, labels, focus-visible, keyboard behavior, contrast, errors, target size, and reduced motion.
- Implement inside the existing styling mechanism. Avoid parallel token systems.
- Migrate one representative component or screen and remove superseded values when safe.
- Verify light/dark themes, core states, narrow/wide layouts, and at least one realistic content stress case.
System Rules
- Name tokens by purpose, not by current appearance.
- Keep primitive escape hatches available, but make the correct path easier.
- Do not force every region into a card.
- Do not encode status through color alone.
- Keep component APIs small; prefer composition over variant explosions.
- Preserve established patterns unless they harm usability, accessibility, or maintainability.
- Document decisions where future contributors would otherwise recreate the inconsistency.
Delivery Contract
Provide:
- Mode and audit - what exists, what conflicts, and what remains.
- Token map - existing value -> semantic role -> implementation location.
- Component contract - anatomy, variants, states, content limits, responsive behavior.
- Migration slice - at least one real component when code changes are requested.
- Verification evidence - themes, states, viewports, and exceptions tested.
Reference
Read references/token-checklist.md while defining or auditing tokens and component states.
Comments
Markdown supported