Agent skill Frontend
Antd
Build or refine reusable components for a web interface.
Install the skill
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 --yesCheck 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 antdSelect 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 manualWhat 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- Repository
ant-design/ant-design-cli
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
- Read Button API for the installed version
- Compare component tokens and semantic hooks
- 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.
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.