/sitecore-content-sdk-nextjs-app-router:content-sdk-app-router-route-configurationfrom Sitecore Content SDK - Next.js App Router
Manages the catch-all [site]/[locale]/[[...path]] route, layout hierarchy, and placeholder rendering in a Sitecore Content SDK Next.js App Router app. Use when changing routes, fixing 404s, or modifying the root/site layout.
Ships in Sitecore Content SDK - Next.js App Router. 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.
None: SKILL.md is the whole skill.
Single catch-all route and layout hierarchy. Site and locale are in the path; proxy rewrites incoming requests to /[site]/[locale]/...path.
src/app/[site]/[locale]/[[...path]]/page.tsx. Use await params for { site, locale, path? }; pass to getPage and call setRequestLocale(\${site}_${locale}`)` at the top. Layout: app/layout.tsx → app/[site]/layout.tsx (Bootstrap, draftMode) → page. Not-found: use getCachedPageParams and getErrorPage in the route's not-found.tsx.src/app/[site]/[locale]/[[...path]]/page.tsx. This is the only page that renders Sitecore content. Do not add another page or catch-all for Sitecore content.params is a Promise. Use await params to get { site, locale, path? }. Pass site and locale to client.getPage(path ?? [], { site, locale }).setRequestLocale(\${site}_${locale}`)at the **top** of the page so next-intl andsrc/i18n/request.ts` see the correct locale. Do not omit when adding new page branches.app/layout.tsx → app/[site]/layout.tsx (Bootstrap with siteName={site} and draftMode()) → page. Do not put site/locale-specific data fetching in the root layout.getPage returns null, there is no default-language fallback. A locale segment mid-path (/Products/de-DE/x) makes Products the [locale], the not-found page asks Edge for errorHandling(language:"Products"), gets null and throws a 500. Language model: content-sdk-app-router-dictionary-and-i18n.src/app/[site]/[locale]/[[...path]]/layout.tsx calls setCachedPageParams({ locale, site }) (from @sitecore-content-sdk/nextjs), so the segment not-found.tsx knows site and locale without request APIs. Do not call headers() in the segment not-found: it opts the route out of static rendering.src/app/not-found.tsx falls back to the configured default site and language; src/app/global-error.tsx is a Client Component that renders through src/Layout.client.tsx (client map only). Never import the server src/Layout.tsx there.src/app/[site]/[locale]/[[...path]]/not-found.tsx. For Sitecore-driven 404 use getCachedPageParams() from @sitecore-content-sdk/nextjs for site/locale, then client.getErrorPage(ErrorPage.NotFound, { site, locale }).src/proxy.ts is preview → botTracking → locale → multisite → redirects → personalize, instantiated per request with the NextFetchEvent (source: [email protected] dist/templates/nextjs-app-router/src/proxy.ts:16-28,105). BotTrackingProxy must precede PersonalizeProxy, which reads its sc_bot cookie to skip bots (Sitecore's doc says bot tracking must be first; the scaffold puts preview first, follow the scaffold). xmcloud-starter-js main lags (5 proxies, no bot tracking): not a reference. Full rationale: content-sdk-app-router-multisite-management; personalize proxy: content-sdk-personalization; consent skip: content-sdk-tracking-consent.src/proxy.ts alone runs as the proxy; do not add a src/middleware.ts re-export (the template's AGENTS doc saying so is stale).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sitecore, app-router, catch-all-route, layout-hierarchy, placeholder
17 skills in this plugin
/content-sdk-app-router-atom-createWrites a Content SDK atom (beta.atoms): atom vs component, field schemas and enum tokens, renderer, catalog and registry keys, container slots, lock lifecycle, mock-MMS proof. Use when adding or changing an atom. Not wiring atoms into an app./content-sdk-app-router-atomsContent SDK Atoms (beta.atoms only): catalog, atomsConfig, ComponentRef rendering, lock CI gate, runtime CSS, Content Kit install, null-render traps. Use when wiring atoms or a low-code component renders nothing. Not code components or stable apps./content-sdk-app-router-cache-components-and-osrnpx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-nextjs-app-routerOther plugins' skills for the same job