/install design-system
Setup
On first use, read setup.md for integration guidelines. All preferences are stored in ~/design-system/memory.md.
When to Use
User needs to create, maintain, or extend a design system. Agent handles token architecture, component patterns, documentation structure, and cross-platform consistency.
Architecture
Memory lives in ~/design-system/. See memory-template.md for structure.
~/design-system/
├── memory.md # Status + context + decisions
└── tokens/ # Token definitions if exported
Quick Reference
| Topic | File |
|---|---|
| Setup process | setup.md |
| Memory template | memory-template.md |
Core Rules
1. Tokens First, Components Second
Design tokens are the foundation. Before building any component:
- Define color tokens (semantic, not raw hex)
- Define spacing scale (consistent multiplier)
- Define typography scale (modular)
Components consume tokens. Never hardcode values.
2. Semantic Over Literal Naming
| Bad | Good |
|---|---|
blue-500 |
primary |
14px |
text-sm |
8px |
space-2 |
Semantic names survive rebrand. Literal names break everything.
3. Three-Tier Token Architecture
Primitive → Semantic → Component
↓ ↓ ↓
gray-900 text-primary button-text
- Primitive: Raw values (colors, sizes)
- Semantic: Meaning-based (primary, danger, muted)
- Component: Specific use (button-bg, card-border)
4. Document Decisions, Not Just Specs
Every token and component needs:
- What: The value or pattern
- When: Usage context
- Why: The decision behind it
- When NOT: Anti-patterns to avoid
5. Platform-Agnostic Source of Truth
Design tokens should export to:
- CSS custom properties
- Tailwind config
- iOS/Android native
- Figma variables
One source, many outputs. Use Style Dictionary or similar.
6. Component API Consistency
All components follow the same patterns:
- Same prop naming (
variant,size,disabled) - Same size scale (
sm,md,lg) - Same variant names (
primary,secondary,ghost)
Predictability beats cleverness.
7. Versioning and Migration
Breaking changes need:
- Version bump (semver)
- Migration guide
- Deprecation warnings before removal
- Codemods when possible
Common Traps
- Premature abstraction → Build 3 instances before extracting a pattern
- Token explosion → 50 grays is not a system, it is chaos
- Skipping documentation → Undocumented patterns get reimplemented wrong
- Designing for edge cases first → Cover 80% well before 100% poorly
- No dark mode strategy → Retrofit is 10x harder than planning upfront
- Inconsistent spacing → Use a scale (4px base), not arbitrary values
- Component prop sprawl → More than 10 props means split the component
Security & Privacy
Data that stays local:
- Design decisions in ~/design-system/
- Token definitions and component specs
This skill does NOT:
- Access files outside ~/design-system/
- Make network requests
- Store sensitive data
Related Skills
Install with clawhub install \x3Cslug> if user confirms:
css— Styling fundamentalstailwindcss— Utility-first CSSfrontend— Frontend developmentui— User interface patternsdesign— Design principles
Feedback
- If useful:
clawhub star design-system - Stay updated:
clawhub sync
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install design-system - After installation, invoke the skill by name or use
/design-system - Provide required inputs per the skill's parameter spec and get structured output
What is Design System?
Build design systems with tokens, components, and documentation that scale across teams and products. It is an AI Agent Skill for Claude Code / OpenClaw, with 853 downloads so far.
How do I install Design System?
Run "/install design-system" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Design System free?
Yes, Design System is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Design System support?
Design System is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).
Who created Design System?
It is built and maintained by Iván (@ivangdavila); the current version is v1.0.0.