What is a .cursorrules file?
A .cursorrules file is a project-level instruction file placed at the root of your workspace. It has no required syntax: you write plain sentences and Markdown lists, and Cursor adds them to the context of its AI chat, inline edits (Cmd+K / Ctrl+K), and agent sessions in that project.
It acts as the 'source of truth' for the editor's AI, ensuring it adheres to your preferred coding standards, framework versions, and project structures instead of guessing based on general training data.