This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.
- Purpose: Defines the foundational rules for Cursor AI behavior across all tasks.
- Usage: Add this to
.cursorrulesin your project root or configure it via Cursor settings:- Open
Cmd + Shift + P. - Navigate to Sidebar > Rules > User Rules.
- Paste the contents of
core.md.
- Open
- When to Use: Always apply as the base configuration for consistent AI assistance.
- Purpose: Guides the AI to debug, fix, or resolve issues, especially when it loops on the same files or overlooks relevant dependencies.
- Usage: Use this as a prompt when encountering persistent errors or incomplete fixes.
- When to Use: Apply when the AI needs to reassess the issue holistically (e.g., “It’s still showing an error”).
- Purpose: Instructs the AI to handle initial requests like creating new features or adjusting existing code.
- Usage: Use this as a prompt for starting new development tasks.
- When to Use: Apply for feature development or initial modifications (e.g., “Develop feature XYZ”).
- Clone or download this gist.
- Configure
core.mdin your Cursor AI settings or.cursorrulesfor persistent rules. - Use
refresh.mdorrequest.mdas prompts by copying their contents into your AI input when needed, replacing placeholders (e.g.,{my query}or{my request}) with your specific task.
- These rules are designed to work with Cursor AI’s prompting system but can be adapted for other AI tools.
- Ensure placeholders in
refresh.mdandrequest.mdare updated with your specific context before submission.