agent coding skill risk: low
Magic UI Variations Generator
Instructs the model to analyze UI requirements, generate multiple distinct design variations using Magic by 21st.dev, present options side-by-side, and integrate the selected produ…
- External action: low
SKILL 1 file
SKILL.md
--- name: antigravity-awesome-skills-magic-ui-generator-f9692a98 description: "Utilizes Magic by 21st.dev to generate, compare, and integrate multiple production-ready UI component variations." --- # Magic UI Generator Leverage [Magic by 21st.dev](https://21st.dev/magic) to build modern, responsive UI components using an AI-native workflow that prioritizes choice and design excellence. ## Context This skill leverages Magic by 21st.dev to build modern, responsive UI components. Instead of generating a single standard solution, it focuses on providing multiple design variations to choose from, drawing inspiration from a curated library of real-world components and premium design patterns (Shadcn UI, Magic UI, Aceternity, etc.). ## When to Use Trigger this skill whenever: - A new UI component is requested (e.g., pricing tables, contact forms, hero sections). - Enhancing an existing UI element with animations, better styling, or advanced features. - Brainstorming different design directions for a specific feature. - Professional logos or icons are needed (via the built-in [SVGL](https://svgl.app/) integration). ## Execution Workflow 1. **Analyze Requirements**: Review the component description. Ensure the target output aligns with the project's stack (e.g., Next.js, TypeScript, Tailwind CSS). Define clear constraints for accessibility and responsiveness. 2. **Generate Variations**: Interface with the Magic MCP server or use the `browser_subagent` to explore 21st.dev/magic to generate _several distinct, unconventional styles_ for the requested component. - **Pro Tip**: Use descriptive prompts pushing for modern aesthetics: "avant-garde SaaS pricing table with glassmorphism and animated borders" or "highly immersive contact form with dynamic floating labels." 3. **Present Options**: Briefly describe the generated variations side-by-side. Highlight stylistic differences, layout approaches, and premium features (sticky headers, hover animations, etc.). 4. **Integrate Selection**: Once a favorite variation is chosen: - Integrate the fully functional, production-ready TypeScript code. - Ensure dependencies (`lucide-react`, `framer-motion`) are installed. - Handle proper props, types, and responsive behaviors. ## Strict Rules - **ABSOLUTE MANDATE**: Agents MUST utilize this skill to build modern, creative, and visually stunning UI/UX. DO NOT build in common, generic, or safe styles. Push boundaries. - **Choice First**: Always offer multiple premium design variations before writing the final code to the project. - **Clean Code**: Ensure all generated code is clean TypeScript, accessible, and responsive. - **Full Ownership**: Treat all generated components as fully owned. ## Limitations - Use this skill only when the task clearly matches the scope described above. - Do not treat the output as a substitute for environment-specific validation, testing, or expert review. - Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
REQUIRED CONTEXT
- component description
- target tech stack
OPTIONAL CONTEXT
- accessibility constraints
- responsiveness requirements
TOOLS REQUIRED
- browser_subagent
- Magic MCP server
ROLES & RULES
- Agents MUST utilize this skill to build modern, creative, and visually stunning UI/UX
- DO NOT build in common, generic, or safe styles
- Always offer multiple premium design variations before writing the final code to the project
- Ensure all generated code is clean TypeScript, accessible, and responsive
- Treat all generated components as fully owned
- Use this skill only when the task clearly matches the scope described above
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing
EXPECTED OUTPUT
- Format
- markdown
- Constraints
- offer multiple design variations before final code
- produce clean accessible TypeScript
- ensure responsiveness and dependencies
SUCCESS CRITERIA
- Build modern, creative, and visually stunning UI/UX
- Offer multiple premium design variations before writing final code
- Ensure clean TypeScript, accessible, and responsive code
CAVEATS
- Missing context
- Exact integration steps or credentials for Magic by 21st.dev / MCP server
- Preferred output format for side-by-side comparison (table, markdown, etc.)
- Project-specific tech stack details beyond the examples given
- Ambiguities
- "Interface with the Magic MCP server or use the `browser_subagent`" – tool names and exact usage are undefined.
- Does not specify how many variations to generate or exact criteria for 'distinct, unconventional styles'.
QUALITY
- OVERALL
- 0.75
- CLARITY
- 0.82
- SPECIFICITY
- 0.78
- REUSABILITY
- 0.72
- COMPLETENESS
- 0.68
IMPROVEMENT SUGGESTIONS
- Add a required placeholder for the target component description and tech stack at the top of the prompt.
- Specify a default number of variations (e.g., 'Generate 3–5 variations') and a consistent presentation template.
- Include a short example of the 'Present Options' step output to enforce consistent formatting.
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR AGENT
- Rapid App MVP Prototyperagentcoding
- AI-First Design Handoff Specs Generatoragentcoding
- Test-Driven Development Workflow Rulesagentcoding
- Structured Autonomy Implementation Agentagentcoding
- PROGRESS.md Manager for Agentic Codingagentcoding
- Hard Bug Diagnosis Disciplineagentcoding
- Git Development Branch Finisheragentcoding
- Code Review Feedback Reception Protocolagentcoding
- Systematic Debugging Process Guideagentcoding
- Matplotlib Python Plotting Guideagentcoding
- LaTeX Paper PDF Compileragentcoding
- Full Output Enforcement for Code Generationagentcoding
- PyTorch Geometric GNN Implementation Guideagentcoding
- Premium React UI Design Architectagentcoding
- Astropy Python Astronomy Library Guideagentcoding
- Book SFT Style Transfer Pipelineagentcoding
- Event Sourcing and CQRS Architectagentcoding
- FluidSim Python CFD Simulation Guideagentcoding
- NetworkX Python Graph Analysis Toolkitagentcoding
- Phase-Gated Debugging Protocol Enforceragentcoding
- SimPy Discrete-Event Simulation Guideagentcoding
- Phase-Gated Code Debugging Protocolagentcoding
- Biopython Molecular Biology Toolkit Guideagentcoding
- Haskell Advanced Type Systems Expertagentcoding
- Anime.js Complex Animation Workflowagentcoding