Skip to content
cccskills
FreePublished on GitHub

antd-migration

Update Ant Design projects, mainly from v4 to v5, by reviewing changed component APIs, replacing removed features, and migrating theme settings. The skill also guides use of the official tool for automated code changes.

OriginalShow the original description

Migrate between Ant Design major versions. Use when upgrading from antd v4 to v5 or addressing breaking changes in component APIs.

See how to install

Good for

  • Upgrading an Ant Design project from v4 to v5
  • Replacing removed components and deprecated properties
  • Migrating Less theme settings to theme tokens

Files included (1)

  • SKILL.md1.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Ant Design Migration Guide

Migrate Ant Design projects between major versions, primarily v4 to v5.

When to Use

  • Upgrading from antd v4 to v5
  • Addressing deprecated component APIs
  • Replacing removed components or features
  • Converting from Less to CSS-in-JS styling

Instructions

  1. Review the migration guide at https://ant.design/docs/react/migration-v5
  2. Key migration steps from v4 to v5:
    • Replace less theme customization with ConfigProvider theme tokens
    • Update removed components: BackTop → FloatButton.BackTop, Comment → use @ant-design/compatible
    • Replace message.useMessage(), notification.useNotification(), modal.useModal() hooks
    • Update deprecated props (check migration guide for full list)
  3. Use the @ant-design/codemod-v5 tool for automated migrations
  4. For the complete breaking changes list, fetch https://ant.design/llms-full.txt

Notes

  • Ant Design v5 drops Less in favor of CSS-in-JS
  • Class name prefixes changed; if you used ant- prefix class names, update to dynamic class names
  • Some component APIs have changed; check the migration guide for each component

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

antd-commit-msg

FreeSummary

Write a single-line commit message for Ant Design by reading staged changes, the changes selected for the next commit. It summarizes the full commit intent and follows the style of recent repository commits.

  • Write a message for staged changes
  • Match the style of recent commits
  • Summarize changes across multiple files in one line
ant-design/ant-design99.8KUpdated Oct 18, 2026

Look up Ant Design React components in official documentation to find available settings, default values, and usage examples. Check subcomponents and methods, and consult type definitions in the antd package when TypeScript details are needed.

  • Checking component settings and default values
  • Finding usage examples and demo code
  • Looking up available subcomponents and methods
ant-design/ant-design99.8KUpdated Oct 18, 2026

antd-create-pr

FreeSummary

Prepare Ant Design pull requests from all changes on a branch. It uses official templates, drafts an English title and a Chinese or English body, and asks for approval before creating the pull request.

  • Summarize all branch changes for a pull request
  • Draft a title and body using an official template
  • Check the target branch and change type
ant-design/ant-design99.8KUpdated Oct 18, 2026

antd-issue-reply

FreeSummary

Review Ant Design GitHub issues and prepare responses, labels, and closure recommendations. It distinguishes bugs from feature requests, checks bot answers, and presents a complete plan for approval before making changes.

  • Draft responses to unanswered issues
  • Classify bugs and feature requests
  • Review dosubot answers
ant-design/ant-design99.8KUpdated Oct 18, 2026

antd-test-review

FreeSummary

Review Ant Design tests to decide whether they should be kept, rewritten, or removed. Examine documented behavior and existing coverage to identify duplicate checks or assertions that merely repeat implementation details, with concise reasons for each conclusion.

  • Deciding whether a test should be kept, rewritten, or removed
  • Finding assertions that merely repeat implementation details
  • Checking for duplicate test coverage
ant-design/ant-design99.8KUpdated Oct 18, 2026

Customize Ant Design colors, spacing, corners, and typography using design tokens, shared values that control appearance. Configure global styles, individual components, dark mode, and CSS variables through ConfigProvider, and extract computed theme values when needed.

  • Matching interface colors and typography to a design
  • Configuring a dark theme
  • Adjusting the appearance of individual components
ant-design/ant-design99.8KUpdated Oct 18, 2026

See all skills by ant-design

Report a problem with this skill