Skip to main content
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.

Options

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, 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, in the current folder. It stops if .specs/ already exists. Instruction files that already exist are kept as they are. Run specpilot backfill to add SpecPilot’s sections to them.

Examples

Checked against SpecPilot 2.22.0.