Cursor guide
Cursor uses .cursor/rules files to configure AI behavior. spaget exports your agent configuration directly to this format.
How Cursor rules work
Section titled “How Cursor rules work”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.
Building a Cursor agent in spaget
Section titled “Building a Cursor agent in spaget”- Open the visual builder
- Configure your agent with relevant skills and rules
- Export as Cursor format
- Place the exported files in your project’s
.cursor/rules/directory
Cursor-specific tips
Section titled “Cursor-specific tips”Rule organization
Section titled “Rule organization”Cursor supports multiple rule files, so you can organize by concern:
code-style.mdc— Coding conventionstesting.mdc— Testing requirementsdocumentation.mdc— Documentation standards
spaget automatically splits your configuration into logical rule files.
Leveraging Cursor’s context
Section titled “Leveraging Cursor’s context”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
Next steps
Section titled “Next steps”- Visual builder guide — Full guide to the builder interface
- Export format reference — Technical details on Cursor’s format