content-sdk-loader-authoring
Writing loaders in src/content-sdk/loaders/ without Angular DI; LoaderContext helpers and the LOADERS registry.
от Sitecore★ 39 звёзд на GitHub
Установить content-sdk-loader-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Loader authoring (Angular)
Detail: AGENTS-loaders-and-di.md
Read first: src/content-sdk/loaders/page.loader.ts, src/content-sdk/loaders/index.ts
When
- Adding, changing, or debugging a loader
- Any edit under
src/content-sdk/ - A component needs Sitecore data it does not currently receive
Rules
- Loaders live in
src/content-sdk/loaders/, never insrc/app/ - No
inject(), no constructor DI, no Angular services in a loader body — loaders also run from plain Express middleware atPOST /_data, where there is no injector - Get config and client by static import:
scConfigfromsitecore.config.ts,getClient()from../client/sitecore-client - Get request state from the
LoaderContextargument:getLanguage,getSiteName,getVariantId,getComponentVariantIds,getEditingPreviewData,splitLocaleFromPath - Register in the one
LOADERSobject; the key must match theloaderResolver('<key>')argument inapp.routes.ts - Return JSON-serializable data — results cross
TransferState - Signal not-found with
throw new NotFoundNavigationError()
Stop
- Stop if the task requires per-request Angular state that only DI can provide — surface the conflict instead of injecting into a loader
- Stop if asked to move loaders under
src/app/or to maintain a second server-side loader set
Docs: Content SDK for Angular.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл content-sdk-loader-authoring?
Writing loaders in src/content-sdk/loaders/ without Angular DI; LoaderContext helpers and the LOADERS registry.
Как установить скилл content-sdk-loader-authoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-sdk-loader-authoring запускает скрипты?
Нет, скилл состоит только из инструкций (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…