← Getting started guides

How to use spec-driven development with humans and agents

How-To Getting started Beginner 1001001HOWTO-1001001

HOWTO-1001001Getting startedBeginner

Humans and agents work better when they do not have to guess the project context. Spec-driven development gives the work a local contract before anyone plans or edits files. With SpecDD, that contract lives in .sdd files beside the files, directories, workflows, or infrastructure they describe.

This guide shows the basic workflow for using spec-driven development with human contributors and agents such as Claude Code, Codex, GitHub Copilot, Cursor, Windsurf, Gemini CLI, OpenCode, Junie, Cline, and others.

Short answer

Put the relevant intent in a local .sdd file, then ask for the actual task: the spec, feature, task, or behavior you want changed. The SpecDD project instructions handle the workflow. Requests should use human names, not full file paths.

Why specs help

A prompt is temporary. A spec is versioned project context. When the important rules live only in chat, every new agent session and every human handoff starts with the same risk: the next contributor may infer the wrong ownership boundary, change nearby files because they look related, or implement a broader feature than requested.

SpecDD gives contributors a path-based way to find the relevant context:

The result is a smaller prompt and a more reviewable change.

Prerequisites

Before you start, make sure:

For agent-specific setup, start from the tools page .

Steps

1. Name the spec or feature

Every contributor needs a concrete subject. A request like “improve billing” leaves too much room for inference. Prefer a spec, feature, task, or behavior:

Implement task 1 in the Itinerary spec.

or:

Fix missing-place validation in the Itinerary feature.

The project instructions and specs give the durable SpecDD context. The request gives the specific work.

2. Prompt only the requested task

Use the shortest prompt that identifies the work:

Complete the open task in the Itinerary spec.

If the task needs a specific outcome, include that outcome:

Fix missing-place validation in the Itinerary feature.

3. Implement a small slice

Keep the request narrow:

Implement the missing-place validation task.

SpecDD works best when contributors implement one spec or a small related group of specs at a time. Large multi-area requests make it harder to preserve local authority.

4. Review the result against the spec

Review the output as a contract check:

If the work reveals missing context, update the spec. Do not leave the new rule buried in a chat transcript or review comment.

Example prompt

Use this prompt for a small implementation:

Implement the open task in the Itinerary spec.

SpecDD pattern

This workflow uses:

Common mistakes

How to verify the result

You are using spec-driven development with humans and agents correctly when:

← Getting started guides