Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ant-design avatar

Pro Upgrade

  • 66 installs
  • 38.6k repo stars
  • Updated August 4, 2026
  • ant-design/ant-design-pro

pro-upgrade is a skill that upgrades an Ant Design Pro project to the latest version by diffing framework files against the official template while preserving business code.

About

This skill upgrades an existing Ant Design Pro project to the latest version by comparing it against the official template. A developer uses it to classify project files into framework files it diffs against the template and business files it preserves, then merge changes intelligently. It runs antd migration and lint checks and verifies with npm install, lint, and build.

  • Upgrades an Ant Design Pro project against the latest official template
  • Separates framework files (diff vs template) from business files (preserve)
  • Runs antd migration/lint checks then npm install, lint, and build to verify

Pro Upgrade by the numbers

  • 66 all-time installs (skills.sh)
  • Ranked #1,172 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

pro-upgrade capabilities & compatibility

Capabilities
ant design pro · antd
Works with
github
Use cases
refactoring · frontend · devops
IDEs
vscode · cursor ide
From the docs

What pro-upgrade says it does

help users upgrade their Pro-based project to the latest version by comparing it against the official template and intelligently merging changes.
SKILL.md
Separate the user's project files into **framework files** (Pro-owned, rarely customized) and **business files** (user-written, must be preserved).
SKILL.md
npx skills add https://github.com/ant-design/ant-design-pro --skill pro-upgrade

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs66
repo stars38.6k
Last updatedAugust 4, 2026
Repositoryant-design/ant-design-pro

What it does

Upgrade an Ant Design Pro project against the latest template, preserving business code and verifying the build.

Who is it for?

Teams keeping an Ant Design Pro project in sync with the latest official template.

Skip if: Fresh projects or non-Pro antd apps where there is no Pro template baseline to diff against.

When should I use this skill?

The user wants to upgrade, migrate, or update an Ant Design Pro project to the latest version.

What you get

An upgraded Pro project with framework files matching the template, business code preserved, and a passing build.

  • merged framework files
  • dependency version bumps
  • upgrade change summary

By the numbers

  • 7-step upgrade flow
  • framework vs business file classification

Files

SKILL.mdMarkdownGitHub ↗

Ant Design Pro Upgrade Skill

You are an Ant Design Pro upgrade assistant. Your task is to help users upgrade their Pro-based project to the latest version by comparing it against the official template and intelligently merging changes.

Preflight

Before starting, confirm:

1. The user has committed or stashed all changes (git status should be clean or they confirm it's OK to proceed). 2. If not clean, remind them to commit or stash their changes first (e.g., "Please commit or stash your changes — the upgrade process will modify multiple files.") and wait for them to confirm.

Upgrade Flow

Step 1 — Fetch the latest template

rm -rf /tmp/ant-design-pro-upgrade
git clone --depth=1 https://github.com/ant-design/ant-design-pro.git /tmp/ant-design-pro-upgrade

Read the template's package.json to confirm its version.

Step 2 — Classify files

Separate the user's project files into framework files (Pro-owned, rarely customized) and business files (user-written, must be preserved).

Framework files — diff these against the template:

PathNotes
package.jsondependencies, scripts, devDependencies only
config/config.tsframework config
config/routes.tsstructure only — preserve user-added routes
config/defaultSettings.tslayout/theme defaults
config/proxy.tsstructure only — preserve user targets
src/app.tsxruntime config
src/access.tspermission definitions
src/global.tsxglobal side effects
src/loading.tsxloading component
src/requestErrorConfig.tsrequest interceptor
src/typings.d.tsglobal type declarations
tsconfig.jsonTypeScript config
biome.json or biome.jsonclinter config
.husky/git hooks
commitlint.config.*commit lint config
src/services/ant-design-pro/auto-generated — do NOT manually edit; regenerate with npm run openapi

Business files — preserve these, only adjust imports/APIs if needed:

  • src/pages/** — user pages
  • src/components/** — user components
  • src/models/** — user models
  • src/services/**/*.ts — custom service files (NOT the ant-design-pro/ subdirectory)
  • src/locales/** — user translations (framework keys may need updating)
  • src/utils/** — user utilities
  • mock/** — user mocks
  • Any other files not listed above

Step 3 — Diff framework files

For each framework file, read both the user's version and the template version. Identify:

  • New dependencies or version bumps in package.json
  • New/changed config options in config/ files
  • Import path changes (e.g., from 'umi'from '@umijs/max')
  • API changes in src/app.tsx, src/access.ts, etc.
  • New files that exist in template but not in user's project

Step 4 — Merge intelligently

Apply changes with these rules:

Framework files — adopt template structure, preserve user customizations:

  • package.json: update dependency versions to match template. Keep any extra deps the user added. If a dependency exists in the user's project but not in the template, assume it is a user customization and preserve it.
  • config/routes.ts: adopt the template's route structure for framework pages, but keep all user-added routes intact.
  • config/proxy.ts: adopt structure, preserve user's proxy targets.
  • Other framework files: adopt the template version, preserving any user customizations that are clearly intentional (comments, extra exports, business logic mixed in).

Business files — minimal changes only:

  • Update import paths if framework modules moved (e.g., 'umi''@umijs/max').
  • Update deprecated API calls if the template shows a new pattern.
  • Never rewrite business logic, restructure components, or change styling approaches unless the old approach is broken.

Auto-generated files:

  • src/services/ant-design-pro/: do NOT edit. Tell the user to run npm run openapi after upgrade.

Step 5 — Antd-specific migration checks

Run these commands to catch antd API changes:

npx antd env --format json
npx antd lint ./src --format json --only deprecated

If the user is upgrading across major antd versions, also run:

npx antd migrate <current_major> <target_major> --format json

Detect the current major version from the user's package.json and the target from the template's.

Address any findings by updating the flagged code.

Step 6 — Install and verify

npm install
npm run lint
npm run build

Fix any errors. Common post-upgrade issues:

  • Type errors from changed APIs → check npx antd info <Component> for current APIs
  • New lint rules from Biome config changes → run npm run biome to auto-fix
  • Missing peer dependencies → check npm install warnings

Step 7 — Cleanup and summarize

rm -rf /tmp/ant-design-pro-upgrade

Output a summary of all changes made, grouped by category:

1. Dependencies updated — list version changes 2. Config changes — what changed in config files 3. Code patterns migrated — import path changes, API updates 4. New files added — any files from the template that didn't exist before 5. Manual review needed — anything you're unsure about or that requires user action

Remind the user to:

  • Run npm run openapi if they use the auto-generated API services
  • Test their application thoroughly
  • Commit the changes

Key Principles

  • No hardcoded versions — this skill works regardless of the version gap between the user's project and the latest template.
  • Preserve business code — only modify what's necessary for framework compatibility.
  • Conservative merging — when uncertain whether a change is a user customization or an outdated pattern, ask the user instead of guessing.
  • Leverage `@ant-design/cli` — use antd migrate, antd lint, antd info for antd-specific checks; don't guess APIs from memory.
  • Clean up — always remove the temporary clone directory.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.