/sitecore-content-sdk-angular:content-sdk-angular-site-setup-and-envfrom Sitecore Content SDK - Angular
Configures Sitecore Content SDK environment variables and site settings for Angular head apps. Covers sitecore.config.ts, CSDK_PUBLIC_ browser vs server env, and generated environment files.
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.
Configuration and environment variables of an Angular head app. Paths are relative to the head app.
Read first: sitecore.config.ts, .env.example, generate-environment.ts (in the app scripts folder).
sitecore.config.ts: defineConfig({}, environment) from @sitecore-content-sdk/angular/config. It merges explicit overrides (first argument, shipped as an empty {}), the browser-safe CSDK_PUBLIC_* values from src/environments/environment.ts (second argument) and process.env on the server. This file is the only place Sitecore configuration changes. Structural settings go in the first argument: angular.locales, angular.loadersCache, angular.linkPrefetch, multisite, redirects, personalize. Endpoints, keys and secrets stay in env. The exported scConfig the rest of the app imports is the resolved, read-only result.generate-environment.ts (in the app scripts folder) reads .env, .env.local and .env.dev / .env.prod and writes only CSDK_PUBLIC_* keys into src/environments/environment.dev.ts / environment.prod.ts. angular.json swaps environment.ts for the right one per configuration. process.env does not exist in the browser; the generation step is the workaround.src/load-env.ts (dotenv) is the first import in src/server.ts and src/main.server.ts. Secrets such as SITECORE_EDITING_SECRET, SITECORE_REVALIDATE_SECRET, SITECORE_EDGE_CONTEXT_ID and SITECORE_API_KEY stay in process.env.sitecore.cli.config.ts: defineCliConfig({ config, build: { commands: [generateMetadata(), generateSites()] }, componentMap: { paths: ['src/app/components'], exclude: ['**/*.spec.ts'] } }). Node/build-time only.angular.json: @angular/build:application builder, outputMode: "server", SSR entry src/server.ts, environment fileReplacements per configuration, allowedCommonJsDependencies.tsconfig.json: path aliases client/*, components/*, lib/*, .sitecore/*.CSDK_PUBLIC_*. Server-only: read it from process.env in src/server.ts or sitecore.config.ts. Either way, document it in .env.example with a placeholder.npm run gen:env:dev / npm run gen:env:prod.CSDK_PUBLIC_*. Only those are copied into environment.{dev,prod}.ts.process.env. Never give them a CSDK_PUBLIC_ name.process.env from src/app/**.defineConfig. Endpoints, keys and secrets come from env via the second argument and process.env, never as literals.scConfig.* is read-only. Change configuration by editing sitecore.config.ts, never by assigning to scConfig at runtime, and do not duplicate a value at a call site..env.example with a placeholder. Never commit .env. If editing .env for local dev, add only the variable name and tell the user to set the value.environment.dev.ts / environment.prod.ts.CSDK_PUBLIC_ variable.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