/sitecore-content-sdk-angular:content-sdk-angular-route-configurationfrom Sitecore Content SDK - Angular
Configures Angular Content SDK routing with a catch-all for Sitecore content behind scLocaleMatcher, synced with server routes. Use when changing routes or fixing 404/500 status.
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.
Routing in an Angular head app: one catch-all for Sitecore content behind scLocaleMatcher, mirrored in the server routes. Paths are relative to the head app.
Read first: src/app/app.routes.ts, src/app/app.routes.server.ts.
src/app/app.ts with template src/app/app.html: <sc-editing-scripts />, <app-cdp-page-view />, <router-outlet />. Do not fetch Sitecore data here.path: '**' route inside the scLocaleMatcher(scConfig.angular.locales) block renders PageComponent and resolves { page: loaderResolver('page'), dictionary: loaderResolver('dictionary') }. scLocaleMatcher consumes the first URL segment when it matches a configured locale (exposed as the locale route param) and otherwise consumes nothing, so unprefixed URLs still match.404 and 500 exist at the top level in unprefixed and :locale/-prefixed form, plus inside the matcher block, so @angular/ssr can match them and emit the right status. Each resolves its own loader (loaderResolver('404') / loaderResolver('500')), which calls getClient().getErrorPage(...).src/app/app.routes.server.ts maps the same paths to RenderMode.Server and sets status: 404 / status: 500. Adding or renaming a route means updating this file too, or the response status will be wrong.PageComponent reads toSignal(route.data) and passes page into <app-layout [page]="pageValue">.provideRouter(routes, withNavigationErrorHandler(handleNavigationError())) turns NotFoundNavigationError / LoaderHttpError into navigation to notFoundRoute / errorRoute, configured in provideSitecoreAngular().path: '**' to PageComponent, inside the scLocaleMatcher(scConfig.angular.locales) block.loaderResolver('<key>'); the key must exist in LOADERS.404 / 500 exist unprefixed and :locale/-prefixed.app.routes.ts needs the matching ServerRoute update in app.routes.server.ts (render mode and status).app.ts.app.routes.server.ts.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-angular18 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.Other plugins' skills for the same job