/sitecore-content-sdk-angular:content-sdk-angular-personalization-and-analyticsfrom Sitecore Content SDK - Angular
Configures Sitecore CDP personalization middleware, analytics events (pageView, event, identity, form), and bot tracking for Angular Content SDK head apps. Use when variants don't apply or you need to add analytics events.
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.
Personalize middleware, analytics events and bot tracking in an Angular head app. Paths are relative to the head app.
Read first: src/server.ts, src/app/components/content-sdk/cdp-page-view.component.ts.
Personalization. createPersonalizeMiddleware(...) calls Sitecore CDP and writes variantId / componentVariantIds onto req.scParams. pageLoader forwards them with getVariantId(context) / getComponentVariantIds(context) into getPage(..., { personalize: { ... } }).
/api/*, editing and preview, bots, and prefetch requests (x-sc-purpose: prefetch). A prefetch must never fire a CDP exposure event.contextId / clientContextId) and does not work against local containers.Cache-Control: private, no-store so CDNs never cache one visitor's variant.Analytics. Inject the SITECORE_ANALYTICS token (pageView, event, identity, form). cdp-page-view.component.ts is the reference consumer: it fires pageView on navigation only when page.mode.isNormal. The browser implementation is disabled in isDevMode() and when api.edge.clientContextId is missing. The server implementation needs req / res on REQUEST_CONTEXT.
Bot tracking. createBotTrackingMiddleware(...) sets the sc_bot cookie and emits a dedicated bot page-view. It does not run on localhost/dev. It must run before personalize, because the cookie gates the skip.
getVariantId(context) / getComponentVariantIds(context).page.mode.isNormal.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-data-strategyHow a component gets Sitecore data in an Angular Content SDK app: placeholder inputs, route resolve data, SitecoreContextService, no component-level fetch. Use when wiring data or it is missing after navigation. Not Next.js./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.npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-angularOther plugins' skills for the same job