If your project already has code — even a significant amount of it — you can still adopt the Spec-Driven Development framework without disrupting the work in progress. The adoption agent (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/davidbuenov/dbv-specs-ops/llms.txt
Use this file to discover all available pages before exploring further.
docs/ADOPTION_PROMPT.md) acts as a senior engineer who has just joined your team: it reads the codebase silently first, then collaborates with you to reconstruct the context and generate the SDD documents that should have been there from the start. Nothing is deleted, no files are overwritten, and your source code is never touched.
When to use ADOPTION_PROMPT.md
UseADOPTION_PROMPT.md when:
- Your project already has source code but no SDD documents (
SPECIFICATIONS.md,ARCHITECTURE.md,task.md). - You want to start using the SDD workflow without losing the context that already exists in your codebase.
- You are onboarding a new AI assistant to a project it has never seen before.
docs/MASTER_PROMPT.md instead.
How to trigger the adoption process
Paste the following message to your AI assistant as your first message in a new session:Installing the framework in an existing project
For existing projects, it is recommended to install thedbv-specs-ops files into a dedicated subfolder (dbv-specs-ops/) rather than mixing them with your existing root files. The adoption agent respects this layout: when it generates SPECIFICATIONS.md, ARCHITECTURE.md, and task.md, it places them inside the subfolder (e.g. dbv-specs-ops/docs/SPECIFICATIONS.md).
The 4-Phase Adoption Process
Phase A — Silent Project Analysis
Before asking you a single question, the agent explores the project autonomously. It reads:
- Configuration files at the root (
package.json,pyproject.toml,Cargo.toml,pom.xml, etc.) to identify the stack and key dependencies. - Directory structure up to two levels deep.
README.mdif one exists.- Test files to understand what is already covered and what is not.
- Recent git history via
git log --oneline -20if a repository is present. - Existing documentation (wikis,
docs/folders, code comments).
Phase B — Context Interview
Rather than asking you questions one at a time, the agent drafts an initial set of answers to the six critical areas listed below — based entirely on the silent analysis. Each inference is marked with
[ASSUMPTION: ...]. You review the full draft and correct or confirm everything in a single reply.The six areas:- Main objective — what problem the project solves.
- Working vs. incomplete parts — what already functions and what is broken or missing.
- Most urgent task or delivery — what needs to happen next.
- Immovable technical decisions — database, framework, external APIs, infrastructure choices that cannot change.
- Known technical debt — recurring problems or issues the agent spotted.
- Number of contributors — solo developer or a team.
Phase C — Generate SDD Documents
With the analysis and your confirmed answers, the agent creates three files. Each uses transparency markers so you can see exactly what was inferred versus confirmed:
| Marker | Meaning |
|---|---|
[INFERIDO] | Deduced from code or structure — pending your confirmation |
[CONFIRMADO] | Explicitly confirmed by you in Phase B |
[PENDIENTE] | Information is missing and must be resolved later |
docs/SPECIFICATIONS.md — filled with the project’s goals, users, features, and technical approach as understood from the analysis and your answers.docs/ARCHITECTURE.md — documents the stack and structure as it is today, not as it ideally should be. Includes the immovable technical decisions you confirmed.task.md — a backlog containing:- In-progress work detected from branches, TODOs, and failing tests.
- Pending tasks you indicated in Phase B.
- A Context Snapshot capturing the real state of the project at this moment, so any AI assistant can resume work from this exact point.
Phase D — Kickoff
Once the three documents are ready, the agent presents a status summary and asks:
“I’ve reconstructed the context. The current state is in task.md. Shall we start with [most urgent task identified] or is there anything you want to correct in the specifications first?”
From this point on, the standard SDD workflow defined in docs/MASTER_PROMPT.md takes over. The /spec → /plan → /build → /test → /code-simplify → /ship cycle applies to every subsequent task.What the adoption agent never does
- It does not delete or overwrite existing source code.
- It does not restructure your directory layout.
- It does not execute
git initor any git command without your explicit confirmation.