본문으로 건너뛰기
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(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고