/sitecore-content-sdk-angular:content-sdk-angular-component-data-strategyfrom Sitecore Content SDK - Angular
Explains how Angular components receive Sitecore data in a Content SDK app: placeholder inputs, route resolve data, SitecoreContextService, and no component-level fetch. Use when wiring data or it is missing after navigation.
Ships in Sitecore Content SDK - Angular. 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.
How a component receives Sitecore data in an Angular head app (standalone components, signals, Angular SSR). Paths are relative to the head app.
Read first: src/app/pages/page.component.ts, src/app/shared/layout.component.ts.
How data reaches components:
TransferState under loader:<loaderId>:<url>.TransferState key once and removes it.ClientLoaderDataService POSTs to /_data, which runs the same loader on the server through the same cache. ClientPreLoaderDataService prefetches all loader ids for the target route in parallel (Angular resolvers otherwise run sequentially); prefetch requests carry x-sc-purpose: prefetch so personalization skips the CDP call.ActivatedRoute.data['page'] and ['dictionary'], and reactively through SitecoreContextService.page() / .dictionary().PageComponent reads toSignal(route.data) and passes page into <app-layout [page]="pageValue">. Placeholders are rendered with <sc-placeholder [name]="'headless-main'" [rendering]="scRoute()!">; each rendering is resolved against SITECORE_COMPONENT_MAP and instantiated, and the component receives fields, params and rendering as inputs.
fields / params / rendering from <sc-placeholder>. Do not fetch inside them.route.data['page'], ['dictionary']), read with toSignal() as in PageComponent.SitecoreContextService (page(), dictionary(), isEditing, effectiveLocale).TransferState on first paint and POST /_data on navigation. Class instances, functions, Date objects and Maps do not survive./_data. The request body sent to /_data cannot be trusted to declare hostname, cookies or site; the server derives those from the real Express req.HttpClient for layout data) without clear need.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/content-sdk-angular-component-registrationRegisters components in .sitecore/component-map.ts and the SITECORE_COMPONENT_MAP token in an Angular Content SDK app. Use when a component shows as missing or the map changes. Not Next.js./content-sdk-angular-component-scaffoldCreates a standalone Sitecore component under src/app/components/ in an Angular Content SDK app: input() signals, default export, field directives. Use when adding a component. Not Next.js./content-sdk-angular-component-variantsVariants of one component type in an Angular Content SDK app via module exports and rendering.params, then map regeneration. Use for variants or several presentations of one component. Not Next.js./content-sdk-angular-dictionary-and-i18nLocales in an Angular Content SDK app: URL segments, scLocaleMatcher, angular.locales, getLanguage, dictionary via ngx-translate. Use for locale or translation issues. Not Next.js./content-sdk-angular-editing-safe-renderingMakes Angular Content SDK components work in Sitecore Pages editing, preview and Design Library: metadata mode, getEditingPreviewData, sc-editing-scripts. Use when editing breaks. Not Next.js./content-sdk-angular-field-usage-image-link-textRenders Sitecore fields in Angular templates with the structural directives scText, scRichText, scImage, scLink, scRouterLink. Use for title, body, image or link fields. Not Next.js components.npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-angularOther plugins' skills for the same job