21st-ui-explore — скилл для Claude Code: варианты UI и установка
Скилл предлагает несколько разных направлений интерфейса, опираясь на дизайн-систему проекта и подборку референсов из 21st. Пригодится, когда неясно, как должна выглядеть новая страница.
npx skills add 21st-dev/skill --skill 21st-ui-explore -a claude-codeЧто делает 21st-ui-explore
Скилл ведёт агента по шагам: сначала читает .21st/design.json и текущий UI продукта, а если контекста нет — запускает 21st init --design-context. Дальше ищет референсы командой 21st search "<interface and product context>" --context auto и только потом берётся за генерацию.
На выходе — три именованных направления. Каждое обязано отличаться от остальных минимум по двум осям: иерархия, плотность информации, модель навигации, акцент на контенте, паттерн взаимодействия или композиция. Варианты, где поменяли только цвет, не считаются. Общие ограничения при этом остаются на месте: стек, токены, брендовые ассеты, обязательный контент, доступность и адаптивность.
Хостинговую генерацию скилл включает только при явно включённом AI: проверяет get_usage.aiGenerationEnabled через MCP или строку 21st AI generation в 21st usage (CLI 1.17.1+ умеет 21st usage --json). Если AI выключен, превью собирает ваш же кодинг-агент на основе 21st search и 21st get. Вызывать generate или iterate_generation без доступа к AI не стоит — упрётесь в отказ. Для простой реализации, когда направление уже выбрано, скилл не нужен.
Какие задачи решает
- показать три разных направления интерфейса до начала вёрстки
- сравнить варианты по плотности и иерархии, а не по цвету
- проверить новую страницу на соответствие дизайн-системе проекта
- зафиксировать выбранное направление в
.21st/design.json - убрать заброшенные локальные варианты после выбора
Примеры запросов агенту
- Покажи три направления для страницы тарифов, опираясь на нашу дизайн-систему
- Какие есть альтернативы у этого экрана? Собери превью и сравни
- Сгенерируй варианты дашборда и запиши выбранное в
.21st/design.json
Как установить 21st-ui-explore
1Через Skills CLI (Vercel)
npx skills add 21st-dev/skill --skill 21st-ui-explore -a claude-code2Вручную: положить файлы
~/.claude/skills/21st-ui-explore/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/21st-ui-explore/
1Через Skills CLI (Vercel)
npx skills add 21st-dev/skill --skill 21st-ui-explore -a codex2Вручную: положить файлы
.agents/skills/21st-ui-explore/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add 21st-dev/skill --skill 21st-ui-explore -a cursor2Вручную: положить файлы
.cursor/skills/21st-ui-explore/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install 21st-dev/skill 21st-ui-explore2Вручную: положить файлы
.github/skills/21st-ui-explore/SKILL.md1Через Skills CLI (Vercel)
npx skills add 21st-dev/skill --skill 21st-ui-explore -a gemini-cli2Командой платформы
gemini skills install https://github.com/21st-dev/skill --path skills/21st-ui-exploreВручную: положить файлы
.devin/skills/21st-ui-explore/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add 21st-dev/skill --skill 21st-ui-explore -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о 21st-ui-explore
Как установить 21st-ui-explore в Claude?
Выполните npx skills add 21st-dev/skill --skill 21st-ui-explore -a claude-code. Скилл окажется в ~/.claude/skills/21st-ui-explore/SKILL.md.
Что делает 21st-ui-explore?
Собирает несколько заметно разных направлений UI, сверяясь с дизайн-системой проекта и референсами из 21st, а затем помогает сравнить их и выбрать одно.
Нужен ли доступ к AI-генерации 21st?
Только для хостинговой генерации. Скилл проверяет get_usage.aiGenerationEnabled или строку 21st AI generation в 21st usage и без явного включения собирает превью силами вашего кодинг-агента.
Исходный текст
SKILL.md · Apache-2.0
--- name: 21st-ui-explore description: Explore and compare multiple meaningfully different UI directions grounded in the current project's design system and 21st inspiration. Use when the user wants options, variants, concepts, a redesign direction, visual experimentation, or is unsure how a new interface should look. Trigger for requests such as "show me three directions", "explore alternatives", "what could this page look like", or "generate variants". Do not use for a straightforward implementation with an already-selected direction. --- # Explore grounded UI directions Create real choices without abandoning the project's visual identity. ## Workflow 1. Read `.21st/design.json` and the relevant product UI. If context is missing, run `21st init --design-context`. 2. Search 21st for multiple relevant references before generating: ```bash 21st search "<interface and product context>" --context auto ``` 3. Define three named directions. Each direction must differ on at least two meaningful axes such as hierarchy, information density, navigation model, content emphasis, interaction pattern, or composition. Color-only variants do not count. 4. Keep shared constraints fixed: real stack, tokens, brand assets, required content, accessibility, and responsive behavior. 5. Create comparable previews. Check MCP `get_usage.aiGenerationEnabled` or run `21st usage` and read the `21st AI generation` line. CLI 1.17.1+ also supports `21st usage --json`. Only when AI is explicitly enabled, use hosted generation with available AI credits: ```bash 21st generate "<goal plus fixed constraints>" --context auto --variants 3 ``` Otherwise, implement the previews with your own coding agent, grounded in `21st search` and `21st get` (MCP: `search` and `get_component`). Do not call or suggest hosted `generate` or `iterate_generation` without AI access. 6. Present the options together when the host supports a picker. Otherwise give each option a preview/deep link and a compact comparison. 7. Recommend one direction with concrete tradeoffs, but let the user choose. 8. After selection, remove abandoned local variants and record the decision in `.21st/design.json`. ## Direction contract For every direction provide: - a short, descriptive name; - the core idea and intended user effect; - the 21st/project references used; - what stays consistent with the project; - two or more meaningful differences; - accessibility or responsive risks; - the best-fit scenario. Do not generate random style mutations. Every difference must support a product or usability hypothesis that a user can evaluate.
© 21st-dev · Apache-2.0 · 21st-dev/skill