antd

Query Ant Design component APIs, demos, tokens, and migrations via the antd CLI.

1|Updated May 15, 2026
One-click install
npx skills add https://github.com/NeptuneKit/TritonKit --skill antd-neptunekit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: antd
Source: https://github.com/NeptuneKit/TritonKit/tree/main/.agents/skills/antd
Command: npx skills add https://github.com/NeptuneKit/TritonKit --skill antd-neptunekit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @ant-design/cli, and includes references (resource) components.

What problem does it solve? It prevents agents from guessing Ant Design APIs from memory by providing an offline CLI source of truth for component props, demos, tokens, semantic selectors, changelogs, and migration guidance across antd v4/v5/v6. ## Core Features & Use Cases - Component Lookup: Query props, demos, docs, design tokens, and semantic selectors with antd info, antd demo, antd token, and antd semantic before writing component code. - Debugging & Linting: Diagnose project issues with antd env, antd doctor, and antd lint for deprecated, a11y, or performance violations. - Migration & Changelogs: Plan version upgrades with antd migrate and antd changelog, including component-specific breaking changes. - Use Case: When upgrading a project from antd v4 to v5, run antd migrate 4 5 --format json to get the checklist, apply fixes, then verify with antd lint ./src. ## Quick Start Ask the agent to look up the Button component's props and a basic demo using the antd CLI before writing any antd code.

Frequently Asked Questions about antd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I look up Ant Design component props before writing code?▼

Run `antd info <Component> --format json` to get the exact props for a component, then `antd demo <Component> basic --format json` for a working example. Always query before writing rather than relying on memory.

How to migrate a project from antd v4 to v5?▼

Run `antd migrate 4 5 --format json` for the full checklist and `antd changelog 4.24.0 5.0.0 --format json` for breaking changes. After applying fixes, verify with `antd lint ./src --format json` to catch deprecated usage.

Does the antd CLI support querying older antd versions?▼

Yes, knowledge queries like info, doc, demo, token, and changelog support antd v4 and later. Pass `--version 4.24.0` or `--version 5.24.0` to match your project; for antd v3 projects, start with `antd migrate 3 4`.

How do I debug antd issues in my project?▼

Collect an environment snapshot with `antd env --format json`, check configuration with `antd doctor`, verify the API against your exact version with `antd info --version X`, and run `antd lint` on the affected files.

Why does antd lint report deprecated component usage?▼

antd lint scans source files for deprecated props, a11y violations, and performance issues against the target antd version. Filter results with `--only deprecated`, `--only a11y`, or `--only performance` to focus on specific rule categories.

Can the antd CLI run as an MCP server in my IDE?▼

Yes, run `antd mcp --version 5.20.0` to expose eight knowledge-query tools and two prompts over the MCP protocol. This works in MCP-compatible IDEs such as Claude Desktop and Cursor.