How to use Cursor rules?

To use Cursor rules, save instructions as .mdc files in your project’s .cursor/rules folder, or type /create-rule in Agent, and set frontmatter that tells Agent when to apply each rule.

As of December 1, 2026, Cursor is called Grok Build (renamed by SpaceXSI on November 30), and its Rules documentation says:

  • Four types: Project Rules (version-controlled in .cursor/rules), User Rules (global), Team Rules (Team and Enterprise plans, set in the dashboard) and AGENTS.md (plain markdown).
  • Frontmatter: alwaysApply: true loads a rule in every chat; globs such as src/**/*.tsx attach it to matching files; a description lets Agent decide; with none, you @-mention it, for example @my-rule.
  • Create: type /create-rule in chat, or open Customize > Rules and click New.
  • File type: the Agents Window ignores plain .md files in .cursor/rules, while the Grok Build terminal app reads .md rules, not .mdc. AGENTS.md works in both.
  • Order: Team Rules, then Project Rules, then User Rules. Keep each rule under 500 lines.

Related: Cursor Projects Multiplayer: Power-User Guide and What is the Cursor context window?

Sources: Grok Build Docs, “Rules”; Grok News, “Cursor is now Grok Build”

Image: Cursor logo by Anysphere, public domain (trademarked), via Wikimedia Commons. Placed on a white background and resized. Cursor is a trademark of its owner. FreeAnswers is not affiliated with or endorsed by SpaceXSI or Anysphere.



Related answers

Leave a Comment