Design system

From clawic/skills · View interactive version

Design system is an AI agent skill from the GitHub repository clawic/skills. Build design systems with tokens, components, and documentation that scale across teams and products.

How to use this skill

Skill file

Setup

On first use, read setup.md for integration guidelines. All preferences are stored in ~/Clawic/data/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 ~/Clawic/data/design-system/. See memory-template.md for structure.

~/Clawic/data/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:

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

4. Document Decisions, Not Just Specs

Every token and component needs:

5. Platform-Agnostic Source of Truth

Design tokens should export to:

One source, many outputs. Use Style Dictionary or similar.

6. Component API Consistency

All components follow the same patterns:

Predictability beats cleverness.

7. Versioning and Migration

Breaking changes need:

Common Traps

Security & Privacy

Data that stays local:

This skill does NOT:

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.