antd
Fungsinya
Skill ini memberi agent data referensi yang akurat untuk pustaka komponen Ant Design. Skill ini untuk pengembang yang membangun atau memperbaiki layar React yang memakai antd.
Kapan dipakai
- βSaat Anda menulis atau mengubah komponen Ant Design di kode Anda.
- βSaat Anda perlu mencari props yang tepat, demo yang berfungsi, atau design token untuk sebuah komponen.
- βSaat Anda meningkatkan versi Ant Design atau memperbaiki masalah antd.
Link skill
https://github.com/ant-design/ant-design-pro/blob/master/.claude/skills/antd/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTambahkan date picker Ant Design ke formulir ini. Periksa dulu props yang tersedia dan pakai contoh yang berfungsi.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memakai alat command-line lokal dengan data Ant Design bawaan untuk beberapa versi. Agent mencari props, demo, dan token tema setiap komponen, lalu menulis kode berdasarkan informasi itu, bukan dari ingatan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Ant Design CLI
You have access to @ant-design/cli β a local CLI tool with bundled antd metadata for v3/v4/v5/v6. Use it to query component knowledge, analyze projects, and guide migrations. All data is offline, no network needed.
Setup
The CLI is installed as a dev dependency. Use npx antd to run it.
Always use --format json for structured output you can parse programmatically.
Scenarios
1. Writing antd component code
Before writing any antd component code, look up its API first β don't rely on memory.
# Check what props are available
npx antd info Button --format json
# Get a working demo as starting point
npx antd demo Button basic --format json
# Check semantic classNames/styles for custom styling
npx antd semantic Button --format json
# Check component-level design tokens for theming
npx antd token Button --format json
Workflow: antd info β understand props β antd demo β grab a working example β write code.
2. Looking up full documentation
When you need comprehensive component docs (not just props):
npx antd doc Table --format json # full markdown docs for Table
npx antd doc Table --lang zh # Chinese docs
3. Debugging antd issues
When code isn't working as expected or the user reports an antd bug:
# Collect full environment snapshot (system, deps, browsers, build tools)
npx antd env --format json
# Check if the prop exists for the user's antd version
npx antd info Select --version 5.12.0 --format json
# Check if the prop is deprecated
npx antd lint ./src/components/MyForm.tsx --format json
# Diagnose project-level configuration issues
npx antd doctor --format json
Workflow: antd env β capture full environment β antd doctor β check configuration β antd info --version X β verify API against the user's exact version β antd lint β find deprecated or incorrect usage.
4. Migrating between versions
When the user wants to upgrade antd (e.g., v3 β v4 or v4 β v5):
# Get full migration checklist
npx antd migrate 3 4 --format json # v3 β v4
npx antd migrate 4 5 --format json # v4 β v5
# Check migration for a specific component
npx antd migrate 4 5 --component Select --format json
# See what changed between two versions
npx antd changelog 4.24.0 5.0.0 --format json
# See changes for a specific component
npx antd changelog 4.24.0 5.0.0 Select --format json
Workflow: antd migrate β get full checklist β antd changelog <v1> <v2> β understand breaking changes β apply fixes β antd lint β verify no deprecated usage remains.
5. Analyzing project antd usage
When the user wants to understand how antd is used in their project:
# Scan component usage statistics
npx antd usage ./src --format json
# Filter to a specific component
npx antd usage ./src --filter Form --format json
# Lint for best practice violations
npx antd lint ./src --format json
# Check only specific rule categories
npx antd lint ./src --only deprecated --format json
npx antd lint ./src --only a11y --format json
npx antd lint ./src --only performance --format json
6. Checking changelogs and version history
When the user asks about what changed in a version:
# Specific version changelog
npx antd changelog 5.22.0 --format json
# Version range (both ends inclusive)
npx antd changelog 5.21.0..5.24.0 --format json
7. Exploring available components
When the user is choosing which component to use:
# List all components with categories
npx antd list --format json
# List components for a specific antd version
npx antd list --version 5.0.0 --format json
8. Collecting environment info
When you need to understand the project's antd setup, or prepare info for a bug report:
# Full environment snapshot (text β paste into GitHub Issues)
npx antd env
# Structured JSON for programmatic use
npx antd env --format json
# Scan a specific project directory
npx antd env ./my-project --format json
9. Reporting antd bugs
When the user asks you to report an antd bug:
# Step 0: Collect environment info for reference (optional)
npx antd env --format json
# Step 1: Preview for user review
npx antd bug --title "DatePicker crashes when selecting date" \
--reproduction "https://codesandbox.io/s/xxx" \
--steps "1. Open DatePicker 2. Click a date" \
--expected "Date is selected" \
--actual "Component crashes with error" \
--format json
Pertanyaan umum
Apakah butuh akses internet?
Tidak. Data Ant Design sudah dibundel dengan alat command-line lokal, sehingga pencarian bisa dilakukan secara offline.
Versi apa saja yang tercakup?
Ant Design versi 3, 4, 5, dan 6.
Apakah ini bisa membantu migrasi?
Bisa. Skill ini dapat memandu migrasi antarversi Ant Design dan menganalisis pemakaian antd dalam proyek.
Detail
Deskripsi asli dari pembuat
Use when the user's task involves Ant Design (antd) β writing antd components, debugging antd issues, querying antd APIs/props/tokens/demos, migrating between antd versions, or analyzing antd usage in a project. Triggers on antd-related code, imports from 'antd', or explicit antd questions.
Popularitas
- Bintang GitHub
- 39k
- Peringkat
- #7484
- Lisensi
- MIT
- Diperbarui
- 28/10/2026
Komentar
- β¦
Skill lain dari repositori ini
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.