.cursorrules
What is .cursorrules?
Section titled “What is .cursorrules?”.cursorrules is Cursor’s configuration format for customizing AI behavior. It defines coding rules, style preferences, and project context.
Owner: Anysphere (Cursor) Docs: Cursor Rules
Types of Rules
Section titled “Types of Rules”1. Project Rules (.cursor/rules/)
Section titled “1. Project Rules (.cursor/rules/)”---description: "Frontend coding guidelines"globs: ["src/components/**", "src/pages/**"]---
Use React functional components with TypeScript.Prefer Tailwind CSS for styling.2. User Rules
Section titled “2. User Rules”Global rules in Cursor settings.
3. .cursorrules (Legacy)
Section titled “3. .cursorrules (Legacy)”Single file in project root:
You are an expert TypeScript developer.
## Stack- Next.js 15 with App Router- TypeScript strict mode- Tailwind CSS v4Community Resources
Section titled “Community Resources”- awesome-cursorrules — Community collection
Cursor now also reads AGENTS.md for universal instructions.