К основному содержанию
скилл CX Codex

design-system · rampstackco — скилл для Claude Code: дизайн-система с нуля

Собирает или проверяет дизайн-систему: токены, библиотеку компонентов, правила именования, модель контрибуции и документацию. Пригодится, когда продукты расходятся по стилю.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add rampstackco/claude-skills --skill design-system -a claude-code
Открыть на GitHub

Что делает design-system

Скилл ведёт работу по пяти слоям: foundations (токены), elements (атомы), components (молекулы и организмы), patterns (шаблоны страниц) и документация с governance. Каждый слой опирается на предыдущий, поэтому токены задаются первыми, а компоненты строятся уже поверх них. Для токенов скилл советует начать с двух уровней: базовые значения вроде color-blue-600 и семантические вроде color-text-link, которые и подставляются в компоненты.

Для новой системы есть порядок шагов: инвентаризация существующего UI, поиск дублей, определение foundations, ревизия элементов, сборка библиотеки, приоритетные компоненты, документация паттернов, governance и постепенный перевод экранов. Для аудита — свой маршрут: что задокументировано, что лежит в Figma, что в коде и что реально используется; дальше пробелы, расхождения между реализациями, дрейф компонентов и приоритеты починки.

Скилл не привязан к стеку: принципы структуры и governance переносятся, а реализация зависит от инструментов — Figma, Storybook, кодовая библиотека. Нужны входные данные: айдентика бренда, продуктовые поверхности, инструменты команды, существующие компоненты и ограничения вроде доступности и поддержки браузеров. Если айдентика ещё не определена, сначала запускается brand-identity — токены зависят от неё. Отдельная страница или компонент — это уже design-standards, а не этот скилл.

Какие задачи решает

  • собрать дизайн-систему с нуля и не утонуть в слоях
  • найти дубли компонентов по всему продукту
  • описать токены на уровне системы, а не отдельной страницы
  • развести базовые и семантические токены
  • задать модель контрибуции и владельца системы

Примеры запросов агенту

  • Собери дизайн-систему для нашего продукта: начни с foundations и токенов
  • Проведи аудит существующей дизайн-системы: где пробелы и расхождения между Figma и кодом
  • Структурируй библиотеку компонентов: элементы, компоненты, паттерны

Как установить design-system

1Через Skills CLI (Vercel)

npx skills add rampstackco/claude-skills --skill design-system -a claude-code

2Вручную: положить файлы

~/.claude/skills/design-system/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/design-system/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о design-system

Как установить design-system в Claude?

Выполните npx skills add rampstackco/claude-skills --skill design-system -a claude-code. После этого файл скилла лежит в ~/.claude/skills/design-system/SKILL.md.

Что делает скилл design-system?

Помогает построить или проверить дизайн-систему: токены, библиотеку компонентов, правила именования, модель контрибуции и документацию. Работает по пяти слоям — от foundations до governance.

Чем design-system отличается от design-standards?

Этот скилл строит саму систему. Для применения системы к конкретным страницам и компонентам нужен design-standards, для визуальной айдентики бренда — brand-identity.

Исходный текст

SKILL.md · MIT
---
name: design-system
description: "Build or audit a design system including component library, design tokens, naming conventions, contribution model, and documentation. Use this skill whenever the user wants to build a design system, audit an existing system, define design tokens at the system level, structure a component library, or set up design system governance. Triggers on design system, component library, design tokens, atomic design, atoms, molecules, organisms, design system documentation, Storybook, Figma library, system governance, design contribution model. Also triggers when teams are inconsistent across products and a system is the answer."
category: design
catalog_summary: "Component library, design tokens, design system documentation"
display_order: 1
---

# Design System

Build, evolve, or audit a design system. Stack-agnostic in principle. Implementation is stack-specific (Figma, Storybook, code library, etc.) but the structure and governance principles transfer.

