nocobase-app-upgrade
Skill này làm gì
Skill này chuyển một ứng dụng NocoBase sang bản phát hành mới hơn của mẫu mà nó được tạo từ đó, mà không làm mất thay đổi của chủ sở hữu. Skill dành cho người muốn cập nhật phiên bản NocoBase của mình.
Khi nào nên dùng
- ✓Khi bạn yêu cầu nâng cấp hoặc cập nhật NocoBase trong ứng dụng của mình.
- ✓Khi có bản phát hành mẫu NocoBase mới và bạn muốn ứng dụng nhận các thay đổi của nó.
- ✓Khi bạn muốn đưa các gói lõi NocoBase mới nhất vào dự án mà không hoàn tác công việc của mình.
Liên kết skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/app/app-skills/skills/nocobase-app-upgrade/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể nâng cấp ứng dụng NocoBase của tôi lên bản mẫu mới nhất và giữ các trang tùy chỉnh không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI so sánh bản phát hành mẫu cũ và mới để xem mẫu đã thay đổi gì. Sau đó nó quyết định cách mỗi thay đổi áp dụng vào dự án của bạn, từng file một, và giữ các chỉnh sửa của bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Mã tùy chỉnh của tôi có bị mất không?
Skill được xây dựng để giữ các thay đổi của bạn. Nó hợp nhất từng file thay vì sao chép một mẫu mới đè lên dự án của bạn.
Vì sao không sao chép mẫu mới?
Một bản sao mới sẽ ghi đè lên công việc của bạn.
Nó chỉ cập nhật các gói npm sao?
Không. Nó bao quát bản phát hành mẫu mà ứng dụng của bạn được tạo từ đó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10081
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
nocobase-app-development
25kGiúp agent của bạn xây dựng trang, tuyến, dữ liệu, quyền và kiểm thử cho một ứng dụng kinh doanh NocoBase 3 hoàn chỉnh.
shadcn
25kGiúp agent của bạn tìm, thêm, sửa và tạo kiểu cho các thành phần shadcn/ui trong dự án web, dùng tài liệu chính thức và registry của chúng.
nocobase-app-plugin-development
25kGiúp agent của bạn tạo và duy trì plugin NocoBase 3 trong một ứng dụng có sẵn, gồm phần server, client, cơ sở dữ liệu và đăng ký.
nocobase-deployment
25kGiúp agent của bạn lên kế hoạch, build, triển khai và kiểm tra một ứng dụng NocoBase 3 trên máy chủ Studio, Node.js hoặc Docker.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.