Detect Sitecore 10.x projects and identify version, modules, and serialization format
Detects Sitecore 10.x projects, identifies version, architecture, modules, and serialization format.
/plugin marketplace add twofoldtech-dakota/claude-marketplace/plugin install twofoldtech-dakota-sitecore-classic-analyzer-plugins-sitecore-classic-analyzer@twofoldtech-dakota/claude-marketplaceDetect and classify Sitecore 10.x (Classic/On-premise) projects.
Search for these primary indicators (high confidence):
Glob: **/sitecore.json
Glob: **/*.module.json
Glob: **/App_Config/Include/**/*.config
Glob: **/layers.config
Grep: Sitecore.Kernel in *.csproj files
If ANY of these are found, this is NOT a Classic project - exit and recommend xm-cloud-analyzer:
Glob: **/xmcloud.build.json
Grep: @sitecore-jss in package.json (as primary framework)
Glob: **/src/rendering/**/next.config.js
Note: JSS can exist in Classic projects, but if xmcloud.build.json exists, it's XM Cloud.
Parse Sitecore.Kernel version from .csproj files:
<PackageReference Include="Sitecore.Kernel" Version="10.4.0" />
Map to version:
Helix Architecture (if ANY):
layers.config existssrc/Foundation/, src/Feature/, src/Project/*.Foundation.*, *.Feature.*, *.Project.*Traditional (otherwise)
Search for module indicators:
| Module | Indicators |
|---|---|
| SXA | Sitecore.XA.* packages, /App_Config/Include/Feature/Experience Accelerator/ |
| Commerce | Sitecore.Commerce.* packages |
| Forms | Sitecore.ExperienceForms.* packages |
| JSS | Sitecore.JavaScriptServices.* packages |
| Publishing Service | Sitecore.Publishing.Service.* packages |
| Format | Indicators |
|---|---|
| SCS (Sitecore Content Serialization) | *.module.json files, sitecore.json with modules section |
| Unicorn | Unicorn.*.config files, <unicorn> configuration |
| TDS | *.scproj files |
| Mixed | Multiple formats detected (flag as issue) |
Provide detection results in this format:
detection:
cms: Sitecore Classic
version: "10.4"
architecture: "Helix" | "Traditional"
modules:
- SXA
- Forms
- JSS
serialization: "SCS" | "Unicorn" | "TDS" | "Mixed"
renderingType: "MVC" | "Controller" | "View" | "Mixed"
solutionPath: "path/to/solution.sln"
projectCount: 15
sitecore.json + *.module.json + Sitecore packagesIf confidence is Low, warn user to verify this is a Sitecore project.
After detection, the main analyze command will invoke relevant agents based on: