pro-upgrade
하는 일
이 스킬은 Ant Design Pro 프로젝트의 업그레이드를 안내합니다. Pro 템플릿 위에서 만든 팀이 자신의 작업을 잃지 않고 새 버전으로 옮기려는 경우를 위한 스킬입니다.
사용하는 경우
- ✓Ant Design Pro 프로젝트를 최신 버전으로 업그레이드하고 싶을 때.
- ✓Pro 프로젝트가 공식 템플릿보다 뒤처져 따라잡아야 할 때.
- ✓사용자 정의 코드를 유지하면서 프로젝트를 최신 상태로 두고 싶을 때.
스킬 링크
https://github.com/ant-design/ant-design-pro/blob/master/.claude/skills/pro-upgrade/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Ant Design Pro 프로젝트를 최신 템플릿 버전으로 업그레이드하고, 우리의 페이지와 설정은 모두 유지해 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.