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

# Claude Code

> What SpecPilot writes for Claude Code: CLAUDE.md, a project skill and nine slash commands.

Choose Claude Code when SpecPilot asks which AI IDE you use, or pass `--ide claude-code` to `specpilot init` or `specpilot add-specs`.

## Files

| File | What it is |
| - | - |
| `CLAUDE.md` | The instruction file Claude Code reads every session: project, stack, the rules and which spec to read for each kind of task |
| `.claude/skills/specpilot-project/SKILL.md` | The `specpilot-project` skill with your project's context |
| `.claude/commands/specpilot-*.md` | The nine slash 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 Claude Code. `/specpilot-refine` takes the new requirement after the command. What each command does: [Commands and skills](https://docs.specpilot.dev/concepts/commands-and-skills.md).

## Connect the local MCP

Add SpecPilot to `.mcp.json` in the project. When `specpilot serve` starts, the terminal prints the line to add. 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.