/sitecore-content-sdk-nextjs-pages-router:content-sdk-pages-router-component-data-strategyfrom Sitecore Content SDK - Next.js Pages Router
Wires component data in a Sitecore Content SDK Pages Router app using getComponentData after getPage. Use when integrating BYOC or resolving component props for the layout.
Ships in Sitecore Content SDK - Next.js Pages 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 uses getComponentData. After getPage, use client.getComponentData(page.layout, context, components) to resolve component props and pass the result to the layout renderer. All Sitecore-driven component data goes through this flow.
client.getPage(path, { locale: context.locale }), (2) client.getDictionary({ site: page.siteName, locale: page.locale }), (3) client.getComponentData(page.layout, context, components) to resolve component props. Return { props: { page, dictionary, componentProps }, notFound: !page }. Pass these props to Providers and Layout; do not fetch Sitecore data in _app..sitecore/component-map.ts and receive props in the shape the layout expects (e.g. fields, params). getComponentData will pass the resolved props.content-sdk-pages-router-graphql-data-fetching skill and Content SDK skills overview for getPage, getComponentData, and data flow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/content-sdk-pages-router-component-registrationRegisters components in the generated .sitecore/component-map.ts of a Content SDK Pages Router app (regenerate, never hand-edit). Use when adding a component or layout or the editor cannot find one. Not App Router./content-sdk-pages-router-component-scaffoldCreates a new Sitecore component in a Content SDK Pages Router app: file layout, props interface, src/components/ placement, generated component map. Use when adding or scaffolding a component. Not App Router./content-sdk-pages-router-component-variantsnpx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-nextjs-pages-routerOther plugins' skills for the same job