Overview
Cursor rules help guide the AI assistant to generate code that follows your project’s conventions and best practices. This is especially important for CreatorCommerce projects where specific patterns and rules must be followed.Creating Rules Files
Cursor rules are typically stored in.cursorrules files in your project root or specific directories.
Basic Rule Structure
Common Rules for CreatorCommerce
Data Reference Rules
Code Organization Rules
Best Practices
- Start with Project-Specific Rules: Add rules that are specific to your CreatorCommerce implementation
- Reference Existing Code: Point Cursor to existing patterns in your codebase
- Update Regularly: Keep rules updated as patterns evolve
- Test Rules: Verify that Cursor follows your rules correctly