← Work with SpecDD skills guides

How to plan adoption with an agent (specdd-adopt)

How-To Work with SpecDD skills Intermediate 1091012HOWTO-1091012

HOWTO-1091012Work with SpecDD skillsIntermediate

This guide shows you how to use specdd-adopt to plan or start spec-driven development adoption with an agent.

Use this skill when a repository needs SpecDD added, or when SpecDD framework bootstrap files need an operator-requested update. If the project is already bootstrapped and the request is normal spec authoring or implementation, use another task-specific skill instead.

Short answer

Use specdd-adopt when the operator explicitly asks to add SpecDD to a project or update SpecDD framework files. The agent should check whether .specdd/bootstrap.md already exists, use the SpecDD CLI for setup or updates, read the active bootstrap chain after initialization or changed updates, inspect only enough repository shape, and propose the smallest useful initial spec scope before creating specs.

When to use this guide

Use this guide when:

Steps

1. Check whether SpecDD is already bootstrapped

The agent should check for:

.specdd/bootstrap.md

If it exists, the repository is already a SpecDD project. Use specdd-adopt only for explicit framework updates. For normal spec writing, switch to specdd-author. For implementation, use specdd-do or another task-specific skill.

2. Use the CLI only for requested setup or updates

For initial setup, the CLI command is:

specdd init

For framework updates, the CLI command is:

specdd update

The agent should not manually copy, install, update, or edit SpecDD framework bootstrap files outside the CLI.

3. Read bootstrap after initialization

After specdd init, or after specdd update when framework files changed, the agent should read the active bootstrap chain before proposing specs:

.specdd/bootstrap.md
.specdd/bootstrap.project.md
.specdd/bootstrap.local.md

This ensures later spec authoring follows the actual project rules.

4. Inspect only enough repository shape

Adoption planning does not require reading the entire repository.

Useful first-pass context:

The goal is to choose a small adoption scope, not to reverse-engineer every file.

5. Propose the smallest useful initial specs

Most projects should start with:

Example:

travel-planner/
  travel-planner.sdd
  src/trips/itinerary.sdd

Start where missing context already costs time: a module under active change, a workflow with subtle business rules, or an area where agents often make wrong edits.

6. Create specs only after approval

The agent should create .sdd files only when the adoption scope is explicitly requested or approved.

Generated adoption specs should be short, local, behavioral, and constraint-oriented. They should label assumptions instead of presenting guessed behavior as active contracts.

Agent prompt

Use one prompt for adoption planning:

Plan a small SpecDD adoption for this repository.

Use a separate prompt if you approve creating files:

Create the approved initial SpecDD specs.

Common mistakes

How to verify the result

Adoption was handled correctly when:

← Work with SpecDD skills guides