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

# GitHub Copilot

> What SpecPilot writes for GitHub Copilot in VS Code: instructions, workspace settings and nine prompt files.

Choose GitHub Copilot when SpecPilot asks which AI IDE you use, or pass `--ide vscode` to `specpilot init` or `specpilot add-specs`. It is also what you get with `--no-prompts` and no `--ide`.

## Files

| File | What it is |
| - | - |
| `.github/copilot-instructions.md` | The instruction file Copilot reads on every request |
| `.vscode/settings.json` | Workspace settings, for example keeping `.specs/` in search |
| `.vscode/extensions.json` | Recommended extensions |
| `.github/prompts/specpilot-*.prompt.md` | The nine commands as prompt files, set to agent mode |
| `.gitattributes` | Lines that let git merge `tasks.md` and `prompts.md` from two branches without conflicts. Added to an existing file. |

## Commands

Run them from Copilot Chat in agent mode. What each command does: [Commands and skills](https://docs.specpilot.dev/concepts/commands-and-skills.md).

> [!NOTE]
>
> `/specpilot-validate` runs a script, and Copilot runs terminal commands only in agent mode. Outside it, Copilot reads the files and does the checks itself, with more mistakes.

## Connect the local MCP

Add SpecPilot to `.vscode/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.

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