brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
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
Claude Code
$ npx -y skills add ant-design/ant-design-cli --skill antd --agent claude-code
Codex
$ npx skills add ant-design/ant-design-cli --skill antd -a codex -y
Cursor
$ npx skills add ant-design/ant-design-cli --skill antd -a cursor -y
Gemini CLI
$ npx skills add ant-design/ant-design-cli --skill antd -a gemini-cli -y
GitHub Copilot
$ npx skills add ant-design/ant-design-cli --skill antd -a github-copilot -y
OpenCode
$ npx skills add ant-design/ant-design-cli --skill antd -a opencode -y
Windsurf
$ npx skills add ant-design/ant-design-cli --skill antd -a windsurf -y
name: antd description: > 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. allowed-tools: - Bash(antd *) - Bash(antd bug*) - Bash(antd bug-cli*) - Bash(antd upgrade*) - Bash(npm install -g @ant-design/cli*) - Bash(which antd)
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.
Before first use, check if the CLI is installed. If not, install it automatically:
which antd || npm install -g @ant-design/cli
After 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.**
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 json
**Workflow:** `antd info` → understand props → `antd demo` → grab a working example → write code.
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 docs
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 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.
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 json
**Workflow:** `antd migrate` → get full checklist → `antd changelog <v1> <v2>` → understand breaking changes → apply fixes → `antd lint` → verify no deprecated usage remains.
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 json
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 json
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 json
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 json
Collects: 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.).
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 "Compo
Ant Design on your command line. Query component knowledge, analyze project usage, and guide migrations — fully offline.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.