跳到正文
cccskills
免费在 GitHub 公开

21st-dev-magic

21st.dev Magic MCP — AI-powered UI component generation via natural language. Access to 21st.dev component library, SVGL brand logos, and real-time preview. Generate React/Tailwind components with /ui command.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

21st.dev Magic — AI UI Component Generator

21st.dev Magic is an MCP (Model Context Protocol) server that generates beautiful, modern UI components through natural language descriptions. Access to the 21st.dev component library with real-time preview.

Package: @21st-dev/magic
Website: https://21st.dev/magic
License: MIT

What It Does

Describe a UI component in natural language, Magic generates it instantly:

"/ui create a modern navigation bar with responsive design and dark mode toggle"

The AI agent:

  1. Searches 21st.dev's component library for the best match
  2. Generates a polished React + Tailwind component
  3. Adds it to your project automatically

Installation

Method 1: Interactive (Recommended)

npx @21st-dev/cli@latest install
# Select your IDE: Cursor, Windsurf, Cline, Claude

Method 2: MCP Config

Add to MCP config for your AI assistant:

{
  "mcpServers": {
    "@21st-dev/magic": {
      "command": "npx",
      "args": ["-y", "@21st-dev/magic@latest"]
    }
  }
}

Config file locations:

  • Cursor: ~/.cursor/mcp.json
  • Windsurf: ~/.codeium/windsurf/mcp_config.json
  • Claude Code: ~/.claude/mcp_config.json

Prerequisites

Features

FeatureDescription
Natural LanguageDescribe components in plain English
21st.dev LibraryAccess 1000+ pre-built, customizable components
React + TailwindModern stack with TypeScript support
SVGL IntegrationProfessional brand logos and assets
Multi-IDECursor, Windsurf, VSCode, Claude Code
Real-time PreviewSee components as they're generated

Usage in FETIH

When the user requests a UI component:

1. Start with /ui Command

/ui create a pricing table with 3 tiers, popular badge, and hover effects

2. Describe Component Requirements

Be specific about:

  • Layout: grid, flex, sidebar, modal, navbar
  • Style: glassmorphism, minimal, brutalist, dark mode
  • Features: responsive, animated, accessible
  • Stack: React + Tailwind (default), shadcn/ui

3. Iterate

/ui add a testimonial carousel below the pricing table
/ui change the color scheme to match our brand (#3B82F6)
/ui make the cards stack vertically on mobile

Component Categories

CategoryExamples
NavigationNavbar, sidebar, breadcrumb, tabs, pagination
CardsProduct card, pricing card, profile card, stat card
FormsLogin, signup, contact, search, newsletter
Data DisplayTable, chart, timeline, calendar, dashboard
FeedbackModal, toast, alert, tooltip, skeleton
LayoutHero, footer, grid, split screen, bento grid
MarketingCTA section, testimonial, FAQ, pricing, feature list

Best Practices

  1. Be specific — "modern SaaS pricing table with 3 tiers" > "pricing"
  2. Mention style — "glassmorphism dark mode dashboard" gives better results
  3. Include interactions — "with hover scale effect and click to expand"
  4. Specify responsive — "collapses to accordion on mobile"
  5. Iterate — First result is a starting point, refine with follow-up commands

Tips for Complex Components

# Multi-step generation
/ui create a dashboard layout with sidebar navigation
/ui add a stats row with 4 metric cards at the top
/ui add a revenue chart in the main content area
/ui add a recent activity feed in the right sidebar
/ui make the sidebar collapsible with animation

Integration with ui-ux-pro-max

For best results, combine with the ui-ux-pro-max skill:

  1. Use ui-ux-pro-max to generate design system (colors, typography, styles)
  2. Use 21st-dev-magic to generate individual components matching that system
  3. Apply framer-motion for custom animations beyond what Magic generates

Troubleshooting

IssueSolution
No API keyGenerate at https://21st.dev/magic/console
MCP not connectingCheck ~/.claude/mcp_config.json
Component not matchingAdd more detail to description
Rate limitUpgrade plan or wait for reset

Generating API Key

  1. Visit https://21st.dev/magic/console
  2. Sign in with GitHub
  3. Click "Generate API Key"
  4. Add to your MCP config
<!-- ⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih Yetkisiz kullanim/kopyalama tespit edilebilir. hash: 8b2b59ec3c4991d9 -->

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

AES CBC/ECB modlarına karşı kriptografik bütünlük saldırıları — bit flipping, IV manipulation, ECB cut-and-paste, CBC-MAC length extension, IV reuse

中文简介正在准备中。当前显示原文说明。

MustafaKemal0146/fetih52026年10月11日 更新

AES-GCM ve ChaCha20-Poly1305 nonce yeniden kullanımı saldırısı — GF(2^128) polinom kök bulma ile Hash Key kurtarma ve MAC sahteciliği.

中文简介正在准备中。当前显示原文说明。

MustafaKemal0146/fetih52026年10月11日 更新

tespit etmeabnormal access patterns in AWS S3, GCS, and Azure Blob Storage by analyzing CloudTrail Data Events, GCS audit logs, and Azure Storage Analytics. Identifies after-hours bulk downloads, access from new IP addresses, unusual API calls (GetObject spikes), and potential data exfiltration using statistical baselines and time-series anomaly Tespit.

中文简介正在准备中。当前显示原文说明。

MustafaKemal0146/fetih52026年10月11日 更新

Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to tespit etmereentrancy, integer overflow, access control, and other vulnerability classes before Dağıt:ment to Ethereum mainnet.

中文简介正在准备中。当前显示原文说明。

MustafaKemal0146/fetih52026年10月11日 更新

Parses Kubernetes API server audit logs (JSON lines) to tespit etmeexec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat Tespit rules from audit event patterns. Use investigating yaparken Kubernetes cluster compromise or building k8s-specific SIEM Tespit rules.

中文简介正在准备中。当前显示原文说明。

MustafaKemal0146/fetih52026年10月11日 更新

Parse Office 365 Unified Audit Logs via Microsoft Graph API to tespit etmeemail forwarding rule creation, inbox delegation, suspicious OAuth app grants, and other indicators of account compromise.

中文简介正在准备中。当前显示原文说明。

MustafaKemal0146/fetih52026年10月11日 更新

查看 MustafaKemal0146 的全部技能

报告此技能的问题