Agent skill

Ant Design Skill: antd 6, Pro and X Decision Guide

The ant-design skill makes an AI coding agent query the antd CLI before writing component code, then decide on tokens, providers, server rendering and accessibility checks across antd, Pro and X.

Install
git clone https://github.com/ant-design/antd-skill.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the ant-design skill?

The ant-design skill is a decision guide in the ant-design/antd-skill repository for antd 6, Ant Design Pro 5 and Ant Design X v2. Its mandatory rules have the agent look up component APIs with the offline antd CLI, theme with tokens first, avoid internal selectors and lint every change.

Before it writes any antd component code, the ant-design skill tells the agent to query the component API with antd info <Component> --format json. It is a decision guide for antd 6, Ant Design Pro 5 and Ant Design X v2, not a tutorial.

It lives at skills/ant-design in the ant-design/antd-skill repository, a small collection with a second skill named antd that focuses only on the offline @ant-design/cli workflow. Each is a single SKILL.md following one procedure.

Rules the agent must follow

  • Query the component API first with antd info, and add --format json to every antd CLI command.
  • Match the project version with --version, or let the CLI detect it from local node_modules.
  • After changing antd code, run antd lint on the changed path.
  • Use only documented antd, Pro and X APIs. Do not invent props, events or component names, and do not rely on internal DOM or .ant-* selectors.
  • Map a component name to its official route slug in lowercase kebab-case, such as TreeSelect to tree-select, then read the docs in Chinese first with an English fallback.
  • If a CLI command crashes or returns wrong data, prepare an antd bug-cli preview for you to confirm instead of silently working around it.

Three layers, one guide

LayerPackagesWhat the skill guides
Core antdantd@^6 with React 18 to 19Component selection, theming and tokens, SSR, accessibility, performance
Proant-design-pro@^5 and @ant-design/pro-componentsLayouts, routing, access control and CRUD schema direction
X@ant-design/x@^2AI and chat UI, message and tool schema, streaming state

Process and defaults

The agent first classifies the layer, core, Pro or X, then confirms version, rendering mode and data scale. It queries the CLI before official docs, then decides and returns a short rationale with risks and verification points.

Defaults are TypeScript, tokens first and then classNames and styles, and one root ConfigProvider. For server rendering the baseline adds StyleProvider. Theme priority runs from global to component to alias tokens. For general token thinking, see design-token.

The regression checklist

  • One root ConfigProvider, with SSR style order and hydration verified.
  • Tokens first, with no broad global .ant-* overrides.
  • Tables have a stable rowKey, and sort, filter and pagination share one entry point.
  • A remote Select disables local filtering when it uses remote search.
  • Upload makes controlled or uncontrolled mode explicit, with a failure and retry path.
  • X streaming supports stop and retry, with deterministic tool rendering.

Who the ant-design skill is for

Best for

  • React teams on antd 6 who want the agent to stop guessing props and check them offline.
  • Admin dashboards and CRUD screens built on Pro layouts, routing and access.
  • AI chat interfaces built with Ant Design X, including streaming and tool rendering.
  • Maintenance and upgrades, since the repository says v5 migration guidance is included.

Not for

  • Beginners who want end-user tutorials. The README says the skill focuses on agent decisions instead.
  • Projects using another component library. If you work with Tailwind and shadcn components, see shadcn.
  • Building WordPress pages, since the output is React code.

Use it with UiChemy

The skill produces React code for antd, which WordPress does not run as it is. If your product UI uses antd and your marketing site runs on WordPress, share the same color and radius tokens between them.

Design the marketing pages in Figma with those tokens, then convert them with UiChemy Figma to WordPress. Click Get Started on uichemy.com. For an accessibility pass on the finished pages, see accessibility-audit.