antd
Skill261 starsChanged 4 months agoMITView on GitHub
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.
- Installs packages
3 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- ant-design/ant-design-proedited, first seen Oct 8, 2026
- whz1106/whz-harnessword for word, first seen Sep 24, 2026
- dbDev-code/w-skillsedited, first seen Mar 25, 2026
Other versions3 projects use a version of this.
Word for word · 1
- whz1106/whz-harness★ 2100% same
Edited · 2
- ant-design/ant-design-pro★ 39k76% same
- dbDev-code/w-skills★ 173% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Before first use, check if the CLI is installed.
- Very specific: line 29
After running any command, if the output contains an "Update available" notice, run antd upgrade to update before continuing.
- Distinctive: line 38
Before writing any antd component code, look up its API first — don't rely on memory.
- Distinctive: line 61
When you need comprehensive component docs (not just props):
- Distinctive: line 70
When code isn't working as expected or the user reports an antd bug:
- Distinctive: line 90
When the user wants to upgrade antd (e.g., v3 → v4 or v4 → v5):
- Distinctive: line 114
When the user wants to understand how antd is used in their project:
- Distinctive: line 134
When the user asks about what changed in a version:
- Distinctive: line 146
When the user is choosing which component to use:
- Distinctive: line 158
When you need to understand the project's antd setup, or prepare info for a bug report:
- Distinctive: line 175
When the user asks you to report an antd bug:
- Distinctive: line 203
When the user asks you to report a CLI bug, or explicitly requests help filing one:
- Very specific: line 226
Opt-out: If the environment variable ANTD_NO_AUTO_REPORT=1 is set, skip all bug-reporting suggestions entirely — do not suggest antd bug or …
- Very specific: line 230
When the user wants to update @ant-design/cli to the latest version, or when an "Update available" notice appears:
- Distinctive: line 241
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 …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ant Design CLI
You have access to @ant-design/cli — a local CLI tool with bundled antd metadata for v4/v5/v6 (plus migration guides for v3 → v4, v4 → v5, 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 antd upgrade 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 json
# Get the overall design language (design.md): colors, typography, spacing, radius + principles
antd design.md --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:
# Collect full environment snapshot (system, deps, browsers, build tools)
antd env --format json
# 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 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
antd migrate 3 4 --format json # v3 → v4
antd migrate 4 5 --format json # v4 → v5
# Check migration for a specific component
antd migrate 4 5 --component Select --format json
# Generate agent-friendly auto-migration prompt (does not modify files)
antd migrate 4 5 --apply ./src --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. 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)
antd env
# Structured JSON for programmatic use
antd env --format json
# Scan a specific project directory
antd env ./my-project --format jsonCollects: OS, Node, package managers (npm/pnpm/yarn/bun/utoo), npm registry, browsers, core deps (antd/react/dayjs), all @ant-design/* and rc-* packages, and build tools (umi/vite/webpack/typescript/etc.).
9. Reporting antd bugs
When the user asks you to report an antd bug:
# Step 0: Collect environment info for reference (optional — antd bug already embeds basic env)
# Use the output to cross-check versions or attach extra details to the bug report
antd env --format json
# 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" \
--submit10. Reporting CLI issues
When the user asks you to report a CLI bug, or explicitly requests help filing one:
# 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 jsonShow the report to the user and confirm before submitting:
antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
--description "..." \
--steps "..." \
--expected "..." \
--actual "..." \
--submitOpt-out: If the environment variable ANTD_NO_AUTO_REPORT=1 is set, skip all bug-reporting suggestions entirely — do not suggest antd bug or antd bug-cli unless the user directly asks.
11. Upgrading the CLI
When the user wants to update @ant-design/cli to the latest version, or when an "Update available" notice appears:
# Upgrade to the latest version (auto-detects package manager)
antd upgradeThe command detects which package manager installed the CLI (npm, yarn, pnpm, bun, cnpm, utoo) and runs the appropriate upgrade command. If detection fails, it suggests the manual command.
12. 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 8 tools (antd_list, antd_info, antd_doc, antd_demo, antd_token, antd_design_md, antd_semantic, antd_changelog) and 2 prompts (antd-expert, antd-page-generator) via MCP protocol.
Global Flags
| Flag | Purpose |
--format <format> | Output format: json, text, or markdown (agents should prefer json) |
--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) |
-V, --cli-version | Print CLI version and exit |
Key Rules
- Always query before writing — Don't guess antd APIs from memory. Run
antd infofirst. - Match the user's version — Knowledge queries (
list/info/doc/demo/token/semantic/changelog) support antd v4+. If the project uses antd 4.x/5.x/6.x, pass--version 4.24.0/5.24.0/6.x. For antd v3 projects, useantd migrate 3 4first. - Use
--format json— Every command supports it. Parse the JSON output rather than regex-matching text output. - Check before suggesting migration — Run
antd changelog <v1> <v2>andantd migratebefore advising on version upgrades. - Lint after changes — After writing or modifying antd code, run
antd linton the changed files to catch deprecated or problematic usage. - Report antd bugs — When the user asks to report an antd bug, use
antd bug. Always preview first, get user confirmation, then submit. - Report CLI issues — When the user asks about a CLI problem, use
antd bug-clito help them file a report. Always preview first, get user confirmation, then submit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

