nocobase-app-upgrade
하는 일
이 스킬은 NocoBase 앱을 만들 때 사용한 템플릿의 더 새로운 릴리스로 옮기되, 소유자의 변경 사항은 잃지 않게 합니다. NocoBase 버전을 업데이트하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓NocoBase 애플리케이션을 업그레이드하거나 업데이트해 달라고 요청할 때.
- ✓새 NocoBase 템플릿 릴리스가 나와서 앱이 그 변경을 받기를 원할 때.
- ✓자신의 작업을 되돌리지 않고 최신 NocoBase 코어 패키지를 프로젝트에 가져오고 싶을 때.
스킬 링크
https://github.com/nocobase/nocobase/blob/v3-develop/packages/app/app-skills/skills/nocobase-app-upgrade/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 NocoBase 앱을 최신 템플릿 릴리스로 업그레이드하고, 사용자 정의 페이지는 유지해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 이전 템플릿 릴리스와 새 릴리스를 비교해 템플릿이 무엇을 바꿨는지 확인합니다. 그다음 각 변경이 프로젝트의 파일마다 어떻게 적용될지 결정하며, 사용자의 편집은 유지합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Upgrading the application template
pnpm create @nocobase/app copied a template into the user's hands and left no link back to it, so a newer template release arrives only by someone merging it in.
The difficulty is telling the template's changes from the user's. Comparing the application against the latest template cannot: a file that differs may have been changed by either side, or both. So compare the two template releases instead — the baseline already merged and the target — and decide file by file how each of their differences lands here.
BASE nocobase.defaultTemplateVersion — the release already merged in
TARGET the release being moved to
PROJECT the application as the user has it now
BASE → TARGET what the template changed — the work to bring in
BASE → PROJECT what the user changed — the work that must survive
defaultTemplateVersion is not the application's version. It records how far template source has been merged, and moves only after a merge actually happens.
The diff is information. Decide each file yourself and write every edit by hand — a text-merge tool applied to the project would reconcile only what its hunks happen to touch, leaving the user's own files unexamined and step 5 undone.
Never: overwrite the application with a fresh template copy; bump defaultTemplateVersion without merging the source; resolve a conflict by discarding the user's side; run git checkout --, git restore, git reset --hard, git stash, git clean, or rm -rf against the working tree; regenerate with create-app and copy the user's code across.
When the App already supplies the project plugin development Skill, check for a missed global plugin Skill migration even if no template version change is needed. This cleanup does not advance defaultTemplateVersion.
1. Secure a way back
Git project: require a clean tree (ask the user to commit anything outstanding — do not stash or commit it for them), record git rev-parse HEAD, then git checkout -b template-upgrade-<target>. Editing the project directly is safe on a branch, and it is what lets typecheck/test/build actually run.
Not a Git project: do not touch it. Offer git init plus a commit, or a full copy in a scratch directory to upgrade and verify before moving back. Never proceed with no way back.
2. Identify the source
node -p "JSON.stringify(require('./package.json').nocobase, null, 2)"
templatePackage names the template; defaultTemplateVersion is BASE. Treat that package name as authoritative even when it names a template this Skill has never seen. If it is missing, the application predates the field: inspect templateKind, dependency history, plugin registrations, database directories, and published template versions, then confirm the source package before fetching. templateKind: "app" alone does not distinguish Default from Examples, while templateKind: "hub" identifies the discontinued Hub template, which has no newer version to upgrade to: tell the user rather than picking another template as BASE. If defaultTemplateVersion itself is missing or was bumped without a merge, the baseline is unknown — work it out with the user from Git history rather than guessing, since too old a baseline replays changes already present and too new a one skips changes never applied.
If nocobase.templatePackage is missing, use the confirmed package name for TEMPLATE instead of the manifest lookup below, then record it in the manifest during the agreed source merge.
3. Select the release channel and fetch both releases
Resolve the user's requested channel before choosing TARGET. An explicit version takes precedence. For a beta upgrade, use the template's beta dist-tag; for an explicit latest upgrade, use its latest dist-tag. If the user only asks to upgrade, retain the baseline's channel: use beta for a beta baseline and latest for a stable baseline; clarify other prerelease channels instead of guessing. State the selected channel and resolved version in the upgrade plan.
The tags are independent pointers, not a version ordering: beta tracks beta releases, while latest is npm's default tag and can still point to an older beta before a stable release exists. Do not assume latest is newer or stable, or choose the highest version across all channels. If the user asks for a stable release but latest resolves to a prerelease, ex
자주 묻는 질문
사용자 정의 코드가 사라지나요?
아니요. 이 스킬은 변경 사항을 지키도록 만들어졌으며, 새 템플릿을 통째로 덮어쓰지 않고 파일마다 병합합니다.
왜 새 템플릿을 복사하지 않나요?
새 복사본은 사용자의 작업을 덮어쓰기 때문입니다.
npm 패키지만 업데이트하나요?
아니요. 앱을 만들 때 사용한 템플릿 릴리스 전체를 다룹니다.
상세 정보
작성자의 원본 설명
Upgrade this application to a newer release of the template it was generated from, which is how this application moves to a newer NocoBase version. Users rarely think in terms of templates, so use it whenever the user asks to upgrade or update NocoBase, the NocoBase core, kernel or framework version, or the @nocobase packages as a whole — for example "upgrade NocoBase", "update the NocoBase core version", "move to the latest NocoBase release", "升级 NocoBase", "升级 NocoBase 内核版本", "更新 NocoBase 到最新版" — as well as when they ask to upgrade the template, pull in template changes, move to a newer temp
repo: nocobase/nocobase
인기도
- GitHub 스타
- 25k
- 순위
- #10081
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
nocobase-app-development
25k에이전트가 완전한 NocoBase 3 업무 애플리케이션을 위해 페이지, 라우트, 데이터, 권한, 테스트를 만들도록 돕습니다.
shadcn
25k에이전트가 웹 프로젝트에서 공식 문서와 레지스트리를 사용해 shadcn/ui 컴포넌트를 찾고, 추가하고, 고치고, 스타일을 입히도록 돕습니다.
nocobase-app-plugin-development
25k에이전트가 기존 NocoBase 3 앱 안에서 서버, 클라이언트, 데이터베이스, 등록 부분을 포함한 플러그인을 만들고 관리하도록 돕습니다.
nocobase-deployment
25k에이전트가 Studio, Node.js, Docker 서버에서 NocoBase 3 애플리케이션을 계획하고, 빌드하고, 배포하고, 점검하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.