Cursor Rules Generator
Generate optimized Cursor Rules for your project to help AI assistants understand your codebase better. Describe your project below and we'll create custom rules files for your Cursor AI assistant.
What are Cursor Rules?
Cursor Rules are a powerful feature in Cursor that allows you to provide context about your codebase to the AI assistant. By creating custom rules, you can help the AI understand your project's architecture, coding standards, and business logic, resulting in more accurate and helpful code suggestions.
How to Add Cursor Rules to Your Project
Cursor offers two main ways to customize AI behavior for your codebase:
Project Rules (Recommended)
- Create a
.cursor/rules
directory in your project root - Add rule files with
.mdc
extension (you can use our generator above) - Each rule can include descriptions, file patterns (globs), and reference other files
- Rules are automatically applied when matching files are referenced
- You can create new rules in Cursor using
Cmd + Shift + P
→ New Cursor Rule
Global Rules
- Go to Cursor Settings → General → Rules for AI
- Add rules that should apply to all your projects
- These are useful for consistent preferences across projects
Note: For backward compatibility, you can still use a .cursorrules
file in your project root, though the project rules system offers better flexibility and control.