/sitecore-content-sdk-nextjs-app-router:content-sdk-app-router-component-registrationfrom Sitecore Content SDK - Next.js App Router
Registers Sitecore components in auto-generated App Router component maps (.sitecore/component-map*.ts). Use when adding a component, a placeholder shows the raw name, or the editor cannot find a component.
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.
Register components in the Sitecore component maps so the layout and editing pipeline can resolve and render them. This app has two maps: server and client.
.sitecore/component-map.ts or .sitecore/component-map.client.ts..sitecore/component-map.ts (Server) and .sitecore/component-map.client.ts (Client) are produced from src/components/ by sitecore-tools project component generate-map, which the scaffold wires into both npm run dev and npm run build (npm-run-all --serial sitecore-tools:generate-map …), plus a --watch variant during dev. So the normal way to register a component is to create the file in src/components/ and re-run dev/build.npm run sitecore-tools:generate-map. Edit a map by hand only when the generator genuinely cannot express your case — and expect the next dev/build to overwrite it.This is what the generator emits, shown so you can recognise a correct map and spot a broken one — not a template to type out. The map key is the layout componentName (case-sensitive). Each entry spreads the imported module ({ ...Promo }). A Server Component appears in component-map.ts only. A 'use client' component appears in both maps — the server entry tagged componentType: 'client', the client entry untagged.
// .sitecore/component-map.ts — Server map
import { NextjsContentSdkComponent } from '@sitecore-content-sdk/nextjs';
import * as Promo from 'src/components/Promo/Promo';
import * as StatsBand from 'src/components/StatsBand/StatsBand';
export const componentMap = new Map<string, NextjsContentSdkComponent>([
// ...built-ins from the scaffold (BYOCWrapper, FEaaSWrapper, Form) stay as-is...
['Promo', { ...Promo }], // server component
['StatsBand', { ...StatsBand, componentType: 'client' }], // client comp placed in a server placeholder
]);
export default componentMap;
// .sitecore/component-map.client.ts — Client map ('use client' components only)
import { NextjsContentSdkComponent } from '@sitecore-content-sdk/nextjs';
import * as StatsBand from 'src/components/StatsBand/StatsBand';
export const componentMap = new Map<string, NextjsContentSdkComponent>([
// ...built-ins (BYOCWrapper, FEaaSWrapper, Form)...
['StatsBand', { ...StatsBand }],
]);
export default componentMap;
A wrong/missing key renders <MissingComponent>. If a component is missing from a map, the fix is almost always re-run the generator, not add the line by hand — a component absent after regeneration usually means it is not where the generator looks (src/components/) or does not export what it expects.
npm run sitecore-tools:generate-map (or just npm run dev / npm run build), not by editing the maps. Do not hand-edit generated entries unless the generator cannot handle the case.'use client'): the generator emits them into .sitecore/component-map.ts only.'use client'): the generator emits them into both maps — .sitecore/component-map.client.ts, and .sitecore/component-map.ts tagged componentType: 'client'. Editing API routes consume both (e.g. clientComponents from the client map). Verified against generated output: in a 32-component app all 9 client components appeared in both maps..sitecore/component-map*. A rendering whose params carry ComponentRef bypasses the map entirely (checked after FEaaS/BYOC, before the map lookup) → content-sdk-app-router-atoms..sitecore/metadata.json or import-map unless the task explicitly requires it.content-sdk-component-naming-traps.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-osrnpx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-nextjs-app-routerOther plugins' skills for the same job