/sitecore-content-sdk-nextjs-app-router:content-sdk-app-router-component-data-strategyfrom Sitecore Content SDK - Next.js App Router
Explains how component data flows in a Content SDK App Router app: layout data from getPage, editing data, site/locale from route params, Server vs Client components, and BYOC registration. Use when wiring component props or choosing server vs client.
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.
This app does not use getComponentData. Page and layout data come from getPage (or getPreview/getDesignLibraryData in editing). Component props are derived from the layout/placeholders; pass site and locale from route params.
client.getPage(path ?? [], { site, locale }) in the catch-all page (or getPreview/getDesignLibraryData when draftMode() is enabled). All Sitecore-driven data flows from this single fetch at the route level. Cache Components template: non-preview reads go through getSitecorePage and getSitecoreDictionary in src/lib/cache/, never client.getPage directly.fields / params seeded into json-render state ($state: /fields/<Field>). They are client-rendered after a server MMS fetch, with no ComponentQuery → content-sdk-app-router-atoms.content-sdk-app-router-graphql-data-fetching skill and Content SDK skills overview for getPage and data flow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-osrOn-demand revalidation (OSR) for a Content SDK App Router app: template choice, version floor, /api/revalidate contract, cache tags, cacheProfile. Use when content is stale after publish. Not Edge webhook setup./content-sdk-app-router-component-level-navigationNavigation via component-level GraphQL in a Content SDK App Router app: server fetches top levels, client lazy-loads deeper ones via a route handler. Use for main, footer or sidebar nav, or when the SXA nav resolver returns empty./content-sdk-app-router-component-registrationRegisters components in the generated Content SDK App Router component maps (.sitecore/component-map*.ts, never hand-edited). Use when adding a component, a placeholder shows the raw name, or the editor cannot find a component./content-sdk-app-router-component-scaffoldCreates a new Sitecore component in a Content SDK App Router app: file layout, props interface, src/components/ placement, Server vs Client choice. Use when asked to add, create or scaffold a component Sitecore layout renders.npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-nextjs-app-routerOther plugins' skills for the same job