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

> Bring an existing project up to date: missing mandates and sections, your handle and the current commands.

```bash theme={null}
specpilot backfill [options]
```

Alias: `specpilot bf`.

## Options

| Option | What it does | Default |
| - | - | - |
| `-d, --dir <directory>` | The project folder | `.` |
| `--specs-name <name>` | The specs folder's name | `.specs` |
| `--dry-run` | Shows what it would change, without writing | Off |
| `--no-prompts` | Takes the first contributor as your handle, without asking | Off |

## What it adds

* `team.devPrefix` in [`project.yaml`](https://docs.specpilot.dev/reference/spec-files/project-yaml), if it's missing. It suggests the first contributor.
* Missing mandates in `project.yaml`.
* In each instruction file that exists, such as `CLAUDE.md` or `.github/copilot-instructions.md`: missing mandates, the Code Philosophy and Code Rules sections, and the line about the MCP task tools.
* In each of those files' Context table, a last row that tells your agent to look in the `*-archive.md` files for a task ID, decision or earlier requirement wording it can't find. A file without that table gets no row.
* The `CD-<handle>-###` ID line in [`tasks.md`](https://docs.specpilot.dev/reference/spec-files/tasks).
* The `specpilot-*` commands, for the IDEs in `ides`, or for each IDE whose instruction file exists.
* The Claude Code project skill.

It creates no instruction file.

A command file you changed is kept. Delete it and run `backfill` again to get the current version. For Codex, copy the commands to `~/.codex/prompts/`.

For the commands, it does the same as [Regenerate All](https://docs.specpilot.dev/app/regenerate.md).

It also warns when Cursor's old rules file, `.cursor/rules/project.mdc`, is still there. See [specpilot migrate](https://docs.specpilot.dev/reference/cli/migrate.md#the-old-cursor-rules-file).

## Examples

```bash theme={null}
specpilot backfill --dry-run
specpilot backfill
```

Checked against SpecPilot 2.22.0.


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