Back to .md Directory
Cursor rules documentation
This directory contains rules that Cursor uses to enforce consistent formatting and structure in our codebase.
ai cursor
View sourceCursor rules documentation
This directory contains rules that Cursor uses to enforce consistent formatting and structure in our codebase.
Rule structure
Rules defined in the config.json follow this structure:
{
"version": 1,
"rules": {
"category": {
"rule_name": {
"enabled": true,
"pattern": "regex_pattern",
"message": "Error message"
}
}
}
}
Additional, more specific rules can be found in the rules directory in either a json or mdc format.
Available rules
Text formatting
- heading_case: Enforces sentence case in headings with specific exceptions
- Applies to:
.md,.txt,.mdxfiles - Exceptions: Technical terms and acronyms
- Applies to:
Jira tickets
- ticket_title: Validates Jira ticket title format
- Optional component in brackets
- Max length: 80 characters
- required_sections: Ensures required sections are present
- templates: Enforces template structure for different ticket types
- labels: Validates that only allowed labels are used
- issue_types: Ensures correct issue type selection
Usage
- Cursor will automatically enforce these rules while editing relevant files; however, if you wish to enable a rule that is not triggered by default, you can do so by
@mentioning it in the chat. - Rules can be toggled using the
enabledflag - Custom error messages will be shown when rules are violated
- Exceptions are handled through the
exceptionsfield in relevant rules
Updating rules
To modify these rules:
- Edit the
config.jsonor the appropriate file in therulesdirectory - Try to follow the existing structure and format where possible
- Ensure valid regex patterns, where applicable
- Include clear error messages
- Test changes before committing
Related Documents
cursor-rules.md
Journey from Concept to Code: Transforming Cursor into a Devin-like AI Assistant
square: https://daily.borninsea.com/assets/image_1739763605490_yobtaj.png
aiagentllm
0
4
wanghaishengcursor-rules.md
grapeot/devin.cursorrules
date: 2025-07-03T22:11:02.060257
cursor
0
3
tom-doerrcursor-rules.md
dbt Core
A powerful open-source data transformation tool that enables analytics engineers to transform data in their warehouses by writing modular SQL enhanced with Jinja templating.
ai
0
3
agbackhoffcursor-rules.md
Cursor Development Environment
docker build -f Dockerfile.dev -t clawdrive-dev .
aiagentrag
0
2
CyberImmortal