
Antd
- 907 installs
- 124 repo stars
- Updated March 27, 2026
- ant-design/antd-skill
antd is a frontend development skill that queries Ant Design component APIs, semantic tokens, demos, and migration paths offline through the @ant-design/cli for developers building React UIs.
About
antd is an Ant Design skill from ant-design/antd-skill that installs @ant-design/cli with bundled offline metadata for antd v4, v5, and v6. Developers invoke Bash commands such as antd and antd bug-cli to look up component props, semantic design tokens, usage demos, and version migration guidance without relying on memory or network calls. The skill triggers on antd imports, component debugging, token theming questions, and migration between antd major versions. Reach for antd when implementing or refactoring React interfaces that use Ant Design and you need authoritative API references or project usage analysis from the local CLI.
- Queries component props, demos, and semantic classNames via offline @ant-design/cli
- Supports v4/v5/v6 metadata lookup
- Always recommends antd info and antd demo before writing code
- Handles version migration analysis
Antd by the numbers
- 907 all-time installs (skills.sh)
- +41 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #419 of 2,245 Frontend Development skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ant-design/antd-skill --skill antdAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 907 |
|---|---|
| repo stars | ★ 124 |
| Last updated | March 27, 2026 |
| Repository | ant-design/antd-skill ↗ |
How do you look up Ant Design APIs offline?
Install to query Ant Design component APIs, demos, semantic tokens, and migration paths without relying on memory.
Who is it for?
React developers using Ant Design who need fast, offline-accurate API lookups, token references, and version migration help during implementation.
Skip if: Skip antd when the project uses a different component library such as MUI, Chakra, or plain Tailwind with no antd imports.
When should I use this skill?
Trigger on antd imports, Ant Design component questions, semantic token theming, antd version migrations, or antd bug debugging in a React project.
What you get
Accurate antd component props, token values, demo snippets, bug diagnostics, and migration guidance pulled from local CLI metadata.
- Component API references
- Semantic token values
- Migration and bug-diagnostic CLI output
By the numbers
- Bundles offline antd metadata for v4, v5, and v6 via @ant-design/cli
Files
Ant Design CLI
You have access to @ant-design/cli — a local CLI tool with bundled antd metadata for v4/v5/v6. Use it to query component knowledge, analyze projects, and guide migrations. All data is offline, no network needed.
Setup
Before first use, check if the CLI is installed. If not, install it automatically:
which antd || npm install -g @ant-design/cliAfter running any command, if the output contains an "Update available" notice, run npm install -g @ant-design/cli to update before continuing.
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
antd info Button --format json
# Get a working demo as starting point
antd demo Button basic --format json
# Check semantic classNames/styles for custom styling
antd semantic Button --format json
# Check component-level design tokens for theming
antd token Button --format jsonWorkflow: 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):
antd doc Table --format json # full markdown docs for Table
antd doc Table --lang zh # Chinese docs3. Debugging antd issues
When code isn't working as expected or the user reports an antd bug:
# Check if the prop exists for the user's antd version
antd info Select --version 5.12.0 --format json
# Check if the prop is deprecated
antd lint ./src/components/MyForm.tsx --format json
# Diagnose project-level configuration issues
antd doctor --format jsonWorkflow: antd doctor → check environment → 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., v4 → v5):
# Get full migration checklist
antd migrate 4 5 --format json
# Check migration for a specific component
antd migrate 4 5 --component Select --format json
# See what changed between two versions
antd changelog 4.24.0 5.0.0 --format json
# See changes for a specific component
antd changelog 4.24.0 5.0.0 Select --format jsonWorkflow: 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
antd usage ./src --format json
# Filter to a specific component
antd usage ./src --filter Form --format json
# Lint for best practice violations
antd lint ./src --format json
# Check only specific rule categories
antd lint ./src --only deprecated --format json
antd lint ./src --only a11y --format json
antd lint ./src --only performance --format json6. Checking changelogs and version history
When the user asks about what changed in a version:
# Specific version changelog
antd changelog 5.22.0 --format json
# Version range (both ends inclusive)
antd changelog 5.21.0..5.24.0 --format json7. Exploring available components
When the user is choosing which component to use:
# List all components with categories
antd list --format json
# List components for a specific antd version
antd list --version 5.0.0 --format json8. Reporting antd bugs
When you encounter a confirmed antd component bug that can't be resolved locally:
# Step 1: Preview for user review
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
# Step 2: Show to user, ask for confirmation
# Step 3: Submit after user confirms
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" \
--submit9. Auto-reporting CLI issues
IMPORTANT: Whenever you use any `antd` CLI command and notice something wrong, you should proactively initiate a bug report using `antd bug-cli`.
Trigger conditions — report a CLI bug when you observe any of these:
- A command crashes or exits with an unexpected error
- A command returns clearly incorrect data (e.g.
antd info Buttonshows wrong props, missing props, or props from the wrong version) - A command's output doesn't match its documented behavior (e.g.
--format jsonreturns non-JSON,--version Xis ignored) - A command returns empty or missing data when it shouldn't (e.g.
antd demo Buttonreturns no demos,antd token Buttonreturns no tokens for v5+) - Inconsistencies between commands (e.g.
antd listshows a component butantd infosays it doesn't exist)
Workflow: 1. You notice something wrong while using the CLI 2. Gather evidence: the exact command you ran, what was returned, and what you expected 3. Preview the bug report for the user:
antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
--description "When querying Button props for version 5.12.0, the output includes props that don't exist in that version" \
--steps "1. Run: antd info Button --version 5.12.0 --format json" \
--expected "Props matching antd 5.12.0 Button API" \
--actual "Props include 'classNames' which was added in 5.16.0" \
--format json4. Show the report to the user: "I noticed an issue with the CLI while working. Here's a bug report — shall I submit it?" 5. Submit after user confirms:
antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
--description "..." \
--steps "..." \
--expected "..." \
--actual "..." \
--submitKey principle: You are a quality feedback loop for the CLI. Don't silently work around CLI issues — report them so they get fixed. Always confirm with the user before submitting.
10. Using as MCP server
If working in an IDE that supports MCP (Claude Desktop, Cursor, etc.), the CLI can also run as an MCP server, exposing all knowledge-query tools directly:
{
"mcpServers": {
"antd": {
"command": "antd",
"args": ["mcp", "--version", "5.20.0"]
}
}
}This provides 7 tools (antd_list, antd_info, antd_doc, antd_demo, antd_token, antd_semantic, antd_changelog) and 2 prompts (antd-expert, antd-page-generator) via MCP protocol.
Global Flags
| Flag | Purpose |
|---|---|
--format json | Structured output — always use this |
--version <v> | Target a specific antd version (e.g. 5.20.0) |
--lang zh | Chinese output (default: en) |
--detail | Include extra fields (description, since, deprecated, FAQ) |
Key Rules
1. Always query before writing — Don't guess antd APIs from memory. Run antd info first. 2. Match the user's version — If the project uses antd 4.x, pass --version 4.24.0. The CLI auto-detects from node_modules if no flag is given. 3. Use `--format json` — Every command supports it. Parse the JSON output rather than regex-matching text output. 4. Check before suggesting migration — Run antd changelog <v1> <v2> and antd migrate before advising on version upgrades. 5. Lint after changes — After writing or modifying antd code, run antd lint on the changed files to catch deprecated or problematic usage. 6. Report antd bugs — When you encounter an antd component bug, use antd bug to report it. Always preview first, get user confirmation, then submit. 7. Auto-report CLI issues — If any antd command crashes, returns wrong data, or behaves inconsistently, proactively use antd bug-cli to report it. You are the quality feedback loop for the CLI — don't silently work around issues.
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Related skills
How it compares
Pick antd for offline Ant Design API and migration lookups; use general React skills when the UI stack is not Ant Design.
FAQ
Does the antd skill need internet access?
The antd skill uses @ant-design/cli with bundled offline metadata for antd v4, v5, and v6. Developers query component APIs, tokens, and demos locally without network calls during implementation or migration work.
Which antd versions does the antd skill support?
The antd skill bundles metadata for Ant Design v4, v5, and v6 through @ant-design/cli. Developers can query props, semantic tokens, demos, and migration paths across those major versions from the local CLI.