xmcloud-starter-js: Instructions file for Claude Code

CLAUDE.md

xmcloud-starter-js CLAUDE.md is an instructions file for Claude Code from Sitecore/xmcloud-starter-js. It costs 9,685 tokens per session, scanned A, original, Apache-2.0.

Repository-specific coding instructions for Sitecore XM Cloud, a cloud platform for managing website content, and its Next.js starter applications. They describe the project structure, tools, coding rules, testing patterns, and deployment limits.

In plain words
What is it for?
Use it when changing the starter applications, authoring files, local Docker setup, or XM Cloud deployment configuration. It also guides JavaScript, TypeScript, Next.js, and test-related work.
Why use it?
They give an agent the project context needed to make changes that fit the repository and Sitecore setup. This reduces confusion about which folders, frameworks, and development rules to follow.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is Sitecore/xmcloud-starter-js's own configuration. It tells Claude Code how to work on xmcloud-starter-js itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything xmcloud-starter-js configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Sitecore/xmcloud-starter-js. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Sitecore/xmcloud-starter-js/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Sitecore/xmcloud-starter-js

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xmcloud-starter-js CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sitecore/xmcloud-starter-js/claude-md/github.svg)](https://agentmods.dev/instructions/sitecore/xmcloud-starter-js/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sitecore/xmcloud-starter-js/claude-md"><img src="https://agentmods.dev/badge/instructions/sitecore/xmcloud-starter-js/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xmcloud-starter-js CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sitecore/xmcloud-starter-js/claude-md"><img src="https://agentmods.dev/badge/instructions/sitecore/xmcloud-starter-js/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,685 This file is loaded in full into every session.
When invoked 9,685 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.09685 $0.09685
Opus 5.5 $0.03874 $0.03874
Sonnet 5.5 $0.01937 $0.01937
Haiku 4.5 $0.00968 $0.00968

Measured 27d ago against content hash 515fe39e0bbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xmcloud-starter-js CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 1,278 lines

How it starts

The opening of the file, as written. The whole thing — 1,278 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Context

Table of Contents

Repository Overview

This is the XM Cloud Front End Application Starter Kits repository containing multiple Next.js starter applications and SPA examples for Sitecore XM Cloud development.

Repository Structure:

  • /examples/ - Contains starter front-end applications (Next.js and Angular)
  • /authoring/ - Sitecore content items, templates, and deployment configurations
  • /local-containers/ - Docker setup for local development environments
  • xmcloud.build.json - Primary configuration for XM Cloud deployment

Available Examples:

  • basic-nextjs - Simple Next.js starter with basic XM Cloud integration
  • kit-nextjs-article-starter - Solterra & Co. - Editorial-style template for lifestyle brands
  • kit-nextjs-location-finder - Alaris - Car brand template with location finder functionality
  • kit-nextjs-product-listing - SYNC - Product-focused template for audio gear companies
  • kit-nextjs-skate-park - Simple demo site showcasing component examples
  • kit-angular-skate-park - Angular starter kit built on the Sitecore Content SDK for Angular, with server-side rendering (SSR)

Each starter demonstrates:

  • Tailwind-based styling with Shadcn/ui components
  • Personalized homepage via URL parameters
  • Modular component architecture with variants
  • Localization support for English (en) and Canadian English (en-CA)

Read the full file on GitHub · 1,278 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago Changed · +14 tokens per session 515fe39e0bbf
  2. 2mo ago First seen · 1,278 lines · 9,671 tokens per session scan A 919bee1a64b6

Subscribe to this mod's changes

xmcloud-starter-js CLAUDE.md is an instructions file published in the GitHub repository Sitecore/xmcloud-starter-js (31 stars, last pushed 4d ago), licensed Apache-2.0. It adds 9,685 tokens to every session, about $0.0387 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

xmcloud-starter-js CLAUDE.md compared with instructions from other repositories

xmcloud-starter-js CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xmcloud-starter-js CLAUDE.mdSitecore/xmcloud-starter-jsInstructions file314d agoApache-2.0A9,685Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode