magic-ui-generator – skill Thiết kế & UI cho agent AI
Sử dụng Magic của 21st.dev để tạo, so sánh và tích hợp nhiều biến thể component UI sẵn sàng cho production.
Cài skill magic-ui-generator bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/magic-ui-generator-4db7c.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /magic-ui-generator – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/magic-ui-generator-4db7c.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $magic-ui-generator – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/magic-ui-generator-4db7c.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /magic-ui-generator – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/magic-ui-generator-4db7c.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /magic-ui-generator – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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: 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.
Skill liên quan
- mailtrap-managing-contacts – Quản lý contact, danh sách, phân khúc, trường tùy chỉnh, nhập dữ liệu, đồng bộ CRM và…
- makepad-2-0-animation – Hướng dẫn Makepad 2.0 về animation; dùng khi xây dựng hoặc gỡ lỗi mã UI Makepad.
- makepad-animation – QUAN TRỌNG: Dùng cho hệ thống animation của Makepad. Kích hoạt khi gặp: makepad…
- makepad-skills – Kỹ năng phát triển giao diện Makepad cho ứng dụng Rust: thiết lập, mẫu thiết kế, shader…
- markstream-nuxt – Tích hợp markstream-vue vào Nuxt 3 hoặc 4 với ranh giới client an toàn cho SSR, các chế…
- markstream-svelte – Tích hợp renderer markstream-svelte (beta) vào Svelte 5 hoặc SvelteKit với runes, CSS…
- markstream-vue2 – Tích hợp markstream-vue2 vào Vue 2.6 hoặc 2.7 với quyết định đúng về Composition API…
- markstream-vue2-vite – Tích hợp markstream-vue2 vào Vue 2 cùng Vite với import worker đã bundle, thứ tự CSS…