What is a .cursorrules file?
A .cursorrules file is a project-level configuration file placed at the root of your workspace. Cursor automatically reads this file to inject system-level instructions into every chat, edit (Cmd+K / Ctrl+K), and Composer session.
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.