nocobase-app-upgrade
Fungsinya
Skill ini memindahkan aplikasi NocoBase ke rilis template yang lebih baru dari template tempat aplikasi itu dibuat, tanpa kehilangan perubahan pemiliknya. Cocok untuk orang yang ingin memperbarui versi NocoBase mereka.
Kapan dipakai
- βSaat Anda meminta untuk meningkatkan atau memperbarui NocoBase di aplikasi Anda.
- βSaat rilis template NocoBase yang baru tersedia dan Anda ingin aplikasi Anda mendapatkan perubahannya.
- βSaat Anda ingin membawa paket inti NocoBase terbaru ke proyek tanpa membatalkan pekerjaan Anda.
Link skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/app/app-skills/skills/nocobase-app-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
βBisakah Anda meningkatkan aplikasi NocoBase saya ke rilis template terbaru dan tetap mempertahankan halaman kustom saya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI membandingkan rilis template lama dan baru untuk melihat apa yang diubah. Lalu AI memutuskan cara setiap perubahan diterapkan ke proyek Anda, file demi file, dengan mempertahankan suntingan Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah kode kustom saya akan hilang?
Skill dirancang untuk menjaga perubahan Anda. Skill menggabungkan file demi file, bukan menyalin template baru di atas proyek Anda.
Mengapa tidak menyalin template baru?
Salinan baru akan menimpa pekerjaan Anda.
Apakah hanya memperbarui paket npm?
Tidak. Skill mencakup rilis template tempat aplikasi Anda dibuat.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 25k
- Peringkat
- #10081
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
nocobase-app-development
25kMembantu agent Anda membangun halaman, rute, data, izin, dan tes untuk aplikasi bisnis NocoBase 3 yang lengkap.
shadcn
25kMembantu agent Anda menemukan, menambahkan, memperbaiki, dan memberi gaya komponen shadcn/ui pada proyek web, dengan memakai dokumentasi resmi dan registry-nya.
nocobase-app-plugin-development
25kMembantu agent Anda membuat dan memelihara plugin NocoBase 3 di dalam aplikasi yang sudah ada, mencakup bagian server, klien, database, dan registrasi.
nocobase-deployment
25kMembantu agent Anda merencanakan, membangun, men-deploy, dan memeriksa aplikasi NocoBase 3 di server Studio, Node.js, atau Docker.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.