> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specpilot.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> What SpecPilot writes for Cursor: a project rule, workspace settings and nine commands.

Choose Cursor when SpecPilot asks which AI IDE you use, or pass `--ide cursor` to `specpilot init` or `specpilot add-specs`.

## Files

| File | What it is |
| - | - |
| `.cursor/rules/specpilot.mdc` | The rules as a Cursor project rule, set to always apply |
| `.cursor/settings.json` | Workspace settings, for example keeping `.specs/` in search |
| `.cursor/extensions.json` | Recommended extensions |
| `.cursor/commands/specpilot-*.md` | The nine commands |
| `.gitattributes` | Lines that let git merge `tasks.md` and `prompts.md` from two branches without conflicts. Added to an existing file. |

## Commands

Type `/specpilot-status` and the others in Cursor's chat. What each command does: [Commands and skills](https://docs.specpilot.dev/concepts/commands-and-skills.md).

## Connect the local MCP

Add SpecPilot to `.cursor/mcp.json` in the project. See [Connect your AI IDE](https://docs.specpilot.dev/mcp/connect.md).

## Files you already have

SpecPilot never changes a file that already exists: it keeps it and lists it at the end. Run `specpilot backfill` to add missing SpecPilot sections to it.

## Projects set up before 2.1.0

Older projects have the rules in `.cursor/rules/project.mdc`. If `specpilot.mdc` is there too, Cursor loads the rules twice. Run `specpilot migrate --cursor-rules` to rename the old file, or `--cursor-rules --remove-old` when both exist. The App's Instructions view has the same fixes. See [specpilot migrate](https://docs.specpilot.dev/reference/cli/migrate.md#the-old-cursor-rules-file).

## Keep them current

After you upgrade SpecPilot, run Regenerate All in the App (see [Regenerate commands and skills](https://docs.specpilot.dev/app/regenerate.md)) or `specpilot backfill`. Command files you edited are kept.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.