This skill is for building the system. For applying a system to specific pages or components, use `design-standards`. For brand visual identity, use `brand-identity`.

---

## When to use

- Building a design system from scratch
- Auditing an existing system for gaps or fragmentation
- Defining design tokens at the system level
- Structuring a component library
- Establishing contribution and governance models
- Migrating from ad-hoc components to a documented system

## When NOT to use

- Designing a single page or component (use `design-standards`)
- Brand identity work (use `brand-identity`)
- Component-level frontend implementation (use `frontend-component-build`)
- Pure design documentation for marketing (use `brand-style-guide`)

---

## Required inputs

- The brand identity (tokens, voice, imagery direction)
- The product surfaces the system needs to support (web, mobile, marketing, app, internal tools)
- The team and its working tools (Figma, code framework, doc platform)
- Existing components, even if undocumented
- Constraints (accessibility requirements, performance targets, browser support)

If brand identity is undefined, run `brand-identity` first.

---

## The framework: 5 layers

A complete design system has five layers, stacked. Each layer feeds the layer above.

### 1. Foundations (tokens)

The atomic decisions. Color, type, spacing, radius, shadow, motion, breakpoints.

**Why this layer matters:**
- Tokens are the source of truth for everything above
- Token changes propagate everywhere automatically
- Without tokens, the system has no foundation

**Output:**
- A documented token set (see `design-standards/references/design-tokens-template.md`)
- Token implementation in code (CSS variables, JS objects, Style Dictionary, etc.)
- Token implementation in Figma (variables and styles)
- A primer doc explaining what tokens to use when

**Common patterns:**
- Two-tier tokens: base tokens (raw values) + semantic tokens (named uses). Example: `color-blue-600` (base) + `color-text-link` (semantic). Components reference semantic tokens. Theme changes update semantic tokens, not base.

### 2. Elements (atoms)

The smallest functional building blocks. Buttons, inputs, labels, badges, icons, links, dividers.

**Per element, document:**
- Visual variants (primary, secondary, ghost, etc.)
- Size variants (small, medium, large)
- States (default, hover, focus, active, disabled, error, loading)
- Anatomy (the parts that make up the element)
- Spacing and proportions
- Accessibility (keyboard support, screen reader behavior, ARIA)
- Code usage (props, examples)

**Output:**
- Element library in Figma
- Element components in code
- Per-element documentation

### 3. Components (molecules + organisms)

Combinations of elements that form recognizable UI patterns. Cards, alerts, modals, navigation, forms, data tables, headers, footers.

**Per component:**
- Composition (which elements it uses)
- Variants and configurations
- Use cases (when to reach for this vs. an alternative)
- Layout behavior (responsive, contained, full-bleed)
- Anti-patterns (when NOT to use it)

**Output:**
- Component library
- Per-component documentation with usage guidance

### 4. Patterns (templates)

Larger structures that combine components. Sign-in flow, settings page, dashboard layout, marketing page sections.

**Per pattern:**
- The structure and components used
- The user journey it supports
- Layout grid and spacing
- Responsive behavior
- Variants (e.g., "with sidebar," "fullscreen," "modal")

**Output:**
- Pattern library or page templates
- Documentation showing complete examples

### 5. Documentation and governance

How the system gets used, contributed to, and maintained.

**Documentation includes:**
- Getting started guide for new team members
- How to use vs. how to extend
- Contribution model
- Versioning policy
- Migration paths when breaking changes happen
- Decision log for major system choices

**Governance includes:**
- Who owns the system (a team or rotation)
- How new components get proposed and approved
- How conflicts get resolved
- How the system evolves vs. stays stable
- Cadence of review and updates

---

## Workflow

### For a new design system

