Command Palette

Search for a command to run...

Назад к скиллам
скилл № 85226

content-sdk-component-variants

Multiple renderings of one component type via module exports; regenerate the component map after changes.

БесплатноБез исполняемых скриптов
Sitecoreот 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 with computed() 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), без исполняемых скриптов.

Похожие скиллы

Сравнить content-sdk-component-variants с