Commit Graph

16 Commits

Author SHA1 Message Date
afc163 3fa014764e feat: add antd upgrade command for self-updating the CLI (#123)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 10:22:00 +08:00
afc163 eca9f6165e fix: opt-out auto bug reporting in SKILL.md and MCP prompt (#85)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 19:19:29 +08:00
afc163 b0275e236d docs: add v3 support implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 18:59:23 +08:00
afc163 aad2fc0738 feat: add antd v3 support (#77)
* docs: add antd v3 support design spec

Design for adding antd 3.x support to enable migration assistance
and legacy project queries. Covers data extraction, command support
matrix, and enhanced v3→v4 migration knowledge.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add antd v3 support

- Add v3 data extraction with demo format compatibility
- Generate v3.json and v3.26.20.json data files
- Add v3-to-v4 migration knowledge module
- Return UNSUPPORTED_VERSION_FEATURE for token/semantic on v3
- Update spec.md with v3 support documentation

Closes #66

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address PR review comments

- Fix regex \Z anchor to $ for JS compatibility in demo extractor
- Fix v3 theming docs URL (3x.ant.design)
- Remove redundant Tree filterTreeNode migration entry
- Correct Table render description (signature unchanged)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: update design spec for v3 support

- Add language tag to code block
- Fix v3 theming docs URL to 3x.ant.design
- Update migration module path to match implementation
- Correct BackTop and Less variables migration notes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address remaining PR review comments

- Fix enMatch regex to use lookahead for zh-CN section
- Make JSX code block regex more flexible (jsx or js)
- Correct ConfigProvider migration description (introduced in v4)
- Update design doc with correct module path and migration notes
- Update snapshot for v3 Watermark component

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add comprehensive v3 test coverage

- Add e2e tests for `antd migrate 3 4` command
- Add v3 error tests for token and semantic commands
- Add v3 version detection tests
- Add v3 data loading tests (components, snapshots)
- Add tests for v3-specific components (Mention, Icon, LocaleProvider)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 18:54:02 +08:00
afc163 aef438a5c0 docs: remove unimplemented --detail flag and utoo references from design spec
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 14:07:22 +08:00
afc163 419f16a7a4 docs: fix contradictory browser detection description in spec 2026-03-27 14:07:22 +08:00
afc163 3ea51ff830 docs: add env command design spec and implementation plan 2026-03-27 14:07:22 +08:00
afc163 86d648b026 docs: fix design doc function signatures to match implementation
- Remove `lang` from listComponents, getComponentDemo, getSemanticStructure opts
- Add language tag to architecture diagram code block

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 12:28:56 +08:00
afc163 466541a13a docs: add MCP Prompts to antd mcp server spec 2026-03-24 23:45:35 +08:00
afc163 fae3d7a788 docs: refine antd mcp server spec with tool schemas and implementation details 2026-03-24 23:45:35 +08:00
afc163 ee76319c10 docs: add antd mcp server design spec 2026-03-24 23:45:35 +08:00
afc163 e68f519a0b docs: add ecosystem peerDeps design spec and implementation plan
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 16:37:44 +08:00
afc163 86e1c69272 docs: add spec and plan for bug report commands 2026-03-23 19:15:53 -07:00
afc163 e2f81c0624 docs: add agent skill file and installation guides (#19)
* docs: add bug fixes round 2 plan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: add agent skill file and update README with installation guides

Add docs/skill.md — a scenario-driven skill file that teaches code agents
when and how to use each @ant-design/cli command. Update both READMEs with
installation instructions for Claude Code, Cursor, Codex, and Gemini CLI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add Claude Code skill frontmatter and improve agent install guides

- Add YAML frontmatter to docs/skill.md (name, description, allowed-tools)
  so it works as a proper Claude Code skill when copied to .claude/skills/
- Update README install instructions: Claude Code uses skill directory,
  Cursor uses .mdc rule, Codex/Gemini append to their config files
- Remove redundant "When to Use" section (covered by frontmatter description)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: restructure skill to skills/ directory and simplify install guide

- Move docs/skill.md to skills/antd/SKILL.md (follows skills standard)
- Rename src/commands/diff.ts to changelog.ts (matches actual command name)
- Replace per-agent install guides with `npx skills add`
- Fix incorrect `antd changelog diff` and `antd diff` references
- Update package.json files field to include skills/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: restore CLI install instructions in README

Keep npm/pnpm/bun global install as the primary installation method,
with skill-based install as a supplementary option.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 14:59:39 +08:00
afc163 bea6c0d1c2 feat: add 4 new checks to antd doctor (dayjs-duplicate, cssinjs-duplicate, cssinjs-compat, icons-compat) (#4)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 16:44:28 +08:00
afc163 d879a4ee56 fix: improve list command with correct categories, bilingual names, and since version (#2)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 15:38:56 +08:00