/sitecore-content-sdk-nextjs-app-router:content-sdk-app-router-troubleshoot-editingfrom Sitecore Content SDK - Next.js App Router
Diagnoses editing, preview, and design library issues in Sitecore Content SDK App Router apps: draftMode, preview data, locale, component maps, and API route reachability.
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 skill focuses on diagnosing editing, preview, and design library issues. For implementing editing-safe rendering (draftMode, getPreview/getDesignLibraryData, API routes), use the content-sdk-app-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 draftMode() for preview data: from the request headers in the plain template, from searchParams in the Cache Components template.
draftMode() and the template's preview source (headers via getPreviewData, or searchParams) for getPreview/getDesignLibraryData; ensure setRequestLocale is called at the top of the page. Verify editing API routes are not rewritten (check proxy matcher) and both component maps include the component. Check env (editingSecret, API config) and .env.example documentation.draftMode() in Server Components; when enabled, the plain template calls client.getPreviewData(await headers()) and passes the result to isDesignLibraryPreviewData, client.getDesignLibraryData or client.getPreview; the Cache Components template passes await searchParams to the same calls instead (create-content-sdk-app templates, checked 2026-11-30). A preview read wrapped in 'use cache' shows stale drafts. Ensure site/locale are passed correctly (e.g. from route params or editingParams).setRequestLocale(\${site}_${locale}`)` is called at the top of the page; missing setRequestLocale can cause locale or dictionary issues in editor.src/app/api/editing/config/route.ts, editing/render/route.ts) must be reachable and use the same component maps (component-map.ts and component-map.client.ts) and config as the app. Check matcher in proxy.ts so /api/editing is not rewritten or blocked.[[...path]]/layout.tsx calls setCachedPageParams({ site, locale }) and not-found.tsx reads getCachedPageParams().<html lang="en"> → the editing render takes [locale] from route, not sc_lang (measured 2026-10-02); see content-sdk-app-router-dictionary-and-i18n § 8.library-low-code mode / atoms:* events (beta.atoms only) → content-sdk-app-router-atoms.content-sdk-app-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
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