content-sdk-site-setup-and-env
sitecore.config.ts and the CSDK_PUBLIC_ browser/server env split; document in .env.example only.
от Sitecore★ 39 звёзд на GitHub
Установить content-sdk-site-setup-and-env в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Site setup and env (Angular)
Detail: AGENTS-key-concepts.md#environment-and-config
Read first: sitecore.config.ts, .env.example, scripts/generate-environment.ts
When
- Configuring site, API, or environment variables
- Adding a new environment variable
Rules
- Browser-safe values must be named
CSDK_PUBLIC_*—scripts/generate-environment.tscopies only those intosrc/environments/environment.{dev,prod}.ts - Server secrets (
SITECORE_EDITING_SECRET,SITECORE_REVALIDATE_SECRET,SITECORE_EDGE_CONTEXT_ID,SITECORE_API_KEY) stay inprocess.env; never give them aCSDK_PUBLIC_name process.envdoes not exist in the browser — that is why the generated environment files exist; do not readprocess.envfromsrc/app/**sitecore.config.tsisdefineConfig({}, environment). Non-secret structural settings go in the first argument (angular.locales,angular.loadersCache,angular.linkPrefetch,multisite,redirects,personalize); the app ships{}there. Endpoints, keys and secrets come from env via the second argument andprocess.env— never as literalsscConfig.*is the resolved, read-only result ofdefineConfig. Change configuration by editingsitecore.config.ts, never by assigning toscConfigat runtime- Document every new variable in
.env.examplewith a placeholder; never commit.env - Regenerate env files with
npm run gen:env:dev/gen:env:prod; never hand-editenvironment.dev.ts/environment.prod.ts
Stop
- Stop if asked to commit secrets, hardcode API keys, or expose a server secret through a
CSDK_PUBLIC_variable
Docs: Content SDK for Angular.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл content-sdk-site-setup-and-env?
sitecore.config.ts and the CSDK_PUBLIC_ browser/server env split; document in .env.example only.
Как установить скилл content-sdk-site-setup-and-env?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-sdk-site-setup-and-env запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…