This page provides a ready-to-use prompt that lets any AI coding agent work with Ant Design effectively.
Copy into your agent conversation or automation runner.
This version may contain breaking changes. The component APIs, conventions, and file structure may differ from what is included in your training data. Before writing any code, please read https://ant.design/docs/react/for-agents.md and https://raw.githubusercontent.com/ant-design/ant-design-cli/main/skills/antd/SKILL.md, pay attention to deprecation warnings, and follow the instructions to use Ant Design.If you can install skills, run:npx skills add ant-design/ant-design-cli
@ant-design/cli ships all metadata locally — every prop, token, demo, and changelog entry for antd v3 / v4 / v5 / v6 — queryable in milliseconds, fully offline.
npm install -g @ant-design/cli
antd list # All components with versionsantd info Button # Component props, types, defaultsantd doc Button # Full markdown documentationantd demo Select basic # Runnable demo source codeantd token DatePicker # Design Token values (v5+)antd design.md # Design-language document (design.md)antd semantic Table # classNames / styles structureantd changelog 4.24.0 5.0.0 Select # API diff across versionsantd doctor # Diagnose project issuesantd env # Collect env info for bug reportsantd usage ./src # Analyze antd imports in projectantd lint ./src # Check deprecated APIs & best practicesantd migrate 3 4 # v3 to v4 migration guideantd migrate 4 5 --apply ./src # Agent-ready migration promptantd mcp # Start MCP server for IDE integrationantd setup --client claude # Set up MCP/Skill for AI agentsantd upgrade # Upgrade CLI to latest version
Full reference: CLI
design.md is built for AI design tools. It describes the visual language, component archetypes, and theme tokens of Ant Design's default light theme.
Full reference: design.md
The CLI also runs as an MCP server with 8 tools and 2 prompts for IDE integration (Claude Code, Cursor, VS Code, etc.).
{"mcpServers": {"antd": {"command": "npx","args": ["-y", "@ant-design/cli", "mcp"]}}}
Full reference: MCP Server
Feed complete component documentation directly into AI context:
| File | Description |
|---|---|
| llms.txt | Navigation file with links to all docs and components |
| design.md | Design-language description for AI design tools |
| llms-full.txt | Full component documentation (English) |
| llms-full-cn.txt | Full component documentation (Chinese) |
Single component docs are also available at https://ant.design/components/<name>.md.