Skill library

Agent skill Frontend

Antd

Build or refine reusable components for a web interface.

  • UI components

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add ant-design/ant-design-cli --skill antd --agent claude-code --yes

Check this file in your project.claude/skills/antd/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add ant-design/ant-design-cli --skill antd

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use the project-local `@ant-design/cli` package and its `antd` binary. The fixture used CLI and React `antd` 6.7.2. Check which published `antd` Skill is loaded if both variants are present.

View operation manual

What this skill helps with

  • Build or refine reusable components for a web interface.

Good for

  • Component implementation
Skill name
antd
Scenario
Theme one React primary action from the local CLI reference
Deliverable
A locally verified Button variant with API evidence, computed color and input behavior.
Skill name
antd

Define a component task with an observable result

A request with an unclear outcome

Copy a Button from the live docs without checking our version.

Prop support and styling hooks can differ from the package actually installed.

A workflow with observable results

  1. Read Button API for the installed version
  2. Compare component tokens and semantic hooks
  3. Verify the actual themed action

Ant Design CLI operation manual

Look up the exact component API and then verify the rendered action and theme in the project.

Replace the bracketed details with your own project and target.

  1. Read Button API for the installed version

    Use project-local metadata before changing a button.

    Prompt · Step 1
    Use the `antd` skill from ant-design/ant-design-cli for [React action]. Check the locked antd version and project-local CLI version first. Run `antd info Button --version [installed antd version] --format json` with the local binary and identify the correct native button, primary and disabled props. Record whether the CLI has metadata for this exact version.
  2. Compare component tokens and semantic hooks

    Choose theme or component styles from their supported scopes.

    Prompt · Step 2
    Use the ant-design/ant-design-cli `antd` skill and run the local `antd demo Button basic`, `antd semantic Button`, and `antd token Button`, each with `--format json`. For [approved action styling], identify whether an existing ConfigProvider token or a supported semantic hook solves the problem. Implement the smallest scoped change and keep native disabled behavior visible.
  3. Verify the actual themed action

    Compare computed color and keyboard activation in a local preview.

    • The identified UI package and CLI metadata versions are recorded.
    • Theme, keyboard activation and disabled behavior all have direct evidence.
    Prompt · Step 3
    Use the ant-design/ant-design-cli `antd` skill to build [local action route]. Inspect the computed primary color and verify Tab and Enter activate the enabled button once. Check the disabled button cannot trigger the action. Return the CLI version, API evidence, component path and observed behavior.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

A global CLI points at the wrong packageReference
Command or reference
SKILL.md · Setup
Examples
Use the project-local binary and read the package's own version.
The design needs a scoped styleReference
Command or reference
SKILL.md · Writing antd component code
Examples
Inspect `semantic` and `token` output before adding selectors.

Ant Design CLI troubleshooting

Does `antd --version` print the CLI version?

In CLI 6.7.2, `--version` expects the target antd version for a lookup. Read the installed `@ant-design/cli` package metadata to record its own version.