跳到正文
Skillpedia
界面(UI/UX)48k · #5131

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/magic-ui-generator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  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: 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."
  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.
    • 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5131
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能