pro-upgrade
यह क्या करती है
यह स्किल Ant Design Pro प्रोजेक्ट के अपग्रेड का मार्गदर्शन देती है। यह उन टीमों के लिए है जिन्होंने Pro टेम्पलेट पर काम बनाया है और अपना काम खोए बिना नए संस्करण पर जाना चाहती हैं।
कब इस्तेमाल करें
- ✓जब आप अपने Ant Design Pro प्रोजेक्ट को नवीनतम संस्करण पर अपग्रेड करना चाहें।
- ✓जब आपका Pro प्रोजेक्ट आधिकारिक टेम्पलेट से पीछे रह गया हो और उसे पकड़ना हो।
- ✓जब आप अपना कस्टम कोड बचाकर प्रोजेक्ट अद्यतन रखना चाहें।
Skill का लिंक
https://github.com/ant-design/ant-design-pro/blob/master/.claude/skills/pro-upgrade/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे Ant Design Pro प्रोजेक्ट को नवीनतम टेम्पलेट संस्करण पर अपग्रेड कीजिए, और हमारे सभी अपने पेज और सेटिंग बचाए रखिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले जाँचता है कि आपके बदलाव कमिट हैं, फिर नवीनतम आधिकारिक टेम्पलेट डाउनलोड करता है। वह आपकी फ़ाइलों को टेम्पलेट की फ़ाइलों और आपकी अपनी व्यावसायिक फ़ाइलों में छाँटता है, उनकी तुलना करता है, और आपका काम सुरक्षित रखते हुए टेम्पलेट के बदलाव मिलाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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:
- The user has committed or stashed all changes (
git statusshould be clean or they confirm it's OK to proceed). - 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:
| Path | Notes |
|---|---|
package.json |
dependencies, scripts, devDependencies only |
config/config.ts |
framework config |
config/routes.ts |
structure only — preserve user-added routes |
config/defaultSettings.ts |
layout/theme defaults |
config/proxy.ts |
structure only — preserve user targets |
src/app.tsx |
runtime config |
src/access.ts |
permission definitions |
src/global.tsx |
global side effects |
src/loading.tsx |
loading component |
src/requestErrorConfig.ts |
request interceptor |
src/typings.d.ts |
global type declarations |
tsconfig.json |
TypeScript config |
biome.json or biome.jsonc |
linter 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 pagessrc/components/**— user componentssrc/models/**— user modelssrc/services/**/*.ts— custom service files (NOT theant-design-pro/subdirectory)src/locales/**— user translations (framework keys may need updating)src/utils/**— user utilitiesmock/**— 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 runnpm run openapiafter 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
n
अक्सर पूछे जाने वाले सवाल
क्या अपग्रेड से पहले मुझे अपने बदलाव सहेजने होंगे?
हाँ। स्किल अपग्रेड शुरू होने से पहले आपसे बदलाव कमिट या स्टैश करने को कहती है।
क्या मेरे अपने पेज ओवरराइट होंगे?
नहीं। आपकी लिखी व्यावसायिक फ़ाइलें रखी जाती हैं, और आपके जोड़े गए रूट सुरक्षित रहते हैं।
टेम्पलेट क्या है?
यह आधिकारिक Ant Design Pro स्टार्टर प्रोजेक्ट है, जिससे आपका ऐप बना था।
जानकारी
लेखक का मूल विवरण
Use when the user wants to upgrade their Ant Design Pro project to the latest version. Triggers on: upgrade pro, pro upgrade, migrate pro, update pro, 升级, 迁移项目, "how to upgrade", "update to latest", "keep project up to date".
लोकप्रियता
- GitHub स्टार
- 39k
- रैंकिंग में स्थान
- #7485
- लाइसेंस
- MIT
- अपडेट की गई
- 28/10/2026
कमेंट
- …
इस repository की और skills
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।