/sitecore-content-sdk-nextjs-pages-router:content-sdk-pages-router-troubleshoot-editingfrom Sitecore Content SDK - Next.js Pages Router
Diagnoses editing, preview, and design library issues in SitecoreAI Pages Router apps. Checks context.preview, context.previewData, editing API routes, proxy matcher, and component-map registration.
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 skill focuses on diagnosing editing, preview, and design library issues. For implementing editing-safe rendering (context.preview, getPreview/getDesignLibraryData, API routes), use the content-sdk-pages-router-editing-safe-rendering skill; the two are complementary (implementation vs. troubleshooting).
Diagnose and fix editing, preview, and design library issues without breaking the single client or proxy order. This app uses context.preview and context.previewData in getStaticProps/getServerSideProps.
context.preview and context.previewData. When in preview, use client.getPreview(context.previewData) or client.getDesignLibraryData(context.previewData). Ensure path and locale come from extractPath(context) and context.locale when not in preview.src/pages/api/editing/config.ts (EditingConfigMiddleware), render.ts (EditingRenderMiddleware), feaas/render.ts (FEAASRenderMiddleware) must be reachable and use the same component map (.sitecore/component-map.ts) and config as the app. Check proxy config.matcher so /api is excluded and not rewritten or blocked.content-sdk-pages-router-editing-safe-rendering skill and Content SDK skills overview for preview and editing 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-data-strategyComponent data in a Content SDK Pages Router app: getComponentData after getPage resolves component props for the layout. Use when wiring component data or BYOC in a Pages Router app. Not App Router./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-scaffoldnpx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-nextjs-pages-routerOther plugins' skills for the same job