antd
What it does
This skill gives an agent accurate reference data for the Ant Design component library. It is for developers building or debugging React screens that use antd.
When to use it
- βWhen you are writing or changing an Ant Design component in your code.
- βWhen you need to find the right props, a working demo or the design tokens for a component.
- βWhen you are upgrading between Ant Design versions or debugging an antd issue.
Skill link
https://github.com/ant-design/ant-design-pro/blob/master/.claude/skills/antd/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAdd an Ant Design date picker to this form. Check the available props first and use a working example.β
5 new skills a week. 1 minute to read.
How it works
The agent uses a local command-line tool with bundled Ant Design data for several versions. It looks up each component's props, demos and theme tokens, then writes code based on that information instead of memory.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Does it need internet access?
No. The Ant Design data is bundled with the local command-line tool, so lookups work offline.
Which versions does it cover?
Ant Design versions 3, 4, 5 and 6.
Can it help with migrations?
Yes. It can guide migrations between Ant Design versions and analyze antd usage in a project.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 39k
- Ranking position
- #7484
- License
- MIT
- Updated
- 10/28/2026
Comments
- β¦
More skills from this repository
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.