Save a short project rule and verify it applies to a real task.

Before you start
- A project open in Cursor and permission to add project guidance.
- Two or three stable conventions confirmed in the existing code or README.
Want to do it yourself?
- Difficulty
- 4 out of 10
- Estimated completion time
- 25–45 minutes
Skills you’ll need: Edit a small .mdc rule, select its scope, and check that a fresh task uses the intended guidance.

How this helps your brand
Keep repeated website changes consistent with your established components and content conventions. A short, tested project rule reduces the need to explain the same requirements in every new Cursor conversation.
Step 1: Choose conventions worth repeating
Pick guidance that future changes should follow: reuse an existing button component, keep business copy approved, or run the project’s established checks.
Name actual files and commands from this project. Avoid long wish lists or rules that contradict the codebase.
Step 2: Create a project rule
Create a rule under .cursor/rules using the .mdc extension. Cursor’s rule editor lets you choose when it applies.
For a short convention needed on every task, choose Always Apply. For a narrow convention, choose an appropriate file scope instead. A plain .md file in this directory is ignored.
Illustrated exampleFrom request to a checkable result- 01Real convention
- 02Correct .mdc file
- 03Appropriate scope
Real convention → Correct .mdc file → Appropriate scope. This is a workflow diagram, not a product screenshot. Step 3: Keep the instruction testable
State what the agent should do, the reference file, and how to check the result. Keep secrets and personal data out of shared rules.
Review the rule’s scope and text. Rules are instructions supplied to the model; use review and checks to confirm behavior rather than assuming perfect compliance.
Step 4: Try it in a fresh task
Start a new chat and ask Cursor to describe how the rule affects one small proposed edit. Check that it identifies the intended convention.
If the rule is missing, inspect its extension, scope, and referenced paths. Revise the rule, then test again before relying on it for larger work.
Illustrated exampleCheck the recovery path- Start fresh chat
- 02Try one small task
- 03Check the output
Start fresh chat → Try one small task → Check the output. Use this check before relying on the result.
You're done when
- The .mdc rule has the intended scope and valid project references.
- A fresh task follows the convention and you checked the output.
Your prompt
Show promptHide prompt
COPY AND PASTE
Help me create a concise Cursor project rule for [convention]. Inspect [reference files] first. Use .cursor/rules/[name].mdc and explain the appropriate scope. Include the real existing verification command if applicable. Do not add dependencies or change application code. Then explain one small task I can use to check that the rule applies.
Paste this into Cursor’s Agent chat after replacing the brackets. Select Plan Mode for planning tasks.
FREE BY EMAIL
Get the full AI guide
Our complete, step-by-step guide to using AI in your business, sent straight to your inbox.