/sitecore-content-sdk:content-sdk-upgrade-assistantfrom Sitecore Content SDK - Core
Upgrades @sitecore-content-sdk packages by cross-referencing release notes, what's-new matrix, and a diff of clean reference apps against the current app. Use when moving to a newer SDK version or verifying an upgrade.
Ships in Sitecore Content SDK - Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Upgrade @sitecore-content-sdk/* packages safely. The procedure is the same for App Router and Pages Router apps — the surfaces most likely to break on a bump are router-specific and each has its own skill (see Hard Rules), so defer to those rather than duplicating router detail here.
Three sources, each seeing what the other two cannot; read all three, in this order. (1) The release notes say what changed inside the packages — behaviour, defaults, reverts — which no file diff can show. (2) The what's-new page defines which package versions constitute "SDK M.m" now that packages version independently. (3) A clean scaffold at the target version is the complete list of OOTB files that changed, new API routes included — the release notes name some of them and omit others, and an agent's memory of "what 2.4 changed" is worse than both. Measured 2026-09-16 on 2.2 → 2.4: the notes named the precedence="high" drop, metadata/OG, the experimental switch and llms.txt, but not the next.config rewrite, getPageMetadata, RouteFields extends PageMetadataFields or the cli bump — the scaffold diff had all of those (10 changed files + 2 new routes) and could not see the getComponentList componentName revert the notes carried.
@sitecore-content-sdk/* dependencies, or breaking changes.--from-git case below.CHANGELOG.md. The repo's CHANGELOG.md stops at 2.1.0; since 2.2 every package versions independently and its notes are a GitHub Release per package, indexed by release-notes.html (a version table with links and no content of its own). Read, for the target: create-content-sdk-app@<to> (template-level changes), @sitecore-content-sdk/nextjs@<v>, @sitecore-content-sdk/content@<v> and @sitecore-content-sdk/cli@<v> (behavioural changes; the cli is the component-map generator). URL shape: https://github.com/Sitecore/content-sdk/releases/tag/<package>%40<version> (@ encoded); gh api repos/Sitecore/content-sdk/releases lists them. For a multi-minor jump read every release in between — a 2.2 → 2.4 move inherits everything 2.3 changed. The bodies echo nested dependency updates and Angular items; filter to the app's framework.https://doc.sitecore.com/sai/en/developers/content-sdk/20/what-s-new-in-content-sdk-<M>-<m>.html (deterministic; the page links its siblings). Its value is narrow and real: the package version matrix — core, content, cli, events, analytics-core alongside nextjs / react / create-content-sdk-app — which is the only place "SDK 2.4" is defined as a set, and the headline list you hand the user. It carries no template changes, no breaking changes and no migration steps (checked 2.3 and 2.4), so it never substitutes for step 1 or 3. Align the app's ranges to that matrix.package.json:
node scripts/upgrade-surface.mjs --app <head-app> # from = installed minor, to = latest stable
node scripts/upgrade-surface.mjs --app <head-app> --to 2.4.0 # pin the target
It scaffolds both references (reused across runs; --fresh rescaffolds), auto-detects the router (--template overrides), and prints one verdict per file on the surface plus the @sitecore* range table. Exit 1 = stale or new-absent findings; exit 2 = the harness could not stand behind a result (scaffold failed, self-check failed).STALE — the app still has the old OOTB file byte-for-byte: copy the new reference file over it.NEW ABSENT — a route/config the target ships and the app lacks: copy it in, and check for a paired next.config rewrite or .env*.example entry (the script lists those as their own surface files).CUSTOMIZED — the app's copy matches neither reference: the script prints every upstream +/- line with whether it is present in the app (?! marks the unexpected ones). Apply the upstream hunks into the customization by hand, then state a verdict per file — upstream hunks applied / deliberately not applied, because …. ?! is advisory: import type { Metadata } vs import { Metadata }, or spreading ...getPageMetadata() under the app's own alternates, are correct and will flag.REMOVED / APP-DROPPED — upstream deleted a file the app keeps, or the app deleted an OOTB file upstream changed: decide, and record why.!! in the range table — bump every @sitecore-content-sdk/* package to the template's range together, cross-checked against the what's-new matrix from step 2.npm install, rm -rf .next, npm run build; then apply the behavioural items from step 1 that no file carries, and re-verify the router-specific surfaces (Hard Rules).node scripts/upgrade-surface.mjs --app <head-app> --from-git HEAD~1 --quiet # exit 0, or the list of what is still missing
Test editing, preview and the Components Preview page on the editing host after the deploy.npx cannot reach the registry the upgrade is blocked, not estimated.CHANGELOG.md is not the changelog. It ends at 2.1.0. Each package keeps its own, current one (for example packages/nextjs/CHANGELOG.md, at 2.5.1 on 2026-11-30); read that or the GitHub Release. Citing it as read for any version ≥ 2.2 is a false claim of having read the notes — the per-package GitHub Releases are the record.[email protected]; 2.3.0/2.3.1/2.3.2 all pin ^2.3.0, 2.4.0 pins ^2.4.0. The script resolves from as the newest stable CLI release whose template pins the app's installed minor (falling back to the highest release at or below it) and WARNs when the resolved reference does not pin the app's minor — pass --from explicitly then. Read the version from package-lock.json, never the ^ range.nextjs: 2.3 adds facet + locale, 2.4 adds suggest + more-like-this. upgrade-surface.mjs does not diff the search API; read packages/search/CHANGELOG.md (content-sdk-search).3.0.0-beta.atoms is a sideways move, not an upgrade: since the 20261021204512 stamp it is stable 2.4.1 plus atoms (earlier stamps forked pre-2.3 dev and lacked the 2.3/2.4 features), without the 2.5.0-canary changes. Moving onto it means exact beta pins on the whole app (content-sdk-app-router-atoms).@sitecore-content-sdk/* packages together to a consistent set unless the user requests a partial upgrade. Check peer dependencies.src/proxy.ts chain (content-sdk-{app,pages}-router-multisite-management), the editing path (content-sdk-{app,pages}-router-editing-safe-rendering), the component map(s) (content-sdk-{app,pages}-router-component-registration), and the data flow / static params (content-sdk-{app,pages}-router-graphql-data-fetching, -route-configuration)..agents/, .cursor/, AGENTS.md, CLAUDE.md, Skills.md, README.md are excluded from the surface by default (--include-docs re-admits them) — they are the CLI's agent-instruction payload, curated separately, and they dwarf the code surface (14 of 26 changed files on 2.2 → 2.4)..next/, node_modules/, or lockfiles by hand. Do not change CI or root tooling unless the task explicitly includes it. Delete .next/ after the bump before any build-reading check — Next's fetch cache survives incremental builds.--to to see the latest stable and the surface it implies, then ask.NEW ABSENT route or a CUSTOMIZED hunk requires a product or deployment decision (new env var, config schema, a route the editing host will call); list the required changes with the script's output and ask the user to confirm.scripts/upgrade-surface.mjs — the three-way OOTB diff (dependency-free Node; --json for tooling).CHANGELOG.md ends at 2.1.0.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk23 skills in this plugin
/content-sdk-analytics-eventsSends Content SDK analytics events: analytics and events plugins, pageView, event, form, identity, field limits, client vs server, bot and editing suppression. Use when adding or debugging tracking calls. Not consent or personalization./content-sdk-atomic-design-assessmentAssesses a Content SDK head app for Atomic Design: scan src/components, rate each low-code candidate / partial / keep-code, derive the atom set, plan a side-by-side migration. Use when asked which components could become atoms. Not writing atoms./content-sdk-Other plugins' skills for the same job