
magic-ui
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.
- Installs
- 1.3K
- Last 24h
- +19
- Trending rank
- #6194
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/magicuidesign/magicui --skill magic-ui- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads magic-ui automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
- 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.
- Confirm project prerequisites.
- Project should be React/Next.js with Tailwind CSS.
- shadcn must be initialized before adding registry components:
npx shadcn@latest init
- Install the selected component(s).
npx shadcn@latest add @magicui/<component-slug>
Example:
npx shadcn@latest add @magicui/magic-card
- 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.
- 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
- Read
- For section-level implementation patterns:
- Read
references/recipes.md
- Read
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.jsonor registry init error:- Run
npx shadcn@latest initin the project root.
- Run
- 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
FAQ
What does the magic-ui skill do?
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.
How do I install magic-ui?
Run npx skills add https://github.com/magicuidesign/magicui --skill magic-ui in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/magic-ui/ (personal) or .claude/skills/magic-ui/ (project).
Which AI agents can use magic-ui?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is magic-ui safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains magic-ui?
It is published by magicuidesign in magicuidesign/magicui. It has 1,250 recorded installs.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.