Context
Rules for AI
You can add custom instructions to Cursor by modifying the Rules for AI
section under Cursor Settings
> General
> Rules for AI
.
This custom instruction will be included for features such as Cursor Chat and Ctrl/⌘ K.
![](https://mintlify.s3-us-west-1.amazonaws.com/anysphere/images/context/rules-for-ai.png)
.cursorrules
For project-specific instructions, you can include the instructions in a .cursorrules
file in the root of your project.
As the same as the “Rules for AI” section, the instructions in the .cursorrules
file will be included for features such as Cursor Chat and Ctrl/⌘ K.