/sitecore-platform:sitecoreai-site-templatefrom Sitecore Platform (SitecoreAI)
Builds SitecoreAI site templates for the Create Site dialog or page blueprints from a spec, and captures existing sites/pages as reusable templates. For reusable sites or campaign pages, not one-off sites.
Ships in Sitecore Platform (SitecoreAI). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A site template is one item of data template Solution template {1B2DFD3B-F2F2-4F40-A75C-F6C2490919C4}. The Create Site dialog lists every such item through Authoring GraphQL solutionTemplates, wherever it sits. It lists immediately: no deploy, publish or index rebuild.
A new site runs the setup root (HeadlessSiteSetupRoot) of every module in the template's Site Modules. Those setup roots hold AddItem, ExecuteScript and PostSetupStep actions. "Skatepark" is the built-in Basic template.
A page blueprint is a branch template in a collection's Branches/Project/<collection> folder. It is offered through insert options, so "Create a page" produces a prefilled page with $name expanded and page-local datasources. Ids and the scaffold order: references/anatomy.md.
| The requirement says | Build | Why |
|---|---|---|
| own hostname, own navigation or brand, separate microsite | site template (build-template) | Only a site has its own host, start item, header/footer and Edge site entry. Going live still needs a head-app rebuild (sites are discovered at build) and a host. |
| campaign / landing / event pages inside an existing site | page blueprint (build-blueprint) | Seconds for a marketer, no new site, host or deploy. |
| every new site of a template should offer such pages | blueprints inside the site template spec (blueprints[]) | Each new collection gets its own branch copies. |
| "save this site / this page as a template" | capture (extract-spec), then build | Round trip measured exact on Edge (components, placeholders, grid, styles, text). |
All scripts take --cm-host <xmc-….sitecorecloud.io> --client-prefix <PREFIX> [--env-file <.env>]. Secrets come only from <PREFIX>_ID/_SECRET.
Site template
Write the spec (references/spec-format.md, example assets/example.spec.json): page types, pages, components, partials, renderingHost, thumbnail (or make-thumbnail.mjs --primary #hex --accent #hex), optional blueprints.
build-template.mjs --spec x.json --component-map <head-app>/.sitecore/component-map.ts --dry-run.
Run the same command without --dry-run to build.
verify-template.mjs --spec x.json --smoke --environment-id <deploy env id> creates a fresh collection and a site, then checks:
It then cleans up: the site and collection this run created, nothing else. --keep keeps the site. --site-name <name> names the site and requires --keep, and a name that already exists is refused (exit 2), so an existing site is never removed. --collection <name> reuses an existing collection and requires --keep; it is refused otherwise, so a shared collection is never removed. Done = VERIFIED, plus one site created through the dialog by a human, checked in Page Builder.
Page blueprint in an existing site
{ site, name, pageTemplate?, offerOn?, fields?, components }.build-blueprint.mjs --spec bp.json --component-map … --smoke --environment-id …. It lints, writes the branch, and offers it on the offerOn templates' standard values and on Home (Home overrides at item level). It then creates a test page, checks it including Edge, and deletes it.Capture an existing site or page
extract-spec.mjs --site <name> --out x.json --name "…" gives a site-template spec. Add --page "<path under Home>" [--target-site <s>] to get a blueprint spec instead.WARN. Set renderingHost when the source binds to Default, add a thumbnail, then build and verify as above.
site:<relative path> tokens. They resolve in the new site, and a missing one is logged and skipped.datasource.children), or internal links into the source site; each is warned.Optional, durable: emit-module.mjs writes a serialization module for ser pull -i; without it a template lives only in this CM. Remove: remove-template.mjs. It refuses while foreign items sit under the module roots, Templates or the script library's Functions (hand-made templates; --force overrides) and while sites carry the template's id in SiteTemplate, and reports a locked path instead of stopping.
/sitecore/templates/<Layer>/<module>/<Type> inherit the five base templates of a collection Page. At site creation the script creates collection types of the same name that inherit the module type and the collection Page, which owns Title and Content. It throws if another template family already owns that type name in the collection, and never edits shared collection templates.Test-Path guards), not by AddItem.Base Page would otherwise hide every page type.-FinalLayout on pages and shared layout on partials. Datasources sit under <owner>/Data as local:/Data/<name>, and each rendering gets a DynamicPlaceholderId. A Container places its children in /<ph>/container-<id>, nested to any depth.Default. A custom rendering has no Headless Variants folder on a new site, so the folder is created too (template from a sibling folder; definition template from an existing definition), and FieldNames is the variant item id.datasource.children creates child items (gallery frames, list rows, nested to any depth) in array order with explicit __Sortorder. datasource.insertOptions writes the datasource's __Masters, so authors can add rows in Pages. Pages, partials and blueprints take both. A failing child is collected like a failing component, and verify checks the child count and the __Masters read-back. Syntax: references/spec-format.md.dictionary[] makes Dictionary entries and settings{} sets fields on <site>/Settings (e.g. RobotsContent). An unknown top-level spec key warns in the lint. Failures: each component is added inside try/catch, so one failure no longer drops the rest. Failures are collected and thrown once, so the job reports them.Default Page Design maps the collection Page and every type to them. The host is bound in a PostSetupStep, which logs when the host is missing.references/traps.md)Spe.log: NullReferenceException in New-Item). Generated scripts use template IDs and master: paths. Have a human create one site through the dialog before calling a template done.FINISHED and the dialog shows success; only job.status.exceptions has the error. Always smoke-verify.Page base. The dialog keeps one template family per collection, but createSite over the API does not.__Masters (Base Page) overrides page-type insert options.Default.Enabled=0 shows greyed out. No thumbnail gives a skeleton card.?-prefixed s:par (Basic), site-local Styles and NavigationRoot ids, and site-created variants (Banner on Image). The extractor and scaffold handle all of them./ arguments become Windows paths (MSYS_NO_PATHCONV=1).availableRenderings group and must exist in the head app.references/starter-ccl.md.assets/example.spec.json (opens in a new tab)assets/northwind-thumb.png (opens in a new tab)references/anatomy.md (opens in a new tab)references/spec-format.md (opens in a new tab)references/starter-ccl.md (opens in a new tab)references/traps.md (opens in a new tab)scripts/__tests__/datasource-children.test.mjs (opens in a new tab)scripts/__tests__/emit-ps-literals.test.mjs (opens in a new tab)scripts/__tests__/emit-typographic-quotes.test.mjs (opens in a new tab)scripts/__tests__/layout-blueprint-extract.test.mjs (opens in a new tab)scripts/__tests__/remove-template-guard.test.mjs (opens in a new tab)scripts/__tests__/spec-and-emit.test.mjs (opens in a new tab)scripts/__tests__/verify-collection-guard.test.mjs (opens in a new tab)scripts/build-blueprint.mjs (opens in a new tab)scripts/build-template.mjs (opens in a new tab)scripts/emit-module.mjs (opens in a new tab)scripts/extract-spec.mjs (opens in a new tab)scripts/lib/children.mjs (opens in a new tab)scripts/lib/client.mjs (opens in a new tab)scripts/lib/emit-ps.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-platform17 skills in this plugin
/sitecoreai-agentSitecoreAI Agent API: high-level REST actions such as create page with components, create personalization version and generate brief. Use as the default entry point for apps, MCP servers or automations. It powers the Marketer MCP./sitecoreai-authOAuth client-credentials auth for the SitecoreAI APIs (Agent, Pages, Publishing, Sites): automation client, token endpoint, scopes, env vars, caching, 401s. Load before the first API call. Not head-app Edge context ids./sitecoreai-brand-voiceWrites Sitecore page content in a brand's voice and identity, taken from the PRD or spec or a Sitecore brand kit, never guessed. Sets register (brand, marketing, technical-neutral). Use for copy on a brand or client site. Not page structure./sitecoreai-cli-cloud-workflowSitecore CLI against a SitecoreAI tenant: login, project and environment lookup, connect, ser pull and push, and their silent traps. Use when pulling, pushing or moving a site between tenants, or on CLI environment errors./sitecoreai-content-compositionInventory-first page composition via the Marketer MCP: inventory the site's real components, then compose a page by choosing and ordering them, with the verified add-component recipe. Use when authoring or extending a page, not a single field./sitecoreai-edge-admin-webhooksExperience Edge Admin API: admin client, token, webhook CRUD (OnEnd vs OnUpdate), settings, cache clear, which webhook fits which job. Use when registering, testing or debugging a publish webhook. Not head-app revalidation code.Other plugins' skills for the same job