Detect XM Cloud projects and identify JSS version, Next.js version, and deployment configuration
Detects XM Cloud projects and identifies JSS version, Next.js version, router type, deployment target, and enabled features.
/plugin marketplace add twofoldtech-dakota/claude-marketplace/plugin install twofoldtech-dakota-xm-cloud-analyzer-plugins-xm-cloud-analyzer@twofoldtech-dakota/claude-marketplaceDetect and classify Sitecore XM Cloud projects.
Search for primary indicators (high confidence):
Glob: **/xmcloud.build.json
Glob: **/package.json (with @sitecore-jss/*)
Glob: **/src/rendering/**/next.config.js
Glob: **/.env* (with SITECORE_API_KEY or GRAPH_QL_ENDPOINT)
If these exist WITHOUT xmcloud.build.json, recommend sitecore-classic-analyzer:
Glob: **/App_Config/Include/**/*.config
Glob: **/*.module.json (SCS modules)
Grep: Sitecore.Kernel in *.csproj
Parse package.json for JSS packages:
{
"dependencies": {
"@sitecore-jss/sitecore-jss-nextjs": "22.0.0"
}
}
Version mapping:
Parse package.json:
{
"dependencies": {
"next": "14.2.0"
}
}
Version mapping:
App Router indicators:
/src/app/ directory existslayout.tsx filespage.tsx files'use client' directives)Pages Router indicators:
/src/pages/ directory exists_app.tsx, _document.tsxgetStaticProps, getServerSideProps in pagesVercel:
vercel.json existsVERCEL_* env vars referencedNetlify:
netlify.toml existsNETLIFY_* env vars referencedCustom/Docker:
Dockerfile existsdocker-compose.yml exists| Feature | Detection |
|---|---|
| Personalization | PersonalizeMiddleware import |
| Multisite | MultisiteMiddleware or multisite config |
| Forms | @sitecore-jss/sitecore-jss-forms package |
| i18n | i18n config in next.config.js |
Provide detection results in this format:
detection:
cms: XM Cloud
jssVersion: "22.0"
nextVersion: "14.2"
router: "App Router" | "Pages Router" | "Mixed"
deployment: "Vercel" | "Netlify" | "Docker" | "Unknown"
features:
- Personalization
- Multisite
- i18n
paths:
rendering: "src/rendering"
components: "src/rendering/src/components"
graphql: "src/rendering/src/graphql"
xmcloud.build.json + JSS packages + rendering folderIf confidence is Low, warn user to verify this is an XM Cloud project.
After detection, the main analyze command will:
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences