About

What Is .cursorrules? Teaching Cursor Your Project Rules

Cursor

What goes in it: style, framework rules, and don'ts

.cursorrules is a file for passing project context to the AI assistant in Cursor IDE. It serves a similar role to CLAUDE.md in Claude Code, defining coding style, frameworks in use, prohibited patterns, and more.

How to Use

1

Create .cursorrules file at the project root

2

Record coding style, framework rules, and prohibited patterns

3

Cursor includes these rules as context in all AI requests

4

Reference framework-specific templates at cursor.directory

Tags

#rules #context #convention #project

Source

Cursor Docs

← Channels — Control Claude Code from Telegram/Discord Cursor Composer (Agent Mode): Editing Multiple Files at Once →