Cursor Rules
Constrain AI behavior with .cursorrules
.cursor/rules or a project-root rules file tells the AI your stack, code style, and what to avoid.
Example Rules
- Use TypeScript and the Next.js App Router
- Style with Tailwind only — no inline styles
- Keep components under
src/components
Best Practices
Keep rules short and focused; refine them as the project evolves. On team projects, commit rules to Git so everyone shares the same constraints.