pro-upgrade
Fungsinya
Skill ini memandu peningkatan proyek Ant Design Pro. Skill ini untuk tim yang membangun di atas templat Pro dan ingin pindah ke versi yang lebih baru tanpa kehilangan pekerjaan mereka sendiri.
Kapan dipakai
- โSaat Anda ingin meningkatkan proyek Ant Design Pro ke versi terbaru.
- โSaat proyek Pro Anda sudah tertinggal dari templat resmi dan perlu menyusul.
- โSaat Anda ingin proyek tetap mutakhir sambil mempertahankan kode kustom Anda.
Link skill
https://github.com/ant-design/ant-design-pro/blob/master/.claude/skills/pro-upgrade/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โTingkatkan proyek Ant Design Pro kami ke versi templat terbaru, dan pertahankan semua halaman dan pengaturan kami sendiri.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent lebih dulu memeriksa bahwa perubahan Anda sudah di-commit, lalu mengunduh templat resmi terbaru. Agent memilah file Anda menjadi file yang dimiliki templat dan file bisnis Anda sendiri, membandingkannya, dan menggabungkan perubahan templat sambil menjaga pekerjaan Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah saya perlu menyimpan perubahan saya dulu?
Ya. Skill ini meminta Anda melakukan commit atau stash perubahan sebelum peningkatan dimulai.
Apakah halaman saya akan tertimpa?
Tidak. File bisnis yang Anda tulis dipertahankan, dan rute yang Anda tambahkan tetap dipelihara.
Apa itu templat?
Itu adalah proyek starter Ant Design Pro resmi tempat aplikasi Anda dibangun.
Detail
Deskripsi asli dari pembuat
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".
Popularitas
- Bintang GitHub
- 39k
- Peringkat
- #7485
- Lisensi
- MIT
- Diperbarui
- 28/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.