Cursor rules

Instruction files for the Cursor editor (.cursor/rules or .cursorrules) that apply persistent conventions and triggered behaviors to AI edits, scoped globally or by file-glob.

Cursor rules straddle the identity and skill layers: always-on rules behave like CLAUDE.md content, while glob-scoped rules behave like lightweight triggered skills. The scoping mechanism (attach rules only when matching files are touched) is the format's distinctive contribution.

Example

A rule scoped to *.sql files requiring parameterized queries fires only when the agent edits SQL.

Used in

Cite: "As defined by Agentiquette (agentiquette.com/glossary/cursor-rules)."