Offline CLI for querying, debugging, migrating, and analyzing Ant Design (antd) v4, v5, and v6 projects.

CCM score
48 of 100
skills.sh installs
1.5K
GitHub stars
142
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers component API lookup, full docs, demos, design tokens, semantic classNames, changelogs, and version migrations
  • Includes project tooling: antd usage for component statistics, antd lint with --only rule categories, and antd doctor for environment checks
  • Enforces version-matched answers by passing --version or auto-detecting antd from node_modules, with --format json for parsable output
  • Designed for agents writing or debugging antd code, and can also run as an MCP server exposing seven query tools

Install

$ npx -y skills add ant-design/antd-skill --skill antd -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Ant Design CLI

You have access to @ant-design/cli — a local CLI tool with bundled antd metadata for v4/v5/v6. Use it to query component knowledge, analyze projects, and guide migrations. All data is offline, no network needed.

Setup

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 npm install -g @ant-design/cli to update before continuing.

Always use --format json for structured output you can parse programmatically.

Scenarios

1. Writing antd component code

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

Workflow: antd info → understand props → antd demo → grab a working example → write code.

Details

Repository
github.com/ant-design/antd-skill
Categories
Frontend & UI Code, Technical Documentation, CLI & Terminal
First seen
Jun 3, 2026

More from ant-design/antd-skill

All 2