skills/design-system/SKILL.md
Use when building or maintaining a design system — the coordinated set of design tokens, component libraries, documentation, and tooling that ensures visual and behavioral consistency across products. USE FOR: design system architecture, choosing token formats vs component frameworks, connecting Figma to code, design-to-development workflows, multi-platform consistency DO NOT USE FOR: specific token authoring (use design-tokens), Figma workflows (use figma), component cataloging (use storybook), token transformation (use style-dictionary), cross-framework components (use mitosis)
npx skillsauth add Tyler-R-Kendrick/agent-skills design-systemInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A design system is the single source of truth for an organization's UI — combining design tokens, component libraries, documentation, and tooling into a cohesive ecosystem. It ensures consistency, accelerates development, and bridges the gap between design and engineering.
┌─────────────────────────────────────────────────┐
│ Design (Figma) │
│ Variables, components, styles, auto-layout │
├─────────────────────────────────────────────────┤
│ Tokens (W3C DTCG / Style Dictionary) │
│ Color, typography, spacing, elevation, motion │
├─────────────────────────────────────────────────┤
│ Components (React, Vue, Angular, Web Comp.) │
│ Buttons, inputs, modals, cards, layouts │
├─────────────────────────────────────────────────┤
│ Documentation (Storybook) │
│ Stories, usage guidelines, interaction tests │
└─────────────────────────────────────────────────┘
Figma Variables ──► W3C DTCG JSON ──► Style Dictionary ──► CSS / SCSS / iOS / Android
│
Figma Components ──► Code Connect / Mitosis ──────────────► React / Vue / Angular / Svelte
│
▼
Storybook
(catalog + interaction tests)
Design tokens are the atomic values of a design system — colors, spacing, typography, elevation, motion. They flow through three tiers:
| Tier | Example | Purpose |
|------|---------|---------|
| Global | blue-500: #3b82f6 | Raw palette values |
| Alias / Semantic | color-primary: {blue-500} | Intent-based references |
| Component | button-bg: {color-primary} | Scoped to a specific component |
Build components in one framework (e.g., React) and use Storybook for documentation and testing.
Use an intermediary format to target multiple frameworks from a single source:
| Tool | Role | |------|------| | Figma | Visual design, variables, prototyping, Dev Mode | | W3C Design Tokens | Vendor-neutral token format (DTCG spec) | | Style Dictionary | Transform tokens into platform-specific outputs | | Storybook | Component catalog, docs, visual/interaction testing | | Mitosis | Write-once component compiler for multiple frameworks | | Tokens Studio | Figma plugin for managing tokens in DTCG format | | Chromatic | Visual regression testing for Storybook stories |
design-system/
tokens/
global/
colors.tokens.json # W3C DTCG format
typography.tokens.json
spacing.tokens.json
semantic/
theme-light.tokens.json
theme-dark.tokens.json
style-dictionary.config.mjs # Token build pipeline
src/
components/
Button/
Button.tsx # Component implementation
Button.stories.tsx # Storybook stories
Button.test.tsx # Unit / interaction tests
.storybook/
main.ts
preview.ts
tools
Use when implementing the x402 protocol for HTTP-native micropayments. Covers server middleware, client payment flows, facilitator integration, and stablecoin payments for APIs and AI agents. USE FOR: API micropayments, monetizing endpoints, stablecoin HTTP payments, automated agent payments for API access DO NOT USE FOR: full commerce flows with cart/checkout (use ap2), agent communication (use a2a), tool integration (use mcp)
tools
Use when implementing or integrating with the Model Context Protocol (MCP) for AI tool servers, resources, prompts, and context management. USE FOR: building MCP tool servers, exposing resources to agents, prompt templates, connecting agents to external APIs DO NOT USE FOR: agent-to-agent communication (use a2a), interactive UI rendering (use mcp-apps), agent payments (use x402 or ap2)
tools
Use when building MCP Apps that serve interactive UI from MCP servers. Covers the ui:// URI scheme, HTML rendering in sandboxed iframes, and bidirectional communication between UI and host. USE FOR: rich UI in agent conversations, interactive dashboards from MCP servers, sandboxed iframe rendering DO NOT USE FOR: basic tool responses without UI (use mcp), agent communication (use a2a), full web applications
data-ai
Use when a user corrects, rejects, edits, or redirects an LLM/agent response and the correction should become a reusable reasoning strategy. Converts feedback into generalized learnings for ~/.agents/STEERING.md with linked RDF/Turtle evidence. USE FOR: user corrections, preference feedback, rejected agent behavior, reasoning strategy updates, steering file maintenance DO NOT USE FOR: storing task facts (use memory), ordinary skill authoring (use agent-skills), project instruction files unrelated to feedback (use agents-md)