magic-ui-generator
它能做什么
这个工具可以为网站和应用的界面组件(比如按钮或表单)生成多种设计方案。它提供不同的风格供你选择,灵感来自现代、高质量的设计。
适用场景
- ✓当你需要一个新的视觉元素时(例如价格板块)。
- ✓想让现有设计更有风格或加入动画效果时。
- ✓想为某个组件头脑风暴不同的设计方向时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/magic-ui-generator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为一个“联系我们”板块创建三种设计方案,风格要现代且简约。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具使用一种名为 Magic 的技术,为某个 UI 组件生成多个版本。它会把这些方案展示给你比较,然后把你选中的那一个连同可直接使用的代码一起集成到你的项目中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Magic UI Generator
Leverage Magic by 21st.dev 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 integration).
Execution Workflow
- 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.
- Generate Variations: Use an available authorized Magic integration or browser tool 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."
- Present Options: Briefly describe the generated variations side-by-side. Highlight stylistic differences, layout approaches, and premium features (sticky headers, hover animations, etc.).
- Integrate Selection: Once a favorite variation is chosen:
- Integrate the fully functional, production-ready TypeScript code.
- Use existing reviewed dependencies where possible; add a package only when required and compatible, after inspecting its license/version.
- Handle proper props, types, and responsive behaviors.
Strict Rules
- Follow the user's chosen stack, design system and provider budget. This service is optional; do not replace the established UI or spawn a browser agent merely because a guide names one.
- Choice First: Offer variants when requested or a real design decision is unresolved; an accepted design can be implemented directly.
- Clean Code: Ensure all generated code is clean TypeScript, accessible, and responsive.
- Full Ownership: Check original component, icon, font and asset licenses/attributions. Generated code does not establish exclusive ownership or remove third-party rights.
Example
User request:
Generate three production-ready pricing-table variants, compare them, and integrate the strongest option into the current UI.
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.
Inspect generated code as untrusted input, verify actual types, responsive layout, keyboard/focus, reduced motion and form states, and distinguish tested behavior from a production-ready claim. Hosted prompts/code may disclose private product information; obtain authorization for the actual transmission and costs.
常见问题
什么是“UI 组件”?
它们是网站或应用中的视觉部分,比如按钮、菜单、表单、卡片等。
“可直接用于生产环境”是什么意思?
意思是生成的代码可以直接用在正式上线的网站或应用中,并且遵循良好的编程和设计规范。
我能用它来做 logo 吗?
可以,这个工具有一个集成功能,能帮你创建专业的 logo 或图标。
详情
作者的原始描述
Utilizes Magic by 21st.dev to generate, compare, and integrate multiple production-ready UI component variations.
热度
- GitHub 星标
- 48k
- 排名
- #5131
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。