Magic UI Skill
Magic UI component library for React. Get implementation details for animated components, text effects, special effects, buttons, backgrounds, and device mockups.
Context Efficiency
Traditional MCP approach:
- All 8 tools loaded at startup
- Estimated context: 4000 tokens
This skill approach:
- Metadata only: ~100 tokens
- Full instructions (when used): ~5k tokens
- Tool execution: 0 tokens (runs externally)
How This Works
Instead of loading all MCP tool definitions upfront, this skill:
- Tells you what tools are available (just names and brief descriptions)
- You decide which tool to call based on the user's request
- Generate a JSON command to invoke the tool
- The executor handles the actual MCP communication
Available Tools
getUIComponents: Provides a comprehensive list of all Magic UI components.
getComponents: Provides implementation details for marquee, terminal, hero-video-dialog, bento-grid, animated-list, dock, globe, tweet-card, client-tweet-card, orbiting-circles, avatar-circles, icon-cloud, animated-circular-progress-bar, file-tree, code-comparison, script-copy-btn, scroll-progress, lens, pointer components.
getDeviceMocks: Provides implementation details for safari, iphone-15-pro, android components.
getSpecialEffects: Provides implementation details for animated-beam, border-beam, shine-border, magic-card, meteors, neon-gradient-card, confetti, particles, cool-mode, scratch-to-reveal components.
getAnimations: Provides implementation details for blur-fade components.
getTextAnimations: Provides implementation details for text-animate, line-shadow-text, aurora-text, number-ticker, animated-shiny-text, animated-gradient-text, text-reveal, hyper-text, word-rotate, typing-animation, scroll-based-velocity, flip-text, box-reveal, sparkles-text, morphing-text, spinning-text components.
getButtons: Provides implementation details for rainbow-button, shimmer-button, shiny-button, interactive-hover-button, animated-subscribe-button, pulsating-button, ripple-button components.
getBackgrounds: Provides implementation details for warp-background, flickering-grid, animated-grid-pattern, retro-grid, ripple, dot-pattern, grid-pattern, interactive-grid-pattern components.
Usage Pattern
When the user's request matches this skill's capabilities:
Step 1: Identify the right tool from the list above
Step 2: Generate a tool call in this JSON format:
{
"tool": "tool_name",
"arguments": {
"param1": "value1",
"param2": "value2"
}
}
Step 3: Execute via bash:
python .claude/skills/mcp-skills/executor.py --skill magicui --call 'YOUR_JSON_HERE'
Getting Tool Details
If you need detailed information about a specific tool's parameters:
python .claude/skills/mcp-skills/executor.py --skill magicui --describe tool_name
This loads ONLY that tool's schema, not all tools.
Examples
Example 1: Simple tool call
User: "Get Magic UI button components"
Your workflow:
- Identify tool:
getButtons
- Generate call JSON
- Execute:
python .claude/skills/mcp-skills/executor.py --skill magicui --call '{"tool": "getButtons", "arguments": {}}'
Example 2: Get tool details first
python .claude/skills/mcp-skills/executor.py --skill magicui --describe getTextAnimations
Returns the full schema, then you can generate the appropriate call.
Error Handling
If the executor returns an error:
- Check the tool name is correct
- Verify required arguments are provided
- Ensure the MCP server is accessible
Performance Notes
Context usage comparison for this skill:
| Scenario |
MCP (preload) |
Skill (dynamic) |
| Idle |
4000 tokens |
100 tokens |
| Active |
4000 tokens |
5k tokens |
| Executing |
4000 tokens |
0 tokens |
Savings: ~-25% reduction in typical usage
This skill was auto-generated from an MCP server configuration.
Generator: mcp_to_skill.py
1---2name: magicui3description: Use for Magic UI React components, animations, text effects, buttons, backgrounds, device mocks. Includes bento-grid, marquee, globe, animated buttons, shimmer effects, particle backgrounds. 8 tools for beautiful UI components.4---5
6# Magic UI Skill
7
8Magic UI component library for React. Get implementation details for animated components, text effects, special effects, buttons, backgrounds, and device mockups.
9
10## Context Efficiency
11
12Traditional MCP approach:
13- All 8 tools loaded at startup
14- Estimated context: 4000 tokens
15
16This skill approach:
17- Metadata only: ~100 tokens
18- Full instructions (when used): ~5k tokens
19- Tool execution: 0 tokens (runs externally)
20
21## How This Works
22
23Instead of loading all MCP tool definitions upfront, this skill:
241. Tells you what tools are available (just names and brief descriptions)
252. You decide which tool to call based on the user's request
263. Generate a JSON command to invoke the tool
274. The executor handles the actual MCP communication
28
29## Available Tools
30
31- `getUIComponents`: Provides a comprehensive list of all Magic UI components.
32- `getComponents`: Provides implementation details for marquee, terminal, hero-video-dialog, bento-grid, animated-list, dock, globe, tweet-card, client-tweet-card, orbiting-circles, avatar-circles, icon-cloud, animated-circular-progress-bar, file-tree, code-comparison, script-copy-btn, scroll-progress, lens, pointer components.
33- `getDeviceMocks`: Provides implementation details for safari, iphone-15-pro, android components.
34- `getSpecialEffects`: Provides implementation details for animated-beam, border-beam, shine-border, magic-card, meteors, neon-gradient-card, confetti, particles, cool-mode, scratch-to-reveal components.
35- `getAnimations`: Provides implementation details for blur-fade components.
36- `getTextAnimations`: Provides implementation details for text-animate, line-shadow-text, aurora-text, number-ticker, animated-shiny-text, animated-gradient-text, text-reveal, hyper-text, word-rotate, typing-animation, scroll-based-velocity, flip-text, box-reveal, sparkles-text, morphing-text, spinning-text components.
37- `getButtons`: Provides implementation details for rainbow-button, shimmer-button, shiny-button, interactive-hover-button, animated-subscribe-button, pulsating-button, ripple-button components.
38- `getBackgrounds`: Provides implementation details for warp-background, flickering-grid, animated-grid-pattern, retro-grid, ripple, dot-pattern, grid-pattern, interactive-grid-pattern components.
39
40## Usage Pattern
41
42When the user's request matches this skill's capabilities:
43
44**Step 1: Identify the right tool** from the list above
45
46**Step 2: Generate a tool call** in this JSON format:
47
48```json
49{
50 "tool": "tool_name",
51 "arguments": {
52 "param1": "value1",
53 "param2": "value2"
54 }
55}
56```
57
58**Step 3: Execute via bash:**
59
60```bash
61python .claude/skills/mcp-skills/executor.py --skill magicui --call 'YOUR_JSON_HERE'
62```
63
64
65## Getting Tool Details
66
67If you need detailed information about a specific tool's parameters:
68
69```bash
70python .claude/skills/mcp-skills/executor.py --skill magicui --describe tool_name
71```
72
73This loads ONLY that tool's schema, not all tools.
74
75## Examples
76
77### Example 1: Simple tool call
78
79User: "Get Magic UI button components"
80
81Your workflow:
821. Identify tool: `getButtons`
832. Generate call JSON
843. Execute:
85
86```bash
87python .claude/skills/mcp-skills/executor.py --skill magicui --call '{"tool": "getButtons", "arguments": {}}'
88```
89
90### Example 2: Get tool details first
91
92```bash
93python .claude/skills/mcp-skills/executor.py --skill magicui --describe getTextAnimations
94```
95
96Returns the full schema, then you can generate the appropriate call.
97
98## Error Handling
99
100If the executor returns an error:
101- Check the tool name is correct
102- Verify required arguments are provided
103- Ensure the MCP server is accessible
104
105## Performance Notes
106
107Context usage comparison for this skill:
108
109| Scenario | MCP (preload) | Skill (dynamic) |
110|----------|---------------|-----------------|
111| Idle | 4000 tokens | 100 tokens |
112| Active | 4000 tokens | 5k tokens |
113| Executing | 4000 tokens | 0 tokens |
114
115Savings: ~-25% reduction in typical usage
116
117---
118
119*This skill was auto-generated from an MCP server configuration.*
120*Generator: mcp_to_skill.py*