Skip to content
Back to skills

Design System

ASecurity

Build design systems with tokens, components, and documentation that scale across teams and products.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
designgoapifrontendsecuritydocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add clawic/skills --skill design-system --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Design System?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Design System
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/clawic-design-system/badge)](https://www.skillsdirectory.com/skills/clawic-design-system)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Design System
slug: design-system
version: 1.0.0
description: Build design systems with tokens, components, and documentation that scale across teams and products.
homepage: https://clawic.com/skills/design-system
metadata:
  clawdbot:
    emoji: 🎨
    requires:
      bins: []
    os:
    - linux
    - darwin
    - win32
    displayName: Design System
---

## 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:
- 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 ~/Clawic/data/design-system/
- Token definitions and component specs

**This skill does NOT:**
- Access files outside ~/Clawic/data/design-system/
- Make network requests
- Store sensitive data

## Related Skills
More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):
- `css` β€” Styling fundamentals
- `tailwindcss` β€” Utility-first CSS
- `frontend` β€” Frontend development
- `ui` β€” User interface patterns
- `design` β€” Design principles

## Feedback

- If useful, star it: https://clawic.com/skills/design-system
- Latest version: https://clawic.com/skills/design-system

Files in this skill

  • SKILL.md3.9 KB
  • _meta.json178 B
  • memory-template.md1.1 KB
  • setup.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…