/sitecore-content-sdk-angular:content-sdk-angular-editing-safe-renderingfrom Sitecore Content SDK - Angular
Makes Angular Content SDK components render correctly in Sitecore Pages editing, preview, and Design Library. Fixes broken editing by configuring metadata mode, editing middleware, preview data loading, and editing scripts.
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.
Editing and preview in an Angular head app. Paths are relative to the head app.
Read first: src/content-sdk/loaders/page.loader.ts, src/app/app.html.
GET /api/editing/render. createEditingRenderMiddleware() validates the secret, sets the CSP frame-ancestors header, attaches the preview payload to the same Express req, rewrites the URL and hands off to Angular SSR. Unlike Next.js there are no preview cookies and no internal HTTP round-trip.getEditingPreviewData(context.csdkRequestData), then getClient().getPreview(previewData).<sc-editing-scripts /> is the first element in src/app/app.html. It injects the Pages client scripts when page.mode.isEditing. page.mode exposes isEditing, isPreview, isNormal./api/editing/config (component map keys + .sitecore/metadata.json + editMode: 'metadata'), /api/editing/experimental, /api/editing/render. All stay registered before the static handler and the SSR handler.<sc-placeholder> emits <code class="scpm"> chrome markers and tags empty placeholders with sc-jss-empty-placeholder.getEditingPreviewData(context.csdkRequestData) in the loader, then getClient().getPreview().<sc-editing-scripts /> stays the first element of src/app/app.html.*sc* directives so the <code class="scpm"> markers are emitted. Bypassing them breaks editing.page.mode.isEditing / .isPreview / .isNormal, not on env checks.src/server.ts or remove editing metadata from fields.What SKILL.md sets; muted values are Claude Code's defaults
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-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