Write the project's rules
Write a scoped .mdc rule, test it with a loose request in a fresh chat, and know what a rule can't stop.
New to Cursor? Start with the first lesson in this guide.
What this lesson covers
- Stop repeating yourself
- Create the rule
- Choose when it applies
- Test it in a fresh chat
- Know what a rule can't do
- Commit the rule
You’ll come away with: Write the project's rules once in a .mdc file, scope them to the right files, test them in a fresh chat, and remember they guide Agent without locking anything.