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.
0/4000 characters

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)

  1. Create a .cursor/rules directory in your project root
  2. Add rule files with .mdc extension (you can use our generator above)
  3. Each rule can include descriptions, file patterns (globs), and reference other files
  4. Rules are automatically applied when matching files are referenced
  5. You can create new rules in Cursor using Cmd + Shift + PNew Cursor Rule

Global Rules

  1. Go to Cursor Settings → General → Rules for AI
  2. Add rules that should apply to all your projects
  3. 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.