building-components — скилл для Claude Code: установка
Помогает проектировать доступные UI-компоненты, их API, темы и документацию.
npx skills add vercel/components.build --skill building-components -a claude-codeЧто делает building-components
Скилл задаёт подход к созданию UI-примитивов, компонентов, блоков и шаблонов. Он охватывает доступность с ARIA, клавиатурной навигацией и управлением фокусом, а также composable API со слотами, render props и контролируемым или неконтролируемым состоянием.
Внутри есть справочные материалы по полиморфным компонентам, паттерну as-child, типизации TypeScript, data-атрибутам, стилям и design tokens. Отдельные разделы посвящены публикации в npm, распространению через registry или marketplace и написанию документации.
Скилл доступен для Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Поскольку рекомендации разделены по reference-файлам, при изменении компонента стоит открыть соответствующий материал, а не ограничиваться общим описанием.
Какие задачи решает
- создать доступный UI-компонент с ARIA и клавиатурной навигацией
- спроектировать composable API со слотами или render props
- разделить controlled и uncontrolled state
- настроить design tokens и темизацию
- подготовить публикацию компонента в npm или registry
Примеры запросов агенту
- Создай компонент `Dialog` с управлением фокусом, ARIA-атрибутами и клавиатурной навигацией.
- Спроектируй composable API для `Select` с controlled и uncontrolled state, используя `as-child` там, где это уместно.
- Подготовь документацию и публикацию компонента в npm, опираясь на правила из `references/npm.mdx` и `references/docs.mdx`.
Как установить building-components
1Через Skills CLI (Vercel)
npx skills add vercel/components.build --skill building-components -a claude-code2Вручную: положить файлы
~/.claude/skills/building-components/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/building-components/
1Через Skills CLI (Vercel)
npx skills add vercel/components.build --skill building-components -a codex2Вручную: положить файлы
.agents/skills/building-components/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add vercel/components.build --skill building-components -a cursor2Вручную: положить файлы
.cursor/skills/building-components/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install vercel/components.build building-components2Вручную: положить файлы
.github/skills/building-components/SKILL.md1Через Skills CLI (Vercel)
npx skills add vercel/components.build --skill building-components -a gemini-cli2Командой платформы
gemini skills install https://github.com/vercel/components.build --path skills/building-componentsВручную: положить файлы
.devin/skills/building-components/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add vercel/components.build --skill building-components -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о building-components
Как установить building-components в Claude Code?
Выполните npx skills add vercel/components.build --skill building-components -a claude-code, затем повторите npx skills add vercel/components.build --skill building-components -a claude-code. Файл скилла находится по пути ~/.claude/skills/building-components/SKILL.md.
Что делает building-components?
Скилл помогает создавать доступные и composable UI-компоненты, проектировать их API, настраивать design tokens и готовить документацию или публикацию.
С какими платформами совместим building-components?
Скилл рассчитан на Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode.
Исходный текст
SKILL.md · Apache-2.0
--- name: building-components description: Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation. --- # Building Components ## When to use this skill Use when the user is: - Building new UI components (primitives, components, blocks, templates) - Implementing accessibility features (ARIA, keyboard navigation, focus management) - Creating composable component APIs (slots, render props, controlled/uncontrolled state) - Setting up design tokens and theming systems - Publishing components to npm or a registry - Writing component documentation - Implementing polymorphism or as-child patterns - Working with data attributes for styling/state ## References - [definitions.mdx](./references/definitions.mdx) - Artifact taxonomy (primitives, components, blocks, templates) - [principles.mdx](./references/principles.mdx) - Core principles for component design - [accessibility.mdx](./references/accessibility.mdx) - ARIA, keyboard navigation, WCAG compliance - [composition.mdx](./references/composition.mdx) - Composable component patterns - [as-child.mdx](./references/as-child.mdx) - The as-child pattern for element polymorphism - [polymorphism.mdx](./references/polymorphism.mdx) - Polymorphic component patterns - [types.mdx](./references/types.mdx) - TypeScript typing patterns for components - [state.mdx](./references/state.mdx) - Controlled vs uncontrolled state management - [data-attributes.mdx](./references/data-attributes.mdx) - Using data attributes for styling and state - [design-tokens.mdx](./references/design-tokens.mdx) - Design token systems and theming - [styling.mdx](./references/styling.mdx) - Component styling approaches - [registry.mdx](./references/registry.mdx) - shadcn-style registry distribution - [npm.mdx](./references/npm.mdx) - Publishing components to npm - [marketplaces.mdx](./references/marketplaces.mdx) - Component marketplace distribution - [docs.mdx](./references/docs.mdx) - Writing component documentation
© vercel · Apache-2.0 · vercel/components.build