magic-ui — скилл для Claude Code: что делает и как установить
Скилл magic-ui учит Claude Code работать с компонентами Magic UI в React и Next.js: выбирать анимации, ставить через shadcn-реестр и проверять доступность.
npx skills add magicuidesign/magicui --skill magic-ui -a claude-codeЧто делает magic-ui
Скилл разбирает весь путь от выбора компонента до интеграции. Агент сначала уточняет задачу (тип секции, интенсивность движения, отзывчивость), потом проверяет наличие Tailwind CSS и инициализацию shadcn (npx shadcn@latest init), затем ставит компонент командой npx shadcn@latest add @magicui/<slug> и импортирует его из @/components/ui/. Внутри — эвристика выбора: marquee и avatar-circles для логотипов, globe и warp-background для героя, shiny-button для CTA, grid-pattern для фона.
Скилл требует React или Next.js с Tailwind CSS и инициализированный shadcn. Если проект не готов, агент не сможет поставить компоненты через реестр. Проверки после установки включают семантическую вёрстку, клавиатурный доступ, мобильный layout и отсутствие тяжёлых анимационных стеков.
Скилл предлагает начинать с одного компонента и одного эффекта, а не складывать всё в один viewport. Если @/ алиас не настроен, агент переключается на относительные импорты.
Какие задачи решает
- добавить компонент Magic UI (marquee, globe, blur-fade, shiny-button)
- собрать секцию с эффектами Magic UI (hero, testimonials, CTA, feature grid)
- заменить кастомную анимацию компонентом Magic UI
- устранить ошибку импорта или установки
@magicui/* - проверить доступность и отзывчивость UI с Magic UI
Примеры запросов агенту
- добавь компонент magic-card из Magic UI
- собери hero-секцию с globe и blur-fade
- замени этот код анимации на shiny-button из Magic UI
Как установить magic-ui
1Через Skills CLI (Vercel)
npx skills add magicuidesign/magicui --skill magic-ui -a claude-code2Вручную: положить файлы
~/.claude/skills/magic-ui/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/magic-ui/
1Через Skills CLI (Vercel)
npx skills add magicuidesign/magicui --skill magic-ui -a codex2Вручную: положить файлы
.agents/skills/magic-ui/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add magicuidesign/magicui --skill magic-ui -a cursor2Вручную: положить файлы
.cursor/skills/magic-ui/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install magicuidesign/magicui magic-ui2Вручную: положить файлы
.github/skills/magic-ui/SKILL.md1Через Skills CLI (Vercel)
npx skills add magicuidesign/magicui --skill magic-ui -a gemini-cli2Командой платформы
gemini skills install https://github.com/magicuidesign/magicui --path skills/magic-uiВручную: положить файлы
.devin/skills/magic-ui/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add magicuidesign/magicui --skill magic-ui -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о magic-ui
Как установить magic-ui в Claude Code?
Выполни npx skills add magicuidesign/magicui --skill magic-ui -a claude-code. Скилл появится в ~/.claude/skills/magic-ui/SKILL.md.
Что делает скилл magic-ui?
Учит агента выбирать, устанавливать и интегрировать компоненты Magic UI в React и Next.js через shadcn-реестр. Включает проверки доступности и отзывчивости.
Что нужно для работы magic-ui?
Проект на React или Next.js с Tailwind CSS и инициализированный shadcn. Без shadcn компоненты через реестр не установить.
Исходный текст
SKILL.md · MIT
--- name: magic-ui description: Use this skill when users want to add, customize, or troubleshoot Magic UI components in React/Next.js projects. It covers component selection, shadcn registry installation (`@magicui/*`), integration patterns, and practical quality checks for accessibility and maintainability. metadata: short-description: Build and customize UIs with Magic UI components --- # Magic UI Use this skill when the task involves Magic UI components, animated UI sections, or converting static sections into interactive UI using the Magic UI registry. ## When To Apply Apply this skill when users ask to: - Add a Magic UI component (for example: marquee, globe, blur-fade, shiny-button) - Build a section with Magic UI effects (hero, testimonials, CTA, feature grid) - Replace custom animation code with Magic UI components - Troubleshoot installation/import issues for `@magicui/*` ## Core Workflow 1. Define the UI outcome first. - Identify section type, tone, motion intensity, and responsive behavior. - Keep motion intentional; avoid stacking many high-motion effects in one viewport. 2. Confirm project prerequisites. - Project should be React/Next.js with Tailwind CSS. - shadcn must be initialized before adding registry components: ```bash npx shadcn@latest init ``` 3. Install the selected component(s). ```bash npx shadcn@latest add @magicui/<component-slug> ``` Example: ```bash npx shadcn@latest add @magicui/magic-card ``` 4. Integrate into the target section. - Import from the generated path (typically `@/components/ui/<component-slug>`). - Keep component APIs intact; prefer prop/className customization over rewriting internals. - If docs mention extra dependencies or CSS keyframes, add them during integration. 5. Validate quality before finishing. - Accessibility: semantic HTML, keyboard access, meaningful labels/text. - Responsiveness: check mobile layout and overflow behavior. - Performance: avoid unnecessary client-only wrappers and heavy animation stacking. - Maintainability: keep new code modular and consistent with existing project conventions. ## References To Load On Demand - For component choice, install shape, and dependency expectations: - Read `references/components.md` - For section-level implementation patterns: - Read `references/recipes.md` ## Quick Component Selection Heuristics - Social proof/logo rails: `marquee`, `avatar-circles` - Hero visual impact: `globe`, `warp-background`, `animated-grid-pattern` - Text animation: `blur-fade`, `text-animate`, `word-rotate`, `sparkles-text` - CTA emphasis: `shiny-button`, `shimmer-button`, `rainbow-button` - Ambient backgrounds: `grid-pattern`, `dot-pattern`, `particles`, `flickering-grid` Start with 1 core component + 1 supporting effect, then expand only if needed. ## Troubleshooting - `components.json` or registry init error: - Run `npx shadcn@latest init` in the project root. - Import path mismatch (`@/` alias not configured): - Use the project's alias style or relative imports. - Visual mismatch after install: - Check for required global CSS/keyframes listed in the component docs. - Missing package errors: - Install dependencies listed in the component's manual installation steps. ## Reference Links - Magic UI docs: `https://magicui.design/docs` - Component docs: `https://magicui.design/docs/components` - Installation: `https://magicui.design/docs/installation` - MCP setup (optional, for AI IDE workflows): `https://magicui.design/docs/mcp`
© magicuidesign · MIT · magicuidesign/magicui