Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nocobase-app-upgrade

БесплатноБез исполняемых скриптовНе проверен

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…

nocobaseот nocobase★ 25 082 звезды на 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

For a retry on an existing upgrade branch, verify its original checkpoint and pinned artifacts, review the pending upgrade edits, and resume the failed step. For a new upgrade in a Git project, require a clean tree (ask the user to commit anything outstanding — do not stash or commit it for them) and record git rev-parse HEAD. After the read-only artifact and access checks in steps 3 and 3a pass, create the branch with git checkout -b template-upgrade-<target> before presenting the plan. Wait for the user's agreement before changing application files, registry routing, dependencies, configuration or data.

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 templatePackage is @nocobase/app-template-multi-app, @nocobase/app-template-sub-app or @nocobase/app-template-multi-portal, switch to the scenario template migration workflow. It selects an Enterprise release, resolves the exact original archive and uses the Enterprise tool to preview and apply the source migration.

For a same-edition upgrade of Professional or Enterprise, compare two releases of the recorded edition package (@nocobase/app-template-pro or @nocobase/app-template-enterprise). Its defaultTemplateVersion is the edition release. The upstreamTemplateVersion and upstreamTemplateCommit fields identify the Default source used to build that release. When the user explicitly requests Community → Professional, Community → Enterprise or Professional → Enterprise, follow switching editions alongside the shared source merge. Read the source package and version from the project and select the destination separately. Keep the recorded identity until acceptance passes.

If nocobase.templatePackage is missing, use the confirmed package name for BASE_PACKAGE instead of the manifest lookup below, then record it in the manifest during the agreed source merge

Полный SKILL.md на GitHub

Установить nocobase-app-upgrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/application-cookie-isolation.mdreferences/data-change-upgrade.mdreferences/database-upgrades.mdreferences/edge-cases.mdreferences/edition-transition.mdreferences/form-feedback-upgrade.mdreferences/lifecycle-versioning-upgrade.mdreferences/list-feedback-upgrade.mdreferences/list-navigation-upgrade.mdreferences/notification-template-upgrade.mdreferences/notification-upgrade.mdreferences/plugin-development-skill.mdreferences/realtime-upgrade.mdreferences/scenario-template-migration.mdreferences/settings-navigation-upgrade.mdreferences/submission-upgrade.mdreferences/theme-upgrade.mdreferences/versioned-upgrade-verification.md

FAQ

Что делает скилл nocobase-app-upgrade?

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 template version, or reconcile the application with upstream. Also use for applications upgrading from the retired multi-app, sub-app or multi-portal templates to Enterprise, and for explicit Community to Professional or Enterprise and Professional to Enterprise requests, including “社区版转专业版” and “专业版转企业版”. Do not use for ordinary feature development, for upgrading a single dependency, or for upgrading an already deployed build on a server, which the app installer handles.

Как установить скилл nocobase-app-upgrade?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nocobase-app-upgrade запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nocobase-app-upgrade с