design-system-alignment
Skill249 starsChanged 6 months agoMITView on GitHub
Use when working with or building design systems — tokens, components, naming conventions, theming, or pattern libraries — ensures consistency, accessibility compliance, and systematic thinking
In this repository36 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessible-contentSkill
- adaptive-interfacesSkill
- cognitive-accessibilitySkill
- design-debateSkill
- design-debt-trackerSkill
- design-discoverySkill
- design-expressSkill
- design-handoffSkill
- design-librarySkill
- design-mdSkill
- design-memorySkill
- designpowers-critiqueSkill
- design-retrospectiveSkill
- design-reviewSkill
- design-stateSkill
- design-strategySkill
- design-tasteSkill
- figma-bridgeSkill
- heuristic-evaluationSkill
- inclusive-personasSkill
- inspiration-scoutingSkill
- interaction-designSkill
- motion-choreographySkill
- research-planningSkill
- responsive-patternsSkill
- synthetic-user-testingSkill
- taste-feedbackSkill
- taste-reportSkill
- token-architectureSkill
- ui-compositionSkill
- usability-testingSkill
- using-designpowersSkill
- verification-before-shippingSkill
- voice-and-toneSkill
- writing-design-plansSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
If a design system exists, catalogue:
- Distinctive: line 29
If no system exists, document what patterns are already in use (even informally).
- Very specific: line 57
Every token must meet accessibility requirements at the semantic level — if color-primary is used for text, it must have sufficient …
- Distinctive: line 92
Size modifiers: use a scale (sm, md, lg) or semantic names (compact, comfortable, spacious)
- Distinctive: line 111
Every component has usage documentation with examples
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design System Alignment
A design system is a shared language. When components are consistent, accessible, and well-documented, every new screen starts from a strong foundation. This skill ensures design work aligns with existing systems or builds new ones with the right properties.
When to Use
- A design system already exists and new work must align with it
- Building new components for an existing system
- Creating a new design system from scratch
- Auditing an existing system for consistency or accessibility
- Defining or modifying design tokens
Process
Step 1: Inventory the Existing System
If a design system exists, catalogue:
- Tokens: colours, spacing, typography, shadows, borders, motion
- Components: what exists, what states are covered, accessibility status
- Patterns: common layouts, form patterns, navigation patterns
- Documentation: what is documented, what is tribal knowledge
- Gaps: what is missing, inconsistent, or broken
If no system exists, document what patterns are already in use (even informally).
Step 2: Token Architecture
Design tokens are the atoms of the system. Structure them in layers:
Global tokens — raw values
color-blue-500: #3B82F6
spacing-4: 16px
font-size-base: 1remSemantic tokens — purpose-driven aliases
color-primary: {color-blue-500}
color-error: {color-red-600}
spacing-element: {spacing-4}
font-size-body: {font-size-base}Component tokens — component-specific overrides
button-background: {color-primary}
button-padding: {spacing-3} {spacing-4}
input-border-color: {color-neutral-300}Every token must meet accessibility requirements at the semantic level — if color-primary is used for text, it must have sufficient contrast against its background token.
Step 3: Component Specification
For each component, document:
## [Component Name]
**Purpose:** [What this component is for]
**Variants:** [e.g., primary, secondary, ghost, destructive]
**States:** [default, hover, focus, active, disabled, error, loading]
**Accessibility:**
- Role: [ARIA role if not implicit]
- Label: [How it is labelled — visible text, aria-label, aria-labelledby]
- Keyboard: [How to interact via keyboard]
- Screen reader: [What is announced in each state]
- Focus: [Focus indicator style, focus order]
**Tokens used:** [Which design tokens this component references]
**Do:** [Correct usage examples]
**Do not:** [Incorrect usage examples]Step 4: Naming Conventions
Consistent naming makes a system learnable:
- Components: PascalCase for components, kebab-case for tokens
- Descriptive names:
AlertDialognotModal2orPopupThing - State modifiers: consistent pattern (e.g.,
--disabled,--error,--active) - Size modifiers: use a scale (sm, md, lg) or semantic names (compact, comfortable, spacious)
Step 5: Accessibility Audit
For every component in the system, verify:
| Check | Requirement |
| Colour contrast | All text/background pairings meet WCAG AA minimum |
| Keyboard access | Every interactive component is reachable and operable via keyboard |
| Screen reader | Every component announces its role, name, state, and value correctly |
| Focus indicator | Every focusable element has a visible focus ring |
| Touch targets | All interactive elements meet 44x44px minimum |
| Motion | All animations respect prefers-reduced-motion |
| Resize | Components function at 200% zoom |
Step 6: Document and Communicate
A design system only works if people use it. Ensure:
- Every component has usage documentation with examples
- Accessibility requirements are documented per component, not in a separate "accessibility section"
- Migration guides exist for any changes to existing components
- The system is versioned so consumers know when changes occur
Integration
- Called by:
ui-composition(when components need to align with a system) - Pairs with:
ui-composition(visual decisions),accessible-content(content patterns within components) - Reviewed by:
designpowers-critique
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

