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

# specpilot add-specs

> Add .specs/ to an existing project, filled in from what SpecPilot finds in the code.

```bash theme={null}
specpilot add-specs [options]
```

Alias: `specpilot add`. Run it in the project's folder.

You can also set up a project from the App or through your agent. See [Set up specs with your agent](https://docs.specpilot.dev/mcp/setup.md).

## Options

| Option | What it does | Default |
| - | - | - |
| `-l, --lang <language>` | The language, when SpecPilot can't detect it | Detected |
| `-f, --framework <framework>` | The framework | Detected |
| `--no-analysis` | Doesn't read the code | Off |
| `--no-prompts` | Asks nothing | Off |
| `--ide <name>` | `claude-code`, `cursor`, `vscode`, `windsurf`, `antigravity` or `codex`. Skips the IDE question | Asked |

## What it does

1. Detects the language, framework and name from the project's files. If it can't, pass `--lang`.
2. Asks the [init questions](https://docs.specpilot.dev/reference/cli/init.md#the-questions), with brownfield first and without the project questions.
3. Reads the code for TODOs, tests and components, unless you pass `--no-analysis`.
4. Writes the files and prints the onboarding prompt.

## What it writes

The same files as [`specpilot init`](https://docs.specpilot.dev/reference/cli/init#what-it-writes), in the current folder. It stops if `.specs/` already exists.

Instruction files that already exist are kept as they are. Run [`specpilot backfill`](https://docs.specpilot.dev/reference/cli/backfill) to add SpecPilot's sections to them.

## Examples

```bash theme={null}
specpilot add-specs
specpilot add-specs --ide cursor --no-prompts
```

Checked against SpecPilot 2.22.0.


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