antd
Expert Ant Design (antd) assistant for component API lookups, debugging, project analysis, and version migrations. Provides offline, accurate metadata for v3/v4/v5/v6 directly in your CLI.
Introduction
The Ant Design (antd) CLI is a specialized engineering tool designed to streamline development workflows for projects using the Ant Design ecosystem. It acts as an offline, version-aware knowledge base, allowing developers and AI agents to query accurate component props, semantic structures, design tokens, and changelogs without the need for external network calls. By providing precise metadata snapshots for versions v3, v4, v5, and v6, the tool eliminates the ambiguity often associated with managing complex component libraries across different legacy and modern versions.
Key features and capabilities:
- Instant lookup of component APIs, including types, defaults, and deprecated props.
- Version-specific migration checklists for seamless upgrades between major releases.
- Project-wide analysis for component usage patterns and best-practice linting.
- Automated environment snapshots to assist in debugging and reporting issues.
- Access to runnable demo source code and semantic class names for custom styling.
- Full support for design tokens to maintain consistent branding and theming.
Usage notes and practical tips:
- Installation: Ensure the tool is installed globally via
npm install -g @ant-design/clior use it as an integrated agent skill. - Input/Output: Use the
--format jsonflag on every command to receive structured output optimized for programmatic parsing by software agents. - Offline Reliability: The tool functions entirely offline, making it ideal for CI/CD pipelines or restricted development environments.
- Versioning: Specify
--versionto query exact API surfaces corresponding to your project’s specific dependencies rather than generic documentation. - Diagnostics: Run
antd doctorto diagnose common configuration issues, React version incompatibilities, and duplicate dependencies. - MCP Support: The CLI can run as an MCP server, enabling seamless integration with AI-powered IDEs like Cursor or Claude Desktop.
Repository Stats
- Stars
- 197
- Forks
- 9
- Open Issues
- 6
- Language
- TypeScript
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 3, 2026, 06:03 AM