[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CYCXS59TG6V70CES30X22X":3,"skill-same:01M7CYCXS59TG6V70CES30X22X":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7CYCXS59TG6V70CES30X22X","major-upgrade",null,"Moves an Umbraco package to a new CMS major (for example 17 to 18): finds the breaking changes that hit it, writes an ordered checklist in `docs\u002Fupgrades\u002Fv\u003Cmajor>.md`, and works through it with the builder and reviewer agents. Use for \"upgrade to Umbraco N\", \"support v18\", a new major's beta or RC, or moving from one RC to the next. Not for minor or patch bumps.","mattbrailsford\u002Fumbraco-devkit","mattbrailsford","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F527305?v=4","01M7CY974D4XX1P90YSXQC1T39","Matt Brailsford","01M7CY9751PSRA3EHBH03G936J",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fmajor-upgrade\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: major-upgrade\ndescription: >-\n  Moves an Umbraco package to a new CMS major (for example 17 to 18): finds the breaking\n  changes that hit it, writes an ordered checklist in `docs\u002Fupgrades\u002Fv\u003Cmajor>.md`, and works\n  through it with the builder and reviewer agents. Use for \"upgrade to Umbraco N\", \"support\n  v18\", a new major's beta or RC, or moving from one RC to the next. Not for minor or patch\n  bumps.\nuser-invocable: true\nargument-hint: \u003Ctarget CMS major, e.g. 18>\n---\n\n# major-upgrade\n\nA CMS major upgrade is the same features on a new base, so the `feature-explore` → `feature-design` →\n`feature-plan` pipeline doesn't fit it, and it's far too big for `quick-fix`. This skill is its\nown lane: it plans the upgrade from Umbraco's published breaking changes, then builds it with\nthe same builder → reviewer → smoke → commit gate as `feature-build`.\n\n## Scope\n\n- IN: one hop to one target major. Dependency and target framework bumps, code changes forced\n  by breaking changes or removed obsolete APIs, the frontend's `@umbraco-cms\u002Fbackoffice`\n  bump, the package's own compatibility markers (version, dependency range, marketplace\n  metadata, README), the package's own docs (inventory step 12), and the third-party\n  dependency bumps the user picks from inventory step 10.\n- OUT: new features, refactors the upgrade doesn't force, and dropping an older major the\n  project still supports. Note those in the upgrade file's \"Follow-ups\" section instead.\n  Releasing the upgraded package is also out of scope; it's the project's own release steps.\n\n## Argument\n\n`$ARGUMENTS` is the target major (`18`, `v18`). If empty, ask.\n\n**First run or refresh?** If `docs\u002Fupgrades\u002Fv\u003Cmajor>.md` already exists, an earlier run\nupgraded to a CMS release of this major, usually a beta or RC. This run is a **refresh**: move\nto the newest CMS release of the major (the next RC, or the final release) and handle only\nwhat changed since the release the file records. Skip to \"Refresh\" below. If the file doesn't\nexist and the project already targets that major, say so and stop. If the file targets the\nmajor's final release and its PR is merged, the upgrade is done: skip to \"Archive\" instead.\n\n## Preflight\n\n1. **Current version.** Read the exact `Umbraco.Cms.*` version from `Directory.Packages.props`\n   or the `.csproj` files, and `@umbraco-cms\u002Fbackoffice` from the frontend's `package.json`\n   if there is one. If projects disagree, stop and report it; fix that first. Other Umbraco\n   products and the build tools have floors of their own: sort them with\n   `umbraco-dependencies`' \"More than one floor\" and \"Locked to the CMS\".\n2. **Which CMS release to target.** List the target major's releases:\n   ```bash\n   gh release list -R umbraco\u002FUmbraco-CMS --limit 100 | grep \"release-\u003Cmajor>\\.\"\n   ```\n   Take the newest. If it's a beta or RC, that's the normal way to start: the package can\n   ship its own pre-release against it, and a later run refreshes to the next RC and then the\n   final release. Tell the user which release you'll target and record it in the upgrade\n   file. If the major has no release yet, stop: there's nothing stable enough to build on.\n3. **Is the hop allowed?** Use `umbraco-docs` to read the target major's breaking-changes\n   page, `\u003Cmajor>\u002Fumbraco-cms\u002Fget-started\u002Fupgrading-and-migrating\u002Fversion-specific.md`. Its\n   \"Preparation for Upgrade\" section names the oldest version it upgrades from. If the project\n   is older than that, stop: upgrade to the named version first (run this skill for that\n   major), then come back. Before a major's final release, the docs often don't have this\n   page yet. Say so, and ask the user to confirm the hop instead of assuming it's fine.\n4. **Other Umbraco dependencies.** For every other Umbraco package the project depends on\n   (Forms, Commerce, community packages), check NuGet for a release that supports the target\n   release. For a pre-release target, check Umbraco's pre-release feed too\n   (`umbraco-dependencies`' \"A pre-release floor\"). A missing one is a blocker: record it and\n   ask before going on.\n5. **Branch.** Read `git-workflow`'s \"Umbraco packages and version tracking\" section and the\n   project's `CLAUDE.md` to see how it carries more than one major.\n   - Branch-per-major: the new line (for example `v18\u002Fdev`) is cut from the current major's\n     line. Check it doesn't already exist.\n   - Single line: a short-lived branch such as `chore\u002Fupgrade-v18`.\n\n   Confirm the working tree is clean, then **ask the user to confirm the branch name and its\n   base before creating it.**\n\n## Inventory: write `docs\u002Fupgrades\u002Fv\u003Cmajor>.md`\n\nBuild the list of what has to change before touching code. Only list what hits this project.\nA breaking change in an area the project never uses is noise.\n\n**The CMS repo is the source of truth for what changed. The docs are a cross-check.** The\ndocs are often written after the code ships, and before a final release they can be missing\nor incomplete. Never treat \"not in the docs\" as \"not a breaking change\".\n\n1. **Target framework, SDK, and shared dependencies.** Read the CMS's `TargetFramework` at\n   the target release tag (`umbraco-cms-source`, `Directory.Build.props` at the repo root).\n   If it differs from the project's, the upgrade includes a .NET bump. Check `global.json`\n   too, if the project has one.\n\n   Then match every dependency the project shares with the CMS to the CMS's version at the\n   target tag. The upgrade moves the package's floor to the target release, so\n   `umbraco-dependencies`' \"Locked to the CMS\" says which dependencies these are, NuGet and\n   npm, and how to read their versions. A shared package the CMS doesn't list is brought in\n   by one that it does; find its version with `dotnet list package --include-transitive`\n   once the bump restores. If the client lists its own copy of a library the backoffice ships\n   under `external\u002F*`, suggest importing from that path instead as a follow-up.\n\n   List every shared dependency with its current and target version in the inventory.\n2. **What changed in the CMS.** No single source lists every break: labels, release notes\n   and the docs each miss some. Work from the CMS diff between the two tags, using the local\n   clone (`umbraco-cms-source` has how to find it as `$CMS`). The commands for each part\n   are in `references\u002Ffinding-breaks.md`.\n   - **Labelled PRs.** Umbraco labels breaking PRs `category\u002Fbreaking`. List the ones in\n     the target release and not in the current one. Start the search at the oldest commit\n     in the range, not at the current major's release date: work for the next major\n     starts before the current one ships. A PR merged to a feature branch that was later\n     squash-merged is in no tag's history; keep it as \"probably in\" and check the target\n     tag for what it changed. With no clone, filter the list by base branch instead:\n     `v\u003Cmajor>\u002Fdev`, `release\u002F\u003Cmajor>.*`, and `v\u003Cmajor>\u002Ffeature\u002F*`.\n   - **CMS types the package uses.** List every CMS type the package names, C# and\n     backoffice. Diff each one's file between the tags. Every removed or changed public or\n     protected member the package uses is an entry, labelled or not.\n   - **Subsystems the package extends.** Where the package subclasses or composes CMS\n     building blocks (the block editor's managers, workspaces and value converters; search\n     providers; trees), a change anywhere in that subsystem can break it, even one that\n     still compiles. Group these by subsystem and diff the whole folder, not only what the\n     PRs name. Read the behavior changes. Each subsystem gets its own scenario in the smoke.\n   - **Open PRs still due in the release.** Only when the target is a beta or RC. Umbraco\n     labels PRs meant for a release `release\u002F\u003Cx.y.z>` (`release\u002F19.0.0`), and some are still\n     open when a pre-release ships. They're in no tag yet, so the diff can't see them. List\n     the open ones with the label of the major's final release, and their changed files.\n     Flag each one whose files include a CMS type, subsystem, backoffice element or manifest\n     type the package uses (the lists above), labelled `category\u002Fbreaking` or not; a\n     breaking one in an area the package never uses is noise. Write the flagged ones to\n     the upgrade file's \"Waiting on the CMS\" section, with what each would hit. They're not\n     tasks: nothing is built against unmerged code. Name them to the user with the plan, so\n     they can raise a likely break with the CMS team before it ships.\n   - **CMS data migrations.** Read every migration the target adds to `UmbracoPlan.cs`. If\n     one rewrites data shaped like data the package stores (block JSON, property values it\n     owns), add a task to check the package's data after it, and include it in the upgrade\n     smoke (\"Finish\").\n\n   For each entry, grep the project for what it changed or removed. Name the PR behind an\n   entry from history (`git log -S` on the changed line), never from a PR title: titles\n   don't say everything a PR touched. Merge-ups and cherry-picks repeat a change; keep one\n   entry per PR.\n3. **Release notes.** Each beta, RC, and final release of the target major has a\n   \"💥 Breaking Changes\" section (`gh release view \u003Ctag> -R umbraco\u002FUmbraco-CMS`). Read\n   every one in the range. The list to work from is everything step 2 found plus every PR\n   these sections name; a PR here that step 2 missed gets the same treatment.\n4. **The docs page.** Read the target major's section of the breaking-changes page from\n   preflight step 3, if it exists. It covers changes no single PR shows: settings with new\n   defaults, migrations that now run automatically, steps to take before upgrading. Grep the\n   project for what each entry names.\n5. **Obsolete APIs.** Collect `CS0618` warnings twice: on the current version now, and on the\n   target release once the bump task compiles. Umbraco's `[Obsolete]` messages name the\n   replacement and the major that removes the member (\"Use X instead. Scheduled for removal\n   in Umbraco 19.\"). Every warning is a task, whichever major it names: move to the\n   replacement now, while the upgrade is open. The second build catches APIs the target\n   major newly made obsolete, which no earlier version warned about.\n\n   Some removals carry no `[Obsolete]` at all, only a `\u002F\u002F TODO (V\u003Ctarget>)` comment in the\n   CMS at the current tag, often on a default interface member or an overload. Grep for\n   those too; each one the package uses is an entry.\n\n   **Spike compile.** In a scratch worktree, bump the CMS packages to the target and build\n   once. Fix nothing. Every error not already in the inventory is a new entry, and any\n   `CS0618` from projects that compiled is an early look at the second list. Remove the\n   worktree after. This is a cross-check, not the bump task.\n\n   Leave a warning as a follow-up only when its replacement doesn't exist in every CMS\n   version the branch builds against (a branch that targets two majors at once). Say which\n   version is missing it.\n6. **Frontend.** If there's a backoffice client, give it the same care as the C#. Most\n   frontend breaks don't fail the build: a manifest field the backoffice no longer reads, or\n   a component tag that no longer exists, just renders nothing. Check each of these at the\n   target tag (`umbraco-cms-source`, under `src\u002FUmbraco.Web.UI.Client\u002F`), and treat every hit\n   as a task (`umbraco-backoffice-conventions` has the client build rules):\n   - **Type-check against the target.** In a scratch copy of the client, set\n     `@umbraco-cms\u002Fbackoffice` to the exact target version. Set its peers to the target's\n     first (`umbraco-dependencies`' \"npm\"), or the install fails with `ERESOLVE`. Then run\n     `tsc --noEmit`. Every error is an entry: removed exports, moved import paths, changed\n     contexts and manifest `meta` types. Do this first. A bundler build doesn't type-check,\n     and a deprecation lint can't see an API that's already gone.\n   - **Screen list.** List every screen the package adds, from its manifests: sections,\n     workspaces and their views, dashboards, property editors, modals. Give each a short\n     name and the click path to reach it. The smoke and the screen comparison (\"Finish\")\n     both work from this list, so write it into the upgrade file's \"Screen comparison\"\n     table now.\n   - **Import paths.** Compare the `exports` map in `package.json` at the two tags for every\n     `@umbraco-cms\u002Fbackoffice\u002F*` path the project imports. A path that's gone or moved is a\n     task.\n   - **`@deprecated` APIs.** The TypeScript compiler doesn't warn about these, so they're\n     easy to miss. Run ESLint with `@typescript-eslint\u002Fno-deprecated` (the rule the CMS\n     client uses itself) on the current version and again after the bump, like step 5's two\n     builds. If the project's lint config lacks the rule, run it once from the command line\n     rather than changing the config. Leave out generated API client folders (wherever the\n     project's OpenAPI generator writes): they're regenerated, not fixed by hand. Umbraco's\n     `@deprecated` tags name the major that removes the API (\"Scheduled for removal in\n     Umbraco 19\").\n   - **Runtime deprecations.** Some backoffice deprecations only show in the browser. The\n     CMS logs them with `UmbDeprecation` as a console warning that starts \"Umbraco\n     Backoffice:\" and names the removal version. Newer releases add an \"Origin:\" line naming\n     the package when the caller is under `\u002FApp_Plugins\u002F`; on older ones, match the warning\n     to the package's code yourself. Collect them during the smoke (see \"Build\").\n   - **Manifests.** Every extension `type`, `kind`, `meta` field, and condition `alias` the\n     package registers must still exist at the target tag. Validate `umbraco-package.json`\n     against the `umbraco-package-schema.json` that ships in the target's\n     `@umbraco-cms\u002Fbackoffice` npm package (a JSON-schema validator run with `npx`, not a new\n     dependency).\n   - **Elements and contexts.** Every `umb-*` and `uui-*` tag the package's templates use,\n     and every context token it consumes, must still exist at the target tag. Lit templates\n     aren't type-checked, so a renamed tag fails silently.\n   - **UUI and styling.** If the target ships a new UUI major, read its breaking changes\n     and grep the package for each changed component, attribute, and `--uui-*` CSS custom\n     property.\n7. **Persistence.** If the project has EF Core migrations and step 1 moves EF Core, note\n   it: `ef-core-data`'s provider checks apply to the smoke.\n8. **Compatibility markers.** List every place the supported CMS version is written down: the\n   package's own version (per the project's choice in `git-workflow`), NuGet dependency\n   ranges (including ranges or exact pins on the repo's own sibling packages), package\n   references in any `dotnet new` template the repo ships, `umbraco-marketplace.json`,\n   README compatibility tables, any CI matrix, and the `target-branch` entries and ignore\n   list in `.github\u002Fdependabot.yml` (`umbraco-dependencies`' \"Dependabot\").\n   Against a CMS pre-release, the package's own version is a pre-release too (for example\n   `19.0.0-rc1`), and its dependency range must allow the CMS pre-release.\n\n   A demo or test site the smoke uses (even a gitignored one) needs the target CMS too, so\n   list it as part of the bump task. It isn't a compatibility marker: it says nothing about\n   what the package supports.\n9. **The package's own scheduled removals.** Work out the package version this upgrade will\n   release (from step 8). Then find everything the package itself deprecated with a removal\n   version at or below it. With version-aligned versioning that's the target CMS major; with\n   independent SemVer, ask the user which version this release will be:\n   - C# `[Obsolete]` members whose message names that version\n     (`umbraco-package-conventions` sets the \"Will be removed in vN\" format).\n   - Frontend exports tagged `@deprecated` with that version, and the runtime warnings that\n     go with them (`umbraco-backoffice-conventions`).\n   - Old manifest aliases kept registered only so other packages' references keep working.\n\n   Each is a removal task. Remove nothing that names a later version, and nothing that\n   doesn't name a version at all: list those as follow-ups for the user to decide. Every\n   removal is a breaking change for the package's consumers, so record each one in the\n   file's \"Breaking changes for consumers\" section.\n10. **Third-party dependencies.** A new package major is when consumers expect breaking\n    changes, so it's the time for the dependency updates a minor release can't take. Only\n    when step 9 says this release is a major for the package: always with version-aligned\n    versioning; with independent SemVer, only if the user chose a new major. Otherwise skip\n    to the forced bumps below.\n\n    Look only at **shipped** dependencies (`umbraco-dependencies`' kinds, sorted at the\n    target tag, since a CMS major can lock or unlock a package) where the update is:\n    - a new major version, or a new minor of a `0.x` package, which can break just the same;\n    - or something held back for this moment: a `.github\u002Fdependabot.yml` ignore entry with\n      `update-types`, a manifest comment (\"bump to 3.0 when...\"), a \"leave\" from an earlier\n      `dependency-review`, or a Follow-up in the previous upgrade file\n      (`\u003Carchive-path>\u002Fupgrades\u002F`). Existing npm `overrides` count too: recheck whether each\n      is still needed.\n\n    Dev-only updates and shipped patches and minors can move any time; leave them to\n    `dependency-review`. Find versions the way its \"Gather updates with no PR\" step does,\n    starting from the version that actually ships (for bundled npm, the lockfile's resolved\n    version, not the range floor). Look past the stable filter where it misleads: a current\n    pre-release, a pre-release that's the real target, and a package deprecated in favor of\n    a new id (nuget.org and `npm view \u003Cname> deprecated` name the successor).\n\n    For each candidate:\n    - **Framework.** The new version must work on the target framework from step 1: a\n      matching target, a lower one, or `netstandard`. It needn't list it by name.\n    - **Locked packages, at any depth.** Walk the new version's dependency chain\n      (`umbraco-dependencies`' nuspec lookup) for any package the CMS ships at the target\n      tag, and compare versions. If the current version already overshoots, say so and show\n      the trade-off for the user to decide, as in \"When the package is already off the\n      floor\".\n    - **Breaking changes.** Read its release notes (the repository URL in its nuspec or\n      `package.json`, its GitHub releases, or its CHANGELOG).\n    - **Consumers.** Grep the package's public signatures for the dependency's types. If\n      they appear, or consumers are likely to reference the dependency themselves, the bump\n      is a breaking change for them.\n\n    **Forced bumps** are different: when the current version doesn't run on the target\n    framework, or needs a locked package above the target's version, the upgrade can't build\n    without moving it. Those go in task 2 with the CMS bump, with no picking.\n\n    Show the user the list (dependency, current, newest, what breaks) and let them pick.\n    Packages that release together (`react` with `react-dom`, an SDK family) are one entry and\n    one task. Record each picked bump that's breaking for consumers in \"Breaking changes for\n    consumers\". What isn't picked goes in \"Follow-ups\".\n11. **Stopgaps waiting for a major.** Same condition as step 10: only when this release is a\n    major for the package. Grep for `TODO(stopgap):`, or the project's own debt marker if\n    its `CLAUDE.md` names one (`quick-fix` writes these when the user picks a stopgap over\n    the proper fix). Each comment says what it hides and what the proper fix is. Mark the\n    ones whose proper fix is a breaking change for consumers (a public signature, a stored\n    data shape, a manifest alias, a setting): a major is the release where those can land.\n\n    Show the user the list (marker, where, the proper fix, breaking or not) and let them\n    pick. Nothing goes in by default: an upgrade that takes on every old shortcut never\n    finishes. Each picked one is a task, and its proper fix removes the marker comments. Record\n    the breaking ones in \"Breaking changes for consumers\". What isn't picked goes in\n    \"Follow-ups\".\n12. **The package's own docs.** Read where they live from the \"Docs\" section of `CLAUDE.md`.\n    If there's none, look for a `docs\u002F` folder or a docs link in the README, `.csproj` or\n    `umbraco-marketplace.json`, ask the user once with what you found, and add the section\n    in the shape of `project-init`'s `templates\u002FCLAUDE.md`. Docs in a separate repo are\n    read from the local clone named in `CLAUDE.local.md`.\n\n    Search the docs for every inventory entry: the API, setting, alias, route or screen it\n    touches, and the supported CMS and .NET versions. When the docs keep one copy per major,\n    search the target major's copy. If that copy doesn't exist yet, say so in \"Docs\", add a\n    follow-up to search it once it does, and don't create it: a new major's copy belongs to\n    whoever owns the docs. With no clone of a separate docs repo, list what changed for\n    readers (old and new) instead of pages.\n\n    List each page to change in the file's \"Docs\" section, with the inventory entry behind\n    it. Screenshots to retake come later, from the screen comparison (Finish step 3).\n\nWrite the file from `templates\u002FUPGRADE.md`. Order the tasks so **every task ends in a green\nbuild**:\n\n1. Fix obsolete and `@deprecated` usages, C# and frontend, while still on the current\n   version. Each replacement API already exists there, so this lands green and shrinks the\n   bump. The same goes for a whole subsystem the target major removes (a search engine, a\n   cache, a delivery model) when its replacement already ships for the current major: port\n   to it here, as its own task, behind the package's own interface, so the bump only swaps\n   versions.\n2. Bump the target framework and packages, with every shared dependency at the CMS's\n   version (step 1) and any forced third-party bump (step 10), and fix what no longer\n   compiles. This is the one big task. Split it by\n   project if the solution has several.\n3. Move off APIs the target release made obsolete or `@deprecated` (the second build and\n   lint run in steps 5 and 6). Add these tasks once the bump compiles; you can't see them\n   before.\n4. Behavior changes: breaking changes that still compile but act differently (a setting's new\n   default, a renamed URL, a changed notification, a subsystem change or data migration from\n   step 2).\n5. The frontend bump and its fixes: import paths, manifests, elements and contexts, UUI.\n   Runtime deprecation warnings found in the smoke get added as tasks here.\n6. Third-party dependency bumps the user picked (step 10), one task per dependency or family\n   that releases together. These go after the CMS work, so a failure points at the\n   dependency, not the CMS.\n7. Remove the package's own deprecated code scheduled for this version (step 9), after the\n   other code changes, so a test failing here points at the removal.\n8. Proper fixes for the stopgaps the user picked (step 11), one task each, after the\n   removals, so a failure points at the fix.\n9. Compatibility markers.\n10. Docs, when they're in this repo: one task, last, so the pages describe the finished\n    code. Docs kept elsewhere get no task; the \"Docs\" section is their hand-off.\n\nShow the user the inventory and the ordered tasks, and wait for a yes before building. This\nis the plan; a missing item here becomes a broken site later.\n\n## Refresh: a newer release of the same major\n\nRun when the upgrade file exists and a newer CMS release of its major is out (rc1 to rc2, or\nthe last RC to the final release). Work on the same branch.\n\n1. Read the CMS release the file targets now. Find the newest release of the major. If it's\n   the same, say so and stop.\n2. Run inventory steps 1 to 6 again, with the file's current release as the \"current\" tag\n   and the newer release as the target. Breaking changes between two RCs are rarer but do\n   happen. Re-read the docs page too: it's often only finished for the final release. Then\n   run step 12 for the new entries.\n3. Append what you find to the file as new entries and new unchecked tasks. Don't rewrite or\n   untick earlier ones; they're done and committed. Update the file's target release line.\n   Re-check \"Waiting on the CMS\": an entry merged into the newer release is now in the\n   diff, so mark it merged and handle it as an inventory entry; one still open stays. On the\n   final release, an entry still open missed it but may land in a later minor: move it to\n   \"Follow-ups\" with what it would hit, and say so. It doesn't block the upgrade.\n   Don't re-offer step 10's or step 11's list, but re-check each unchecked step 10 task against the newer\n   tag: its locked packages, and whether a forced bump changed.\n4. Always add a task, ahead of any unchecked step 10 or removal tasks, to move the CMS\n   packages, `@umbraco-cms\u002Fbackoffice`, every shared dependency (step 1 at the newer tag),\n   and the package's own pre-release version to the newer release. On the final release,\n   that drops the package's pre-release suffix unless the user wants one more pre-release\n   first.\n5. Show the user the new entries and tasks, wait for a yes, then build them as below.\n\n## Build\n\nCommit the upgrade file on the new branch first, following the project's commit\nconventions (`git-workflow`): for example `docs: add upgrade plan for v\u003Cmajor>`, or\n`docs: refresh upgrade plan for \u003Crelease>` on a refresh. Then,\nfor each unchecked task, in order, follow `feature-build`'s loop with these differences:\n\n- **Build.** Give the `builder` the task text, the matching inventory entries (with their\n  docs link or CMS PR), and the CMS release tag to read source at. Tell it to invoke\n  `umbraco-cms-source` and `umbraco-docs` for the **target** major, not the current one.\n  The same rule `umbraco-package-conventions` sets for public API applies here: if the\n  upgrade forces a change to the package's own public API, proxy it with `[Obsolete]` where\n  possible, and record it in the file's \"Breaking changes for consumers\" section when not.\n- **Review.** Dispatch `reviewer` as usual, with the inventory entry as the task. No\n  `#pragma warning disable` or `\u003CNoWarn>` to silence a removed-API warning, and no skipped or\n  weakened tests to get green. Either one is a `FAIL`.\n  For a removal task from inventory step 9, give the reviewer the deprecation message that\n  scheduled it, so a planned removal isn't flagged as an unproxied public API break. It\n  still checks that nothing inside the package, its tests, or its demo site uses the removed\n  code.\n- **Smoke.** Dispatch a `smoke-tester` as `feature-build`'s \"Smoke the real entry point\" step\n  does. Once the framework bump task lands, tell it the demo site must start on the target\n  major and the backoffice must load with the package's extensions registered, and to open\n  every screen the package adds and read the browser console: an error from the package\n  fails the smoke, and an \"Umbraco Backoffice:\" deprecation warning with the package as its\n  origin comes back as a finding that becomes a task. Have it run the scenario for each\n  subsystem the package extends (inventory step 2) once its task lands.\n- **Bugs the upgrade didn't cause.** A bug found during a task may also exist on older\n  lines. Fix it in its own commit, apart from the upgrade work, so it can be ported later.\n  Check whether it shows on every line the project still supports, not only the current\n  major. The lines and their phases come from `change-backport`'s \"Find the lines\". For each\n  line, use its demo site or the code at its head. Add the bug to the file's \"Backport\n  candidates\" with yes, no, or unchecked for each line.\n- **Tick and log.** Tick the task in the upgrade file and add its commit SHA to the \"Log\"\n  section. A decision the inventory left open goes in the file's \"Decisions\" section.\n\n## Finish\n\nWhen every task is ticked:\n\n1. Run the full test suite on every database provider the project supports.\n2. **Smoke an upgrade, not just a fresh install.** Start a demo site on the current major\n   with the package installed and some of its data in place. Move that site to the target\n   major with the upgraded package. Check the package's migrations run and its data still\n   shows, including data a CMS migration rewrote (inventory step 2). If the project has no\n   demo site, say this was skipped in the PR. On a refresh, the smoke still starts from the\n   previous major, not from the last RC: that's the upgrade users will run.\n3. **Compare every screen across the majors.** On that same site, screenshot every screen in\n   the \"Screen comparison\" table at 1440×900 before moving it\n   (`docs\u002Fupgrades\u002Fv\u003Cmajor>-screens\u002F\u003Cscreen>-v\u003Ccurrent>.png`), and again after\n   (`\u003Cscreen>-v\u003Ctarget>.png`). Same data, same click path, so any difference comes from the\n   upgrade. Past a handful of screens, script it: one browser script that walks the table's\n   click paths, run once per major. Before comparing, hide values that change between runs\n   (dates and times, generated numbers and ids, relative times like \"2 minutes ago\"), so\n   only real differences show. Sort each difference into one of three:\n   - **CMS change**: the CMS itself changed the look (a new UUI, a new layout). Note it; no\n     task. If it changes the shared frame (header, sidebar, corners, colours, tables), report\n     it with `skill-report`: the `feature-design` mockup starters need a look for this major.\n   - **Already there**: the same fault shows on the current major. Not an upgrade task. If\n     the branch fixed it, it's a backport candidate; if not, a follow-up.\n   - **Upgrade regression**: only on the target major. Add a task and build it, then take\n     the target screenshot again.\n\n   Each screen sorted as a CMS change or an upgrade regression may also appear in the\n   package's own docs. Add each docs screenshot of it to the \"Docs\" section's screenshots to\n   retake, with the screen's click path. Retake them now if the docs are in this repo.\n\n   Hand the screenshots and the comparison to `smoke-tester` subagents, a few screens each,\n   and have each report every difference in a line with how it sorted it. Never open the\n   images in this session: a full upgrade compares many screens, and every image would stay\n   in context for the rest of the run.\n\n   Record the result per screen in the table. Commit only the pairs that show a difference,\n   with the upgrade file; screens that match stay out of the repo, and the table says they\n   matched. If the project has no demo site, say this was skipped in the PR.\n4. Dispatch one `reviewer` in whole-feature mode over the branch diff, with the upgrade file\n   as the design. Fix and re-review until `PASS`, as in `feature-build`'s \"Finish\".\n5. **Propose backports.** List every \"Backport candidates\" entry that shows on at least one\n   supported line, and sort each one:\n   - **Safe for a patch release**: no public API change, no migration, no new dependency,\n     and no behavior a consumer could rely on. Name every line it would go to: each line\n     where it shows and whose phase takes it (`change-backport`'s \"Check the target should\n     get it\"). Also name each line where it shows but the phase rules it out, with the\n     phase, so the user can overrule it.\n   - **Would break a patch release**: give the reason, for the user to decide.\n   - **Exists only because of the new CMS**: never ported.\n\n   Show the list and ask which to port, per change and line. Mark the picks in the file.\n   Port nothing yet: `change-backport` only ports a merged change.\n6. Open the PR with `pr-describe`, or update it if a PR for this upgrade is already open. It\n   uses its plain style, since there's no plan folder. Point it at the upgrade file, so the PR\n   lists the breaking changes handled, any breaking changes for consumers, the docs changed\n   or handed off, the follow-ups, and the picked backports. Under \"How to verify\", it shows\n   each changed screen's two screenshots side by side, with the click path, and says how\n   each difference was sorted.\n\n## Archive\n\nOnce the upgrade is done (its PR merged, targeting the final release), move the upgrade file\nout of `docs\u002Fupgrades\u002F` so that folder holds only live upgrades. From a clean tree on the\nline's trunk, follow `feature-close`'s\n\"Close each plan\" steps, with the upgrade file in place of a plan folder:\n\n- The status line goes at the top of the upgrade file itself, under its title.\n- Step 2 reads the file's \"Decisions\" section. Open \"Follow-ups\" have no lasting home here:\n  list them for the user to turn into tracker issues before the move.\n- Picked backports not ported yet: list them for the user too, with their commits.\n- The file moves to `\u003Carchive-path>\u002Fupgrades\u002Fv\u003Cmajor>.md`, and its screenshots folder with\n  it.\n\n## Rules\n\n- One major per run. A two-major jump is two runs, each ending green. Refreshing to a newer\n  release of the same major is a run of its own, on the same branch and file.\n- The CMS source at the target tag beats the docs, and both beat memory. Quote the tag or\n  page behind every inventory entry.\n- Never commit to the current major's line, or to `main`, without asking.\n- If a task still fails after `feature-build`'s rethink round, stop and report it with its\n  findings. Don't work around a removed API by copying the CMS's old code into the package.\n\n## Hand off\n\nReport: current to target version (and the CMS release, if it's a pre-release), tasks done\nand commits, open CMS PRs still waiting and what each would hit, what the upgrade smoke and\nthe screen comparison showed, third-party dependencies moved, any breaking changes for\nconsumers, the docs changed, the follow-ups, and the backport candidates with the ones\npicked. Then the PR link. Once the PR merges, offer `change-backport` for each picked backport, one run per change and target line.\n\nWhen the docs live outside this repo, the upgrade file's \"Docs\" section is their hand-off:\nshow it, and say which docs copy was searched. If `CLAUDE.local.md` names a skill or command\non a `Submit docs with:` line, offer to run it with that section. Don't draft a PR to the\ndocs repo yourself; each docs repo has its own rules.\n","# major-upgrade\n\nA CMS major upgrade is the same features on a new base, so the `feature-explore` → `feature-design` →\n`feature-plan` pipeline doesn't fit it, and it's far too big for `quick-fix`. This skill is its\nown lane: it plans the upgrade from Umbraco's published breaking changes, then builds it with\nthe same builder → reviewer → smoke → commit gate as `feature-build`.\n\n## Scope\n\n- IN: one hop to one target major. Dependency and target framework bumps, code changes forced\n  by breaking changes or removed obsolete APIs, the frontend's `@umbraco-cms\u002Fbackoffice`\n  bump, the package's own compatibility markers (version, dependency range, marketplace\n  metadata, README), the package's own docs (inventory step 12), and the third-party\n  dependency bumps the user picks from inventory step 10.\n- OUT: new features, refactors the upgrade doesn't force, and dropping an older major the\n  project still supports. Note those in the upgrade file's \"Follow-ups\" section instead.\n  Releasing the upgraded package is also out of scope; it's the project's own release steps.\n\n## Argument\n\n`$ARGUMENTS` is the target major (`18`, `v18`). If empty, ask.\n\n**First run or refresh?** If `docs\u002Fupgrades\u002Fv\u003Cmajor>.md` already exists, an earlier run\nupgraded to a CMS release of this major, usually a beta or RC. This run is a **refresh**: move\nto the newest CMS release of the major (the next RC, or the final release) and handle only\nwhat changed since the release the file records. Skip to \"Refresh\" below. If the file doesn't\nexist and the project already targets that major, say so and stop. If the file targets the\nmajor's final release and its PR is merged, the upgrade is done: skip to \"Archive\" instead.\n\n## Preflight\n\n1. **Current version.** Read the exact `Umbraco.Cms.*` version from `Directory.Packages.props`\n   or the `.csproj` files, and `@umbraco-cms\u002Fbackoffice` from the frontend's `package.json`\n   if there is one. If projects disagree, stop and report it; fix that first. Other Umbraco\n   products and the build tools have floors of their own: sort them with\n   `umbraco-dependencies`' \"More than one floor\" and \"Locked to the CMS\".\n2. **Which CMS release to target.** List the target major's releases:\n   ```bash\n   gh release list -R umbraco\u002FUmbraco-CMS --limit 100 | grep \"release-\u003Cmajor>\\.\"\n   ```\n   Take the newest. If it's a beta or RC, that's the normal way to start: the package can\n   ship its own pre-release against it, and a later run refreshes to the next RC and then the\n   final release. Tell the user which release you'll target and record it in the upgrade\n   file. If the major has no release yet, stop: there's nothing stable enough to build on.\n3. **Is the hop allowed?** Use `umbraco-docs` to read the target major's breaking-changes\n   page, `\u003Cmajor>\u002Fumbraco-cms\u002Fget-started\u002Fupgrading-and-migrating\u002Fversion-specific.md`. Its\n   \"Preparation for Upgrade\" section names the oldest version it upgrades from. If the project\n   is older than that, stop: upgrade to the named version first (run this skill for that\n   major), then come back. Before a major's final release, the docs often don't have this\n   page yet. Say so, and ask the user to confirm the hop instead of assuming it's fine.\n4. **Other Umbraco dependencies.** For every other Umbraco package the project depends on\n   (Forms, Commerce, community packages), check NuGet for a release that supports the target\n   release. For a pre-release target, check Umbraco's pre-release feed too\n   (`umbraco-dependencies`' \"A pre-release floor\"). A missing one is a blocker: record it and\n   ask before going on.\n5. **Branch.** Read `git-workflow`'s \"Umbraco packages and version tracking\" section and the\n   project's `CLAUDE.md` to see how it carries more than one major.\n   - Branch-per-major: the new line (for example `v18\u002Fdev`) is cut from the current major's\n     line. Check it doesn't already exist.\n   - Single line: a short-lived branch such as `chore\u002Fupgrade-v18`.\n\n   Confirm the working tree is clean, then **ask the user to confirm the branch name and its\n   base before creating it.**\n\n## Inventory: write `docs\u002Fupgrades\u002Fv\u003Cmajor>.md`\n\nBuild the list of what has to change before touching code. Only list what hits this project.\nA breaking change in an area the project never uses is noise.\n\n**The CMS repo is the source of truth for what changed. The docs are a cross-check.** The\ndocs are often written after the code ships, and before a final release they can be missing\nor incomplete. Never treat \"not in the docs\" as \"not a breaking change\".\n\n1. **Target framework, SDK, and shared dependencies.** Read the CMS's `TargetFramework` at\n   the target release tag (`umbraco-cms-source`, `Directory.Build.props` at the repo root).\n   If it differs from the project's, the upgrade includes a .NET bump. Check `global.json`\n   too, if the project has one.\n\n   Then match every dependency the project shares with the CMS to the CMS's version at the\n   target tag. The upgrade moves the package's floor to the target release, so\n   `umbraco-dependencies`' \"Locked to the CMS\" says which dependencies these are, NuGet and\n   npm, and how to read their versions. A shared package the CMS doesn't list is brought in\n   by one that it does; find its version with `dotnet list package --include-transitive`\n   once the bump restores. If the client lists its own copy of a library the backoffice ships\n   under `external\u002F*`, suggest importing from that path instead as a follow-up.\n\n   List every shared dependency with its current and target version in the inventory.\n2. **What changed in the CMS.** No single source lists every break: labels, release notes\n   and the docs each miss some. Work from the CMS diff between the two tags, using the local\n   clone (`umbraco-cms-source` has how to find it as `$CMS`). The commands for each part\n   are in `references\u002Ffinding-breaks.md`.\n   - **Labelled PRs.** Umbraco labels breaking PRs `category\u002Fbreaking`. List the ones in\n     the target release and not in the current one. Start the search at the oldest commit\n     in the range, not at the current major's release date: work for the next major\n     starts before the current one ships. A PR merged to a feature branch that was later\n     squash-merged is in no tag's history; keep it as \"probably in\" and check the target\n     tag for what it changed. With no clone, filter the list by base branch instead:\n     `v\u003Cmajor>\u002Fdev`, `release\u002F\u003Cmajor>.*`, and `v\u003Cmajor>\u002Ffeature\u002F*`.\n   - **CMS types the package uses.** List every CMS type the package names, C# and\n     backoffice. Diff each one's file between the tags. Every removed or changed public or\n     protected member the package uses is an entry, labelled or not.\n   - **Subsystems the package extends.** Where the package subclasses or composes CMS\n     building blocks (the block editor's managers, workspaces and value converters; search\n     providers; trees), a change anywhere in that subsystem can break it, even one that\n     still compiles. Group these by subsystem and diff the whole folder, not only what the\n     PRs name. Read the behavior changes. Each subsystem gets its own scenario in the smoke.\n   - **Open PRs still due in the release.** Only when the target is a beta or RC. Umbraco\n     labels PRs meant for a release `release\u002F\u003Cx.y.z>` (`release\u002F19.0.0`), and some are still\n     open when a pre-release ships. They're in no tag yet, so the diff can't see them. List\n     the open ones with the label of the major's final release, and their changed files.\n     Flag each one whose files include a CMS type, subsystem, backoffice element or manifest\n     type the package uses (the lists above), labelled `category\u002Fbreaking` or not; a\n     breaking one in an area the package never uses is noise. Write the flagged ones to\n     the upgrade file's \"Waiting on the CMS\" section, with what each would hit. They're not\n     tasks: nothing is built against unmerged code. Name them to the user with the plan, so\n     they can raise a likely break with the CMS team before it ships.\n   - **CMS data migrations.** Read every migration the target adds to `UmbracoPlan.cs`. If\n     one rewrites data shaped like data the package stores (block JSON, property values it\n     owns), add a task to check the package's data after it, and include it in the upgrade\n     smoke (\"Finish\").\n\n   For each entry, grep the project for what it changed or removed. Name the PR behind an\n   entry from history (`git log -S` on the changed line), never from a PR title: titles\n   don't say everything a PR touched. Merge-ups and cherry-picks repeat a change; keep one\n   entry per PR.\n3. **Release notes.** Each beta, RC, and final release of the target major has a\n   \"💥 Breaking Changes\" section (`gh release view \u003Ctag> -R umbraco\u002FUmbraco-CMS`). Read\n   every one in the range. The list to work from is everything step 2 found plus every PR\n   these sections name; a PR here that step 2 missed gets the same treatment.\n4. **The docs page.** Read the target major's section of the breaking-changes page from\n   preflight step 3, if it exists. It covers changes no single PR shows: settings with new\n   defaults, migrations that now run automatically, steps to take before upgrading. Grep the\n   project for what each entry names.\n5. **Obsolete APIs.** Collect `CS0618` warnings twice: on the current version now, and on the\n   target release once the bump task compiles. Umbraco's `[Obsolete]` messages name the\n   replacement and the major that removes the member (\"Use X instead. Scheduled for removal\n   in Umbraco 19.\"). Every warning is a task, whichever major it names: move to the\n   replacement now, while the upgrade is open. The second build catches APIs the target\n   major newly made obsolete, which no earlier version warned about.\n\n   Some removals carry no `[Obsolete]` at all, only a `\u002F\u002F TODO (V\u003Ctarget>)` comment in the\n   CMS at the current tag, often on a default interface member or an overload. Grep for\n   those too; each one the package uses is an entry.\n\n   **Spike compile.** In a scratch worktree, bump the CMS packages to the target and build\n   once. Fix nothing. Every error not already in the inventory is a new entry, and any\n   `CS0618` from projects that compiled is an early look at the second list. Remove the\n   worktree after. This is a cross-check, not the bump task.\n\n   Leave a warning as a follow-up only when its replacement doesn't exist in every CMS\n   version the branch builds against (a branch that targets two majors at once). Say which\n   version is missing it.\n6. **Frontend.** If there's a backoffice client, give it the same care as the C#. Most\n   frontend breaks don't fail the build: a manifest field the backoffice no longer reads, or\n   a component tag that no longer exists, just renders nothing. Check each of these at the\n   target tag (`umbraco-cms-source`, under `src\u002FUmbraco.Web.UI.Client\u002F`), and treat every hit\n   as a task (`umbraco-backoffice-conventions` has the client build rules):\n   - **Type-check against the target.** In a scratch copy of the client, set\n     `@umbraco-cms\u002Fbackoffice` to the exact target version. Set its peers to the target's\n     first (`umbraco-dependencies`' \"npm\"), or the install fails with `ERESOLVE`. Then run\n     `tsc --noEmit`. Every error is an entry: removed exports, moved import paths, changed\n     contexts and manifest `meta` types. Do this first. A bundler build doesn't type-check,\n     and a deprecation lint can't see an API that's already gone.\n   - **Screen list.** List every screen the package adds, from its manifests: sections,\n     workspaces and their views, dashboards, property editors, modals. Give each a short\n     name and the click path to reach it. The smoke and the screen comparison (\"Finish\")\n     both work from this list, so write it into the upgrade file's \"Screen comparison\"\n     table now.\n   - **Import paths.** Compare the `exports` map in `package.json` at the two tags for every\n     `@umbraco-cms\u002Fbackoffice\u002F*` path the project imports. A path that's gone or moved is a\n     task.\n   - **`@deprecated` APIs.** The TypeScript compiler doesn't warn about these, so they're\n     easy to miss. Run ESLint with `@typescript-eslint\u002Fno-deprecated` (the rule the CMS\n     client uses itself) on the current version and again after the bump, like step 5's two\n     builds. If the project's lint config lacks the rule, run it once from the command line\n     rather than changing the config. Leave out generated API client folders (wherever the\n     project's OpenAPI generator writes): they're regenerated, not fixed by hand. Umbraco's\n     `@deprecated` tags name the major that removes the API (\"Scheduled for removal in\n     Umbraco 19\").\n   - **Runtime deprecations.** Some backoffice deprecations only show in the browser. The\n     CMS logs them with `UmbDeprecation` as a console warning that starts \"Umbraco\n     Backoffice:\" and names the removal version. Newer releases add an \"Origin:\" line naming\n     the package when the caller is under `\u002FApp_Plugins\u002F`; on older ones, match the warning\n     to the package's code yourself. Collect them during the smoke (see \"Build\").\n   - **Manifests.** Every extension `type`, `kind`, `meta` field, and condition `alias` the\n     package registers must still exist at the target tag. Validate `umbraco-package.json`\n     against the `umbraco-package-schema.json` that ships in the target's\n     `@umbraco-cms\u002Fbackoffice` npm package (a JSON-schema validator run with `npx`, not a new\n     dependency).\n   - **Elements and contexts.** Every `umb-*` and `uui-*` tag the package's templates use,\n     and every context token it consumes, must still exist at the target tag. Lit templates\n     aren't type-checked, so a renamed tag fails silently.\n   - **UUI and styling.** If the target ships a new UUI major, read its breaking changes\n     and grep the package for each changed component, attribute, and `--uui-*` CSS custom\n     property.\n7. **Persistence.** If the project has EF Core migrations and step 1 moves EF Core, note\n   it: `ef-core-data`'s provider checks apply to the smoke.\n8. **Compatibility markers.** List every place the supported CMS version is written down: the\n   package's own version (per the project's choice in `git-workflow`), NuGet dependency\n   ranges (including ranges or exact pins on the repo's own sibling packages), package\n   references in any `dotnet new` template the repo ships, `umbraco-marketplace.json`,\n   README compatibility tables, any CI matrix, and the `target-branch` entries and ignore\n   list in `.github\u002Fdependabot.yml` (`umbraco-dependencies`' \"Dependabot\").\n   Against a CMS pre-release, the package's own version is a pre-release too (for example\n   `19.0.0-rc1`), and its dependency range must allow the CMS pre-release.\n\n   A demo or test site the smoke uses (even a gitignored one) needs the target CMS too, so\n   list it as part of the bump task. It isn't a compatibility marker: it says nothing about\n   what the package supports.\n9. **The package's own scheduled removals.** Work out the package version this upgrade will\n   release (from step 8). Then find everything the package itself deprecated with a removal\n   version at or below it. With version-aligned versioning that's the target CMS major; with\n   independent SemVer, ask the user which version this release will be:\n   - C# `[Obsolete]` members whose message names that version\n     (`umbraco-package-conventions` sets the \"Will be removed in vN\" format).\n   - Frontend exports tagged `@deprecated` with that version, and the runtime warnings that\n     go with them (`umbraco-backoffice-conventions`).\n   - Old manifest aliases kept registered only so other packages' references keep working.\n\n   Each is a removal task. Remove nothing that names a later version, and nothing that\n   doesn't name a version at all: list those as follow-ups for the user to decide. Every\n   removal is a breaking change for the package's consumers, so record each one in the\n   file's \"Breaking changes for consumers\" section.\n10. **Third-party dependencies.** A new package major is when consumers expect breaking\n    changes, so it's the time for the dependency updates a minor release can't take. Only\n    when step 9 says this release is a major for the package: always with version-aligned\n    versioning; with independent SemVer, only if the user chose a new major. Otherwise skip\n    to the forced bumps below.\n\n    Look only at **shipped** dependencies (`umbraco-dependencies`' kinds, sorted at the\n    target tag, since a CMS major can lock or unlock a package) where the update is:\n    - a new major version, or a new minor of a `0.x` package, which can break just the same;\n    - or something held back for this moment: a `.github\u002Fdependabot.yml` ignore entry with\n      `update-types`, a manifest comment (\"bump to 3.0 when...\"), a \"leave\" from an earlier\n      `dependency-review`, or a Follow-up in the previous upgrade file\n      (`\u003Carchive-path>\u002Fupgrades\u002F`). Existing npm `overrides` count too: recheck whether each\n      is still needed.\n\n    Dev-only updates and shipped patches and minors can move any time; leave them to\n    `dependency-review`. Find versions the way its \"Gather updates with no PR\" step does,\n    starting from the version that actually ships (for bundled npm, the lockfile's resolved\n    version, not the range floor). Look past the stable filter where it misleads: a current\n    pre-release, a pre-release that's the real target, and a package deprecated in favor of\n    a new id (nuget.org and `npm view \u003Cname> deprecated` name the successor).\n\n    For each candidate:\n    - **Framework.** The new version must work on the target framework from step 1: a\n      matching target, a lower one, or `netstandard`. It needn't list it by name.\n    - **Locked packages, at any depth.** Walk the new version's dependency chain\n      (`umbraco-dependencies`' nuspec lookup) for any package the CMS ships at the target\n      tag, and compare versions. If the current version already overshoots, say so and show\n      the trade-off for the user to decide, as in \"When the package is already off the\n      floor\".\n    - **Breaking changes.** Read its release notes (the repository URL in its nuspec or\n      `package.json`, its GitHub releases, or its CHANGELOG).\n    - **Consumers.** Grep the package's public signatures for the dependency's types. If\n      they appear, or consumers are likely to reference the dependency themselves, the bump\n      is a breaking change for them.\n\n    **Forced bumps** are different: when the current version doesn't run on the target\n    framework, or needs a locked package above the target's version, the upgrade can't build\n    without moving it. Those go in task 2 with the CMS bump, with no picking.\n\n    Show the user the list (dependency, current, newest, what breaks) and let them pick.\n    Packages that release together (`react` with `react-dom`, an SDK family) are one entry and\n    one task. Record each picked bump that's breaking for consumers in \"Breaking changes for\n    consumers\". What isn't picked goes in \"Follow-ups\".\n11. **Stopgaps waiting for a major.** Same condition as step 10: only when this release is a\n    major for the package. Grep for `TODO(stopgap):`, or the project's own debt marker if\n    its `CLAUDE.md` names one (`quick-fix` writes these when the user picks a stopgap over\n    the proper fix). Each comment says what it hides and what the proper fix is. Mark the\n    ones whose proper fix is a breaking change for consumers (a public signature, a stored\n    data shape, a manifest alias, a setting): a major is the release where those can land.\n\n    Show the user the list (marker, where, the proper fix, breaking or not) and let them\n    pick. Nothing goes in by default: an upgrade that takes on every old shortcut never\n    finishes. Each picked one is a task, and its proper fix removes the marker comments. Record\n    the breaking ones in \"Breaking changes for consumers\". What isn't picked goes in\n    \"Follow-ups\".\n12. **The package's own docs.** Read where they live from the \"Docs\" section of `CLAUDE.md`.\n    If there's none, look for a `docs\u002F` folder or a docs link in the README, `.csproj` or\n    `umbraco-marketplace.json`, ask the user once with what you found, and add the section\n    in the shape of `project-init`'s `templates\u002FCLAUDE.md`. Docs in a separate repo are\n    read from the local clone named in `CLAUDE.local.md`.\n\n    Search the docs for every inventory entry: the API, setting, alias, route or screen it\n    touches, and the supported CMS and .NET versions. When the docs keep one copy per major,\n    search the target major's copy. If that copy doesn't exist yet, say so in \"Docs\", add a\n    follow-up to search it once it does, and don't create it: a new major's copy belongs to\n    whoever owns the docs. With no clone of a separate docs repo, list what changed for\n    readers (old and new) instead of pages.\n\n    List each page to change in the file's \"Docs\" section, with the inventory entry behind\n    it. Screenshots to retake come later, from the screen comparison (Finish step 3).\n\nWrite the file from `templates\u002FUPGRADE.md`. Order the tasks so **every task ends in a green\nbuild**:\n\n1. Fix obsolete and `@deprecated` usages, C# and frontend, while still on the current\n   version. Each replacement API already exists there, so this lands green and shrinks the\n   bump. The same goes for a whole subsystem the target major removes (a search engine, a\n   cache, a delivery model) when its replacement already ships for the current major: port\n   to it here, as its own task, behind the package's own interface, so the bump only swaps\n   versions.\n2. Bump the target framework and packages, with every shared dependency at the CMS's\n   version (step 1) and any forced third-party bump (step 10), and fix what no longer\n   compiles. This is the one big task. Split it by\n   project if the solution has several.\n3. Move off APIs the target release made obsolete or `@deprecated` (the second build and\n   lint run in steps 5 and 6). Add these tasks once the bump compiles; you can't see them\n   before.\n4. Behavior changes: breaking changes that still compile but act differently (a setting's new\n   default, a renamed URL, a changed notification, a subsystem change or data migration from\n   step 2).\n5. The frontend bump and its fixes: import paths, manifests, elements and contexts, UUI.\n   Runtime deprecation warnings found in the smoke get added as tasks here.\n6. Third-party dependency bumps the user picked (step 10), one task per dependency or family\n   that releases together. These go after the CMS work, so a failure points at the\n   dependency, not the CMS.\n7. Remove the package's own deprecated code scheduled for this version (step 9), after the\n   other code changes, so a test failing here points at the removal.\n8. Proper fixes for the stopgaps the user picked (step 11), one task each, after the\n   removals, so a failure points at the fix.\n9. Compatibility markers.\n10. Docs, when they're in this repo: one task, last, so the pages describe the finished\n    code. Docs kept elsewhere get no task; the \"Docs\" section is their hand-off.\n\nShow the user the inventory and the ordered tasks, and wait for a yes before building. This\nis the plan; a missing item here becomes a broken site later.\n\n## Refresh: a newer release of the same major\n\nRun when the upgrade file exists and a newer CMS release of its major is out (rc1 to rc2, or\nthe last RC to the final release). Work on the same branch.\n\n1. Read the CMS release the file targets now. Find the newest release of the major. If it's\n   the same, say so and stop.\n2. Run inventory steps 1 to 6 again, with the file's current release as the \"current\" tag\n   and the newer release as the target. Breaking changes between two RCs are rarer but do\n   happen. Re-read the docs page too: it's often only finished for the final release. Then\n   run step 12 for the new entries.\n3. Append what you find to the file as new entries and new unchecked tasks. Don't rewrite or\n   untick earlier ones; they're done and committed. Update the file's target release line.\n   Re-check \"Waiting on the CMS\": an entry merged into the newer release is now in the\n   diff, so mark it merged and handle it as an inventory entry; one still open stays. On the\n   final release, an entry still open missed it but may land in a later minor: move it to\n   \"Follow-ups\" with what it would hit, and say so. It doesn't block the upgrade.\n   Don't re-offer step 10's or step 11's list, but re-check each unchecked step 10 task against the newer\n   tag: its locked packages, and whether a forced bump changed.\n4. Always add a task, ahead of any unchecked step 10 or removal tasks, to move the CMS\n   packages, `@umbraco-cms\u002Fbackoffice`, every shared dependency (step 1 at the newer tag),\n   and the package's own pre-release version to the newer release. On the final release,\n   that drops the package's pre-release suffix unless the user wants one more pre-release\n   first.\n5. Show the user the new entries and tasks, wait for a yes, then build them as below.\n\n## Build\n\nCommit the upgrade file on the new branch first, following the project's commit\nconventions (`git-workflow`): for example `docs: add upgrade plan for v\u003Cmajor>`, or\n`docs: refresh upgrade plan for \u003Crelease>` on a refresh. Then,\nfor each unchecked task, in order, follow `feature-build`'s loop with these differences:\n\n- **Build.** Give the `builder` the task text, the matching inventory entries (with their\n  docs link or CMS PR), and the CMS release tag to read source at. Tell it to invoke\n  `umbraco-cms-source` and `umbraco-docs` for the **target** major, not the current one.\n  The same rule `umbraco-package-conventions` sets for public API applies here: if the\n  upgrade forces a change to the package's own public API, proxy it with `[Obsolete]` where\n  possible, and record it in the file's \"Breaking changes for consumers\" section when not.\n- **Review.** Dispatch `reviewer` as usual, with the inventory entry as the task. No\n  `#pragma warning disable` or `\u003CNoWarn>` to silence a removed-API warning, and no skipped or\n  weakened tests to get green. Either one is a `FAIL`.\n  For a removal task from inventory step 9, give the reviewer the deprecation message that\n  scheduled it, so a planned removal isn't flagged as an unproxied public API break. It\n  still checks that nothing inside the package, its tests, or its demo site uses the removed\n  code.\n- **Smoke.** Dispatch a `smoke-tester` as `feature-build`'s \"Smoke the real entry point\" step\n  does. Once the framework bump task lands, tell it the demo site must start on the target\n  major and the backoffice must load with the package's extensions registered, and to open\n  every screen the package adds and read the browser console: an error from the package\n  fails the smoke, and an \"Umbraco Backoffice:\" deprecation warning with the package as its\n  origin comes back as a finding that becomes a task. Have it run the scenario for each\n  subsystem the package extends (inventory step 2) once its task lands.\n- **Bugs the upgrade didn't cause.** A bug found during a task may also exist on older\n  lines. Fix it in its own commit, apart from the upgrade work, so it can be ported later.\n  Check whether it shows on every line the project still supports, not only the current\n  major. The lines and their phases come from `change-backport`'s \"Find the lines\". For each\n  line, use its demo site or the code at its head. Add the bug to the file's \"Backport\n  candidates\" with yes, no, or unchecked for each line.\n- **Tick and log.** Tick the task in the upgrade file and add its commit SHA to the \"Log\"\n  section. A decision the inventory left open goes in the file's \"Decisions\" section.\n\n## Finish\n\nWhen every task is ticked:\n\n1. Run the full test suite on every database provider the project supports.\n2. **Smoke an upgrade, not just a fresh install.** Start a demo site on the current major\n   with the package installed and some of its data in place. Move that site to the target\n   major with the upgraded package. Check the package's migrations run and its data still\n   shows, including data a CMS migration rewrote (inventory step 2). If the project has no\n   demo site, say this was skipped in the PR. On a refresh, the smoke still starts from the\n   previous major, not from the last RC: that's the upgrade users will run.\n3. **Compare every screen across the majors.** On that same site, screenshot every screen in\n   the \"Screen comparison\" table at 1440×900 before moving it\n   (`docs\u002Fupgrades\u002Fv\u003Cmajor>-screens\u002F\u003Cscreen>-v\u003Ccurrent>.png`), and again after\n   (`\u003Cscreen>-v\u003Ctarget>.png`). Same data, same click path, so any difference comes from the\n   upgrade. Past a handful of screens, script it: one browser script that walks the table's\n   click paths, run once per major. Before comparing, hide values that change between runs\n   (dates and times, generated numbers and ids, relative times like \"2 minutes ago\"), so\n   only real differences show. Sort each difference into one of three:\n   - **CMS change**: the CMS itself changed the look (a new UUI, a new layout). Note it; no\n     task. If it changes the shared frame (header, sidebar, corners, colours, tables), report\n     it with `skill-report`: the `feature-design` mockup starters need a look for this major.\n   - **Already there**: the same fault shows on the current major. Not an upgrade task. If\n     the branch fixed it, it's a backport candidate; if not, a follow-up.\n   - **Upgrade regression**: only on the target major. Add a task and build it, then take\n     the target screenshot again.\n\n   Each screen sorted as a CMS change or an upgrade regression may also appear in the\n   package's own docs. Add each docs screenshot of it to the \"Docs\" section's screenshots to\n   retake, with the screen's click path. Retake them now if the docs are in this repo.\n\n   Hand the screenshots and the comparison to `smoke-tester` subagents, a few screens each,\n   and have each report every difference in a line with how it sorted it. Never open the\n   images in this session: a full upgrade compares many screens, and every image would stay\n   in context for the rest of the run.\n\n   Record the result per screen in the table. Commit only the pairs that show a difference,\n   with the upgrade file; screens that match stay out of the repo, and the table says they\n   matched. If the project has no demo site, say this was skipped in the PR.\n4. Dispatch one `reviewer` in whole-feature mode over the branch diff, with the upgrade file\n   as the design. Fix and re-review until `PASS`, as in `feature-build`'s \"Finish\".\n5. **Propose backports.** List every \"Backport candidates\" entry that shows on at least one\n   supported line, and sort each one:\n   - **Safe for a patch release**: no public API change, no migration, no new dependency,\n     and no behavior a consumer could rely on. Name every line it would go to: each line\n     where it shows and whose phase takes it (`change-backport`'s \"Check the target should\n     get it\"). Also name each line where it shows but the phase rules it out, with the\n     phase, so the user can overrule it.\n   - **Would break a patch release**: give the reason, for the user to decide.\n   - **Exists only because of the new CMS**: never ported.\n\n   Show the list and ask which to port, per change and line. Mark the picks in the file.\n   Port nothing yet: `change-backport` only ports a merged change.\n6. Open the PR with `pr-describe`, or update it if a PR for this upgrade is already open. It\n   uses its plain style, since there's no plan folder. Point it at the upgrade file, so the PR\n   lists the breaking changes handled, any breaking changes for consumers, the docs changed\n   or handed off, the follow-ups, and the picked backports. Under \"How to verify\", it shows\n   each changed screen's two screenshots side by side, with the click path, and says how\n   each difference was sorted.\n\n## Archive\n\nOnce the upgrade is done (its PR merged, targeting the final release), move the upgrade file\nout of `docs\u002Fupgrades\u002F` so that folder holds only live upgrades. From a clean tree on the\nline's trunk, follow `feature-close`'s\n\"Close each plan\" steps, with the upgrade file in place of a plan folder:\n\n- The status line goes at the top of the upgrade file itself, under its title.\n- Step 2 reads the file's \"Decisions\" section. Open \"Follow-ups\" have no lasting home here:\n  list them for the user to turn into tracker issues before the move.\n- Picked backports not ported yet: list them for the user too, with their commits.\n- The file moves to `\u003Carchive-path>\u002Fupgrades\u002Fv\u003Cmajor>.md`, and its screenshots folder with\n  it.\n\n## Rules\n\n- One major per run. A two-major jump is two runs, each ending green. Refreshing to a newer\n  release of the same major is a run of its own, on the same branch and file.\n- The CMS source at the target tag beats the docs, and both beat memory. Quote the tag or\n  page behind every inventory entry.\n- Never commit to the current major's line, or to `main`, without asking.\n- If a task still fails after `feature-build`'s rethink round, stop and report it with its\n  findings. Don't work around a removed API by copying the CMS's old code into the package.\n\n## Hand off\n\nReport: current to target version (and the CMS release, if it's a pre-release), tasks done\nand commits, open CMS PRs still waiting and what each would hit, what the upgrade smoke and\nthe screen comparison showed, third-party dependencies moved, any breaking changes for\nconsumers, the docs changed, the follow-ups, and the backport candidates with the ones\npicked. Then the PR link. Once the PR merges, offer `change-backport` for each picked backport, one run per change and target line.\n\nWhen the docs live outside this repo, the upgrade file's \"Docs\" section is their hand-off:\nshow it, and say which docs copy was searched. If `CLAUDE.local.md` names a skill or command\non a `Submit docs with:` line, offer to run it with that section. Don't draft a PR to the\ndocs repo yourself; each docs repo has its own rules.\n",{"name":5,"description":7,"argument-hint":24,"user-invocable":25},"\u003Ctarget CMS major, e.g. 18>",true,"main","a2f9c28bc56802b4e6db01e03972e497b30ad001","plugins\u002Fumbraco-devkit\u002Fskills\u002Fmajor-upgrade",1,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit","https:\u002F\u002Fgithub.com\u002Fmattbrailsford","https:\u002F\u002Fmattbrailsford.dev","AI Staff Engineer @umbraco ","2026-11-12 18:33:53",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":25},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mattbrailsford\u002Fumbraco-devkit --skill major-upgrade",{"tool":41,"command":42},"bunx","bunx skills add mattbrailsford\u002Fumbraco-devkit --skill major-upgrade",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mattbrailsford\u002Fumbraco-devkit --skill major-upgrade","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fmajor-upgrade\u002FSKILL.md",[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Ffinding-breaks.md","REFERENCE","参考文档",4684,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fmajor-upgrade\u002Freferences\u002Ffinding-breaks.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"templates\u002FUPGRADE.md",5357,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fmajor-upgrade\u002Ftemplates\u002FUPGRADE.md",[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7CYGRPVNP8H9YNHGMZ6CP3C","user-stories","Writes, splits and refines user stories with Given\u002FWhen\u002FThen acceptance criteria in STORIES.md, feeding bdd-specs. Use when turning a feature request or a vague ask into a testable backlog entry.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fuser-stories\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CYGJB26N83DXKMDEKY2X48","umbraco-security","What Umbraco provides for keeping a package secure, on the server and in the backoffice: Management API authorization and policies, settings that hold secrets, endpoints outside the Management API, sanitizeHTML and escapeHTML, DOMPurify rules for custom elements, and umbHttpClient instead of handling tokens in the browser. Use when writing or reviewing a Management API controller, a secret setting, a custom endpoint, a backoffice template that uses unsafeHTML, or frontend code that calls an API.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-security\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7CYGBEZ2Q4AXDDNADWW4Q9H","umbraco-performance","Keeping a package fast on the sites that install it: the published cache over the services layer, tree traversal, caching lookups and clearing them, data type config and converter cache levels, output cache eviction, light hot paths, and backoffice screens that don't over-fetch. Use when writing, changing or reviewing code that runs per request, per save, per indexed item or at startup (property value converters, notification handlers, indexing), code that loops over every content item (a full rebuild, an import, a sync), or a list or search screen. Not for a site's own templates.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-performance\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7CYG59CZN1K2KERB0SSDGSY","umbraco-package-conventions","Backend conventions for an Umbraco package: async naming, internal by default, Attempt-based results for routine failures, public-API backwards compatibility, and where extension methods live. Use when naming a method, choosing visibility, shaping a service's result, changing a public signature (including adding a dependency to a public class's constructor), or organizing extension methods. For extension mechanisms, see `umbraco-extensibility`.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-package-conventions\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7CYG0J10QH8J2GS825WTTET","umbraco-marketplace","Gets a finished package listed on the Umbraco Marketplace: the NuGet tag, the dependency Marketplace reads version support from, the v14+ compatibility gotcha, and umbraco-marketplace.json. Use when a package is ready to publish, or when reviewing its packaging.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-marketplace\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7CYFT7MSYW4GRDSQRDPG020","umbraco-extensibility","Umbraco's extension mechanisms (Composers, collection builders, notification handlers, attribute discovery) and a catalogue of backend CMS extension points: property value converters, Management API endpoints, content finders, health checks, search indexing, package migrations, background jobs, and more. Use when making a feature extensible or choosing which extension point fits. Not for property editor UI, dashboards, sections or trees, which the official Backoffice Skills plugin covers.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-extensibility\u002FSKILL.md",[],[]]