Show HN: Ant-design/CLI โ€“ Offline CLI for Ant Design docs, lint and migration Ant Design released an offline CLI tool that provides instant access to component documentation, migration guides, and linting for antd versions 3 through 6. The tool bundles all metadata locally, supports 16 commands including prop lookup and cross-version API diffing, and integrates with AI coding agents through a skills protocol and MCP server for IDE support. Ant Design on your command line. Query component knowledge, analyze project usage, and guide migrations โ€” fully offline. Code agents Claude Code, Codex, Gemini CLI write better antd code when they have instant access to the right API data. This CLI gives them exactly that โ€” every prop, token, demo, and changelog entry for antd v3 / v4 / v5 / v6 , bundled locally, queryable in milliseconds. npx skills add ant-design/ant-design-cli install as an agent skill - ๐Ÿ“ฆ Fully offline โ€” All metadata ships with the package. No network calls, no latency, no API keys. - ๐ŸŽฏ Version-accurate โ€” 55+ per-minor snapshots across v3/v4/v5/v6. Query the exact API surface of antd@5.3.0 , not just "latest v5". - ๐Ÿค– Agent-optimized โ€” --format json on every command. Structured errors with codes and suggestions. Clean stdout/stderr separation. - ๐ŸŒ Bilingual โ€” Every component name, description, and doc has both English and Chinese. Switch with --lang zh . - ๐Ÿ”ฎ Smart matching โ€” Typo Buttn ? The CLI suggests Button using Levenshtein distance, with first-letter preference. - ๐Ÿงฉ 16 commands โ€” From prop lookup to project-wide lint, from design token queries to cross-version API diffing. - ๐Ÿ”Œ MCP server โ€” antd mcp starts a stdio server for native IDE integration Claude Desktop, Cursor . npm install -g @ant-design/cli Other package managers pnpm add -g @ant-design/cli bun add -g @ant-design/cli The CLI ships with a skill file /ant-design/ant-design-cli/blob/main/skills/antd/SKILL.md that teaches code agents when and how to use each command: npx skills add ant-design/ant-design-cli Or simply tell your code agent: Install @ant-design/cli and the antd skill from ant-design/ant-design-cli The agent will handle npm install , npx skills add , and start using the CLI automatically. Works with Claude Code https://claude.ai/code , Cursor https://cursor.sh , Codex https://openai.com/codex , Gemini CLI https://github.com/google-gemini/gemini-cli , and any agent supporting the skills https://github.com/nicepkg/agent-skills protocol. For IDEs that support Model Context Protocol https://modelcontextprotocol.io , the CLI can run as an MCP server: { "mcpServers": { "antd": { "command": "antd", "args": "mcp" } } } To pin a specific antd version, add "--version", "5.20.0" to the args array. This exposes 7 tools antd list , antd info , antd doc , antd demo , antd token , antd semantic , antd changelog and 2 prompts antd-expert , antd-page-generator for native IDE integration. antd list All components with versions antd info Button Component props, types, defaults antd doc Button Full markdown documentation antd demo Select basic Runnable demo source code antd token DatePicker Design Token values v5+ antd semantic Table classNames / styles structure antd changelog 4.24.0 5.0.0 Select API diff across versions antd doctor Diagnose project issues antd env Collect env info for bug reports antd usage ./src Analyze antd imports in project antd lint ./src Check deprecated APIs & best practices antd migrate 3 4 v3 โ†’ v4 migration guide antd migrate 4 5 --apply ./src Agent-ready migration prompt antd mcp Start MCP server for IDE integration antd upgrade Upgrade CLI to latest version | Command | Description | |---|---| antd list | since versions antd info