Create a .cursorrules file in your project root to customize AI behavior for that project. This file contains instructions the AI follows for every interaction.
Example content:
"Use TypeScript with strict mode. Follow the existing service/repository pattern. Never use any as a type. All functions must have JSDoc comments."
These rules persist across sessions and team members who clone the repo.