Why Splitting .cursorrules Into .mdc Files Improves Code Quality
- No More Rule Dilution: When database, frontend CSS, and testing instructions are all crammed into one 300-line
.cursorrulesfile, the model pays less attention to all of them. - Automatic Glob Scoping: By setting
globs: src/**/*.tsxon your UI rule andglobs: **/*.test.tson your testing rule, Cursor only attaches the rules that match the files currently in context.