Skip to content

Cursor guide

Cursor uses .cursor/rules files to configure AI behavior. spaget exports your agent configuration directly to this format.

Cursor reads rule files from the .cursor/rules/ directory in your project. Each rule file uses .mdc format and defines specific instructions for the AI assistant.

  1. Open the visual builder
  2. Configure your agent with relevant skills and rules
  3. Export as Cursor format
  4. Place the exported files in your project’s .cursor/rules/ directory

Cursor supports multiple rule files, so you can organize by concern:

  • code-style.mdc — Coding conventions
  • testing.mdc — Testing requirements
  • documentation.mdc — Documentation standards

spaget automatically splits your configuration into logical rule files.

Cursor has built-in awareness of your codebase. Your rules should complement this by providing:

  • Project-specific conventions Cursor can’t infer
  • Business logic context
  • Preferred patterns and anti-patterns