| name | helix-layer-check |
| description | Use when reviewing or adding Sitecore C# code to enforce Helix architecture layer boundaries — Foundation, Feature, and Project dependency direction. Trigger before committing Sitecore solution code, or whenever a new project reference is introduced. |
Helix layer check
Enforce Helix dependency rules across the Sitecore solution.
- Identify which layer each touched project belongs to (Foundation, Feature, or Project).
- Reject any reference that points "up" the stack — Feature must not depend on Project,
Foundation must not depend on Feature or Project.
- Flag cross-Feature references; Features should compose only through Foundation.
- Output each violation with the offending project and the disallowed reference.