> ## 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.

# Windsurf

> What SpecPilot writes for Windsurf: a rules file, workspace settings and nine workflows.

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

## Files

| File | What it is |
| - | - |
| `.windsurfrules` | The rules Windsurf reads for this project |
| `.windsurf/settings.json` | Workspace settings, for example keeping `.specs/` in search |
| `.windsurf/extensions.json` | Recommended extensions |
| `.windsurf/workflows/specpilot-*.md` | The nine commands as workflows |
| `.gitattributes` | Lines that let git merge `tasks.md` and `prompts.md` from two branches without conflicts. Added to an existing file. |

## Commands

Run them as workflows: type `/specpilot-status` and the others in Cascade. What each command does: [Commands and skills](https://docs.specpilot.dev/concepts/commands-and-skills.md).

## Connect the local MCP

Add SpecPilot to `~/.codeium/windsurf/mcp_config.json` in your home folder. Windsurf can't read the token from a variable, so the token itself goes in the file. 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.

## 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.