content-sdk-component-variants
Multiple renderings of one component type via module exports; regenerate the component map after changes.
от Sitecore★ 39 звёзд на GitHub
Установить content-sdk-component-variants в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Component variants (Angular)
Detail: AGENTS-key-concepts.md#component-map
Read first: .sitecore/component-map.ts
When
- One component type with multiple presentations or SXA variants
Rules
- Export the default variant as the module default and each named variant as a named export from the same file — the map spreads the module (
{ ...Module }) - Follow existing patterns in
src/app/components/ - Regenerate the map after changes (
npm run sitecore-tools:generate-map) - Variant selection comes from
rendering.params; read it withcomputed()rather than branching in the template
Stop
- Stop if a variant rename would break published layout without a Sitecore update
Docs: Content SDK for Angular.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл content-sdk-component-variants?
Multiple renderings of one component type via module exports; regenerate the component map after changes.
Как установить скилл content-sdk-component-variants?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-sdk-component-variants запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…