AI-powered Content SDK development using Cursor
Apps using Content SDK 1.1 and higher contain comprehensive Cursor rules to improve development consistency and productivity across the Content SDK ecosystem. These rules provide Cursor with sufficient context to guide you through the project and answer questions about Sitecore development patterns.
Rule levels
There are two levels of rules included:
-
Repository-level rules - define architectural and stylistic standards across all SDK projects.
-
general.mdc- core coding principles and universal standards. -
javascript.mdc- JavaScript/TypeScript naming conventions and patterns. -
sitecore.mdc- Sitecore-specific development patterns for SitecoreAI. -
Additional rules - CLI usage, testing strategies, and project-specific guidance.
-
-
Template-level rules - Embedded in the Next.js starter template to guide developers building Sitecore apps.
These rules ensure that both the SDK development and user projects benefit from intelligent AI-assistance with a comprehensive understanding of Sitecore Content SDK patterns and architecture.
Applying cursor rules
Cursor rules are automatically applied when using Cursor for the following:
-
Content SDK repository - for SDK contributors and maintainers.
-
User generated projects - projects created with
npx create-content-sdk-appthat include the.cursor/rules/directory.
These rules provide the necessary context and knowledge to do the following:
-
Generate consistent code following established patterns.
-
Answer project-specific questions about Sitecore development.
-
Guide developers through Content SDK conventions and best practices.
-
Maintain code quality across team contributions.