design-system · anthropics — скилл для Claude Code: аудит и установка
Скилл проверяет дизайн-систему, описывает компоненты и помогает спроектировать новые паттерны. Пригодится для работы с токенами, состояниями и доступностью.
npx skills add anthropics/knowledge-work-plugins --skill design-system -a claude-codeЧто делает design-system
Скилл работает в трёх режимах: audit проверяет согласованность имён, хардкод значений и покрытие дизайн-токенами; document оформляет документацию компонента; extend помогает спроектировать новый компонент или паттерн на основе существующей системы.
Результат строится как Markdown-документ. Для аудита это сводка, таблицы проблем с именованием, токенами и компонентами, а также список приоритетных действий. Документация описывает варианты, свойства, состояния, доступность и примеры кода. Для расширения добавляются проблема, связанные паттерны, API, варианты, состояния, токены и открытые вопросы.
Если подключены design tool или knowledge base, скилл может проверить компоненты в Figma, найти существующие правила и опубликовать обновлённую документацию. Для Claude Code команда установки повторяется дважды, поэтому это повод проверить результат перед переходом к пути ~/.claude/skills/design-system/SKILL.md.
Какие задачи решает
- проверить единообразие имён компонентов и токенов
- найти хардкод цветов, отступов и типографики
- описать варианты, свойства и состояния компонента
- зафиксировать правила доступности и поведения с клавиатуры
- спроектировать новый паттерн по правилам существующей системы
Примеры запросов агенту
- `/design-system audit`
- `/design-system document [component]`
- `/design-system extend [pattern]`
Как установить design-system
1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-system -a claude-code2Вручную: положить файлы
~/.claude/skills/design-system/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/design-system/
1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-system -a codex2Вручную: положить файлы
.agents/skills/design-system/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-system -a cursor2Вручную: положить файлы
.cursor/skills/design-system/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install anthropics/knowledge-work-plugins design-system2Вручную: положить файлы
.github/skills/design-system/SKILL.md1Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-system -a gemini-cli2Командой платформы
gemini skills install https://github.com/anthropics/knowledge-work-plugins --path design/skills/design-systemВручную: положить файлы
.devin/skills/design-system/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add anthropics/knowledge-work-plugins --skill design-system -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора133
Весь набор →Другие версии design-system
Похожие
Вопросы о design-system
Как установить design-system в Claude Code?
Выполните npx skills add anthropics/knowledge-work-plugins --skill design-system -a claude-code, затем повторите npx skills add anthropics/knowledge-work-plugins --skill design-system -a claude-code. После этого используйте файл ~/.claude/skills/design-system/SKILL.md.
Что делает design-system?
Скилл проводит аудит дизайн-системы, создаёт документацию компонентов и помогает расширять систему новыми паттернами. В результатах есть сведения о токенах, вариантах, состояниях, доступности и API.
С какими платформами работает design-system?
Скилл предназначен для Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. При подключении design tool или knowledge base он использует их для проверки и публикации материалов.
Исходный текст
SKILL.md · Apache-2.0
--- name: design-system description: Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system. argument-hint: "[audit | document | extend] <component or system>" --- # /design-system > If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../CONNECTORS.md). Manage your design system — audit for consistency, document components, or design new patterns. ## Usage ``` /design-system audit # Full system audit /design-system document [component] # Document a component /design-system extend [pattern] # Design a new component or pattern ``` ## Components of a Design System ### Design Tokens Atomic values that define the visual language: - Colors (brand, semantic, neutral) - Typography (scale, weights, line heights) - Spacing (scale, component padding) - Borders (radius, width) - Shadows (elevation levels) - Motion (durations, easings) ### Components Reusable UI elements with defined: - Variants (primary, secondary, ghost) - States (default, hover, active, disabled, loading, error) - Sizes (sm, md, lg) - Behavior (interactions, animations) - Accessibility (ARIA, keyboard) ### Patterns Common UI solutions combining components: - Forms (input groups, validation, submission) - Navigation (sidebar, tabs, breadcrumbs) - Data display (tables, cards, lists) - Feedback (toasts, modals, inline messages) ## Principles 1. **Consistency over creativity** — The system exists so teams don't reinvent the wheel 2. **Flexibility within constraints** — Components should be composable, not rigid 3. **Document everything** — If it's not documented, it doesn't exist 4. **Version and migrate** — Breaking changes need migration paths ## Output — Audit ```markdown ## Design System Audit ### Summary **Components reviewed:** [X] | **Issues found:** [X] | **Score:** [X/100] ### Naming Consistency | Issue | Components | Recommendation | |-------|------------|----------------| | [Inconsistent naming] | [List] | [Standard to adopt] | ### Token Coverage | Category | Defined | Hardcoded Values Found | |----------|---------|----------------------| | Colors | [X] | [X] instances of hardcoded hex | | Spacing | [X] | [X] instances of arbitrary values | | Typography | [X] | [X] instances of custom fonts/sizes | ### Component Completeness | Component | States | Variants | Docs | Score | |-----------|--------|----------|------|-------| | Button | ✅ | ✅ | ⚠️ | 8/10 | | Input | ✅ | ⚠️ | ❌ | 5/10 | ### Priority Actions 1. [Most impactful improvement] 2. [Second priority] 3. [Third priority] ``` ## Output — Document ```markdown ## Component: [Name] ### Description [What this component is and when to use it] ### Variants | Variant | Use When | |---------|----------| | [Primary] | [Main actions] | | [Secondary] | [Supporting actions] | ### Props / Properties | Property | Type | Default | Description | |----------|------|---------|-------------| | [prop] | [type] | [default] | [description] | ### States | State | Visual | Behavior | |-------|--------|----------| | Default | [description] | — | | Hover | [description] | [interaction] | | Active | [description] | [interaction] | | Disabled | [description] | Non-interactive | | Loading | [description] | [animation] | ### Accessibility - **Role**: [ARIA role] - **Keyboard**: [Tab, Enter, Escape behavior] - **Screen reader**: [Announced as...] ### Do's and Don'ts | ✅ Do | ❌ Don't | |------|---------| | [Best practice] | [Anti-pattern] | ### Code Example [Framework-appropriate code snippet] ``` ## Output — Extend ```markdown ## New Component: [Name] ### Problem [What user need or gap this component addresses] ### Existing Patterns | Related Component | Similarity | Why It's Not Enough | |-------------------|-----------|---------------------| | [Component] | [What's shared] | [What's missing] | ### Proposed Design #### API / Props | Property | Type | Default | Description | |----------|------|---------|-------------| | [prop] | [type] | [default] | [description] | #### Variants | Variant | Use When | Visual | |---------|----------|--------| | [Variant] | [Scenario] | [Description] | #### States | State | Behavior | Notes | |-------|----------|-------| | Default | [Description] | — | | Hover | [Description] | [Interaction] | | Disabled | [Description] | Non-interactive | | Loading | [Description] | [Animation] | #### Tokens Used - Colors: [Which tokens] - Spacing: [Which tokens] - Typography: [Which tokens] ### Accessibility - **Role**: [ARIA role] - **Keyboard**: [Expected interactions] - **Screen reader**: [Announced as...] ### Open Questions - [Decision that needs design review] - [Edge case to resolve] ``` ## If Connectors Available If **~~design tool** is connected: - Audit components directly in Figma — check naming, variants, and token usage - Pull component properties and layer structure for documentation If **~~knowledge base** is connected: - Search for existing component documentation and usage guidelines - Publish updated documentation to your wiki ## Tips 1. **Start with an audit** — Know where you are before deciding where to go. 2. **Document as you build** — It's easier to document a component while designing it. 3. **Prioritize coverage over perfection** — 80% of components documented beats 100% of 10 components.
© anthropics · Apache-2.0 · anthropics/knowledge-work-plugins