content-sdk-component-data-strategy
How a component receives Sitecore data — route resolve data, SitecoreContextService, placeholder inputs.
от Sitecore★ 39 звёзд на GitHub
Установить content-sdk-component-data-strategy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Component data strategy (Angular)
Detail: AGENTS-loaders-and-di.md#how-data-reaches-components
Read first: src/app/pages/page.component.ts, src/app/shared/layout.component.ts
When
- Deciding how a component gets its Sitecore data
- Data is present on SSR but missing after a client-side navigation
Rules
- Mapped components receive
fields/params/renderingfrom<sc-placeholder>— do not fetch inside them - Page-level data comes from route resolve data (
route.data['page'],['dictionary']), read withtoSignal()as inPageComponent - For reactive access anywhere in the tree, inject
SitecoreContextService(page(),dictionary(),isEditing,effectiveLocale) - New page-level data means a new loader, not a component-level fetch
- Loader results must be JSON-serializable — they cross
TransferStateon first paint andPOST /_dataon navigation
Stop
- Stop if introducing a second data-fetch path (component-level
HttpClientfor layout data) without clear need
Docs: Content SDK for Angular.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл content-sdk-component-data-strategy?
How a component receives Sitecore data — route resolve data, SitecoreContextService, placeholder inputs.
Как установить скилл content-sdk-component-data-strategy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-sdk-component-data-strategy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…