1. **Inventory the existing UI.** Screenshot every component, button, form, modal across the product. The list of distinct UI patterns is your starting scope.
2. **Identify the duplicates.** Same component built 5 different ways across the product. These are your high-value consolidation targets.
3. **Define foundations.** Token set, with both base and semantic layers. Document each.
4. **Audit elements.** From the inventory, identify the actual elements (buttons, inputs, etc.) and reduce variants to a managed set.
5. **Build the element library.** Figma + code. Document each element.
6. **Identify priority components.** The 10 to 15 components that appear most often. Build those first.
7. **Document patterns.** Page-level templates that show the system in use.
8. **Establish governance.** Owner, contribution model, review cadence.
9. **Roll out.** Migrate existing surfaces to the system progressively.

### For an existing design system audit

1. **Inventory what exists.** What's documented, what's in Figma, what's in code, what's actually used in production.
2. **Map gaps.** Where the system is incomplete. Where teams build outside the system because the system can't serve their need.
3. **Map fragmentation.** Where the system has divergent implementations (Figma vs. code, web vs. mobile, multiple teams).
4. **Identify decay.** Components that have drifted from the documented standard.
5. **Prioritize fixes.** Foundation gaps first. High-use component drift second. Rarely-used component cleanup last.
6. **Plan rollout.** Major changes need migration paths.

---

## Failure patterns

- **Building the system before the brand is set.** Tokens depend on brand. Set brand first.
- **Atoms-up extreme.** Spending 6 months on tokens and elements before producing components anyone uses. Ship components people need; refine tokens iteratively.
- **One-person system.** A system without governance fails as soon as the original designer leaves. Establish ownership early.
- **Stale documentation.** A system with code that's diverged from the docs is worse than no system. Synchronize or kill the docs.
- **Versioning everything.** Treating every component as needing a major version. Most components evolve in place. Reserve versioning for breaking changes.
- **Adopting "atomic design" dogmatically.** Atoms / molecules / organisms is a useful mental model, not a rigid taxonomy. Don't argue about whether something is a molecule or an organism.
- **Building in a vacuum.** A system designed without input from the teams using it gets ignored. Co-design with consumers.
- **No deprecation path.** Old components linger in code forever because no one knows it's safe to remove them. Document deprecation explicitly.
- **Token explosion.** Defining 200 color tokens for a brand with 10 colors. Discipline. Most products need fewer tokens than they have.

---

## Output format

A design system has multiple deliverables. Typically:

- **Documentation site** (Notion, dedicated site, GitHub Pages, Storybook addon, etc.)
- **Figma library** (or equivalent design tool)
- **Code library** (npm package, monorepo workspace, copy-paste components)
- **Decision log** (system-level decisions and the reasoning)
- **Roadmap and changelog**

For a design system audit, output is a markdown report at `design-system-audit.md`:

1. Inventory of what exists (foundations, elements, components, patterns)
2. Gap analysis
3. Fragmentation analysis
4. Drift analysis
5. Prioritized remediation plan
6. Governance recommendations

---

## If required data is unavailable

This skill's output depends on data, measurements, or tool results it cannot generate on its own. When a required input, tool, or data source is unavailable or unverifiable, the sanctioned output is the deliverable with the gap stated: what was needed, what was actually obtained or verified, and which parts of the output are affected. Fabricating, estimating, or interpolating a required number to complete the deliverable is never sanctioned. A stated gap is a complete answer.

---

## Reference files

- [`references/system-architecture.md`](references/system-architecture.md) - The four-layer model (tokens, primitives, patterns, templates) and how to decide where new work belongs.
- [`references/system-audit-template.md`](references/system-audit-template.md) - Template for auditing an existing design system.
- [`references/governance-playbook.md`](references/governance-playbook.md) - Contribution model, ownership, and decision process for an active system.

© rampstackco · MIT · rampstackco/claude-skills

Похожие скиллы

Всё по теме «Дизайн» →

Сначала — design-system от других авторов.

design-system claudekit Скилл собирает дизайн-токены, спецификации компонентов и презентационные слайды. Подойдёт, когда интерфейс и слайды должны следовать одной системе. CX Codex +1 42 700установок design-system affaan-m Собирает дизайн-систему из существующей вёрстки или проверяет её на визуальную консистентность: токены, оценка по десяти критериям, поиск шаблонных ИИ-приёмов. CX Codex +1 5 000установок design-system официальный anthropics Скилл проверяет дизайн-систему, описывает компоненты и помогает спроектировать новые паттерны. Пригодится для работы с токенами, состояниями и доступностью. CX Codex +1 4 200установок design-system Donchitos Ведёт по секциям документа дизайна одной игровой системы и проверяет связи с зависимостями. Пригодится, когда GDD пишется в одиночку и расползается. CX Codex +1 484установок design-system BuilderOS Собирает дизайн-систему по скриншотам или макетам и записывает её сразу в два файла: docs/design.md для агента и docs/design.html для браузера. CX Codex +1 1 800установок design-system-patterns Seth Hobson Помогает проектировать дизайн-токены, переключение тем и архитектуру библиотеки компонентов. Пригодится, когда вы закладываете общие правила интерфейса для проекта. CX Codex 15 953установок ui-design-system Alireza Rezvani Скилл собирает дизайн-токены, палитры, типографику и структуру компонентов. Пригодится для дизайн-системы и передачи макетов разработчикам. 1 076установок figma-create-design-system-rules официальный openai Генерирует правила дизайн-системы для кодовой базы при переносе макетов из Figma. Помогает агентам соблюдать структуру компонентов и токенов проекта. CX Codex +1 2 900установок design-system-rules-agent официальный Figma Субагент собирает правила переноса макетов Figma в код и складывает их в AGENTS.md, чтобы следующие реализации шли по одним и тем же конвенциям. CX Codex GP ChatGPT ★ 7 596звёзд репо tailwind-design-system Seth Hobson Помогает строить дизайн-системы на Tailwind CSS v4. Пригодится для библиотеки компонентов или унификации интерфейса в проекте. CX Codex 70 180установок theming-system Owl-Listener Скилл проектирует трёхуровневую архитектуру дизайн-токенов для поддержки тем оформления, плотности интерфейса и тёмного режима в единой библиотеке компонентов. CX Codex +1 2 100установок

Из того же набора11

logo-design Скилл генерирует 6–12 вариантов логотипа по разным архитектурам и доводит выбранный до продакшена. Пригодится, когда нужен логотип, а не вся айдентика. CX Codex +1 446установок creative-direction Скилл формирует эстетический бриф проекта по четырём осям: тональность, визуальная философия, связь с аудиторией и эмоциональная глубина. Пригодится перед запуском дизайна, текста и брендинга. CX Codex +1 417установок brand-style-guide Собирает или проверяет брендбук по восьми разделам: история, логотип, цвет, типографика, изображения, голос, применения, запреты. Пригодится, когда айдентика готова и её надо передать команде. CX Codex +1 388установок landing-page-copy Скилл помогает писать тексты для посадочных страниц: от первого экрана и формулировки ценности до закрытия возражений и кнопок призыва к действию. CX Codex +1 374установок chatbot-flow-design Помогает проектировать логику диалогов для сайтовых ботов и агентов. Пригодится при запуске сценариев с заземлением на базу знаний и передачей диалога человеку. CX Codex +1 338установок seo-aeo-geo Скилл для оптимизации контента и структуры сайта под ИИ-поиск: цитирование в ответах языковых моделей, llms.txt, извлекаемая разметка. CX Codex +1 317установок email-deliverability Скилл разбирает доставляемость писем: настраивает SPF, DKIM и DMARC, следит за репутацией отправителя и подсказывает, почему письма падают в спам. CX Codex +1 314установок brand-ideation Скилл для ранней стадии бренда: генерирует территории позиционирования, варианты названий, настроения и нарративы, а потом помогает свести всё к одному направлению. CX Codex +1 308установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой