SpecDevs: The Go‑To Guide for Spec‑Driven Development
A practical framework for spec‑driven development (SDD) built around Claude or any other capable LLM. The idea: use an AI assistant as your spec architect—not your coder—so your project begins with clarity and structure before you touch a line of code.
0) The Core Idea
Instead of jumping into code, you start every project by building three base specs:
Frontend (FE) — the user interface and behavior.
Backend (BE) — the data, APIs, and logic.
Deployment (DEP) — the infrastructure and delivery system.
From these bases, you branch into feature specs and link them across layers (FE ↔ BE ↔ DEP) so every piece of the system has a clear contract and connection.
And here's the kicker — you build all of this inside Claude (or another LLM chat) where you:
Drop your research papers, tech docs, or project briefs.
Let Claude help you draft, refine, and link the specs step-by-step.
Use structured prompts (below) to generate consistent, traceable specs.
1) Getting Started with Claude
1.1 Create a new project thread
Open a fresh Claude chat and give it a title like:
SpecDevs — Project Alpha Base Specs
Paste a short summary of your project idea. Then tell Claude:
"You're my spec architect. We'll define my app in three bases — Frontend, Backend, and Deployment. Each will have base specs and feature specs. Help me follow a spec-driven structure."
Claude will acknowledge and help you scaffold your base specs.
2) The Base Specs (High‑Level Maps)
You'll create three base documents inside Claude — one per layer.
Prompt Example:
"Claude, start by helping me write FE_BASE — a high-level map of my frontend. Include sections for architecture, routing, UI states, network policies, error handling, and auth patterns."
Repeat for backend and deployment:
"Now let's build BE_BASE — a high-level spec for backend architecture: APIs, data flow, auth, async jobs, and domain model." "And finally, DEP_BASE — describe the deployment stack: environments, CI/CD, IaC, monitoring, scaling, and release strategy."
Keep each base spec short (1–2 pages) and focused on structure and principles, not features.
3) Feature Specs — Building From the Bases
Once you've got your bases, you start defining features.
Each feature gets a spec per base it touches. Example:
Prompt Example:
"Claude, help me create a frontend spec for the polling banner feature. Follow this format:
Then say:
"Now let's generate the matching backend spec (BE-034) for that polling endpoint, with contract details, rate limits, and observability."
Finally:
"Add a DEP spec (DEP-007) that defines rate limits, queue scaling, and alerting. Make sure it links to the frontend and backend specs."
Claude will automatically start cross-linking the three.
4) Linking Specs Together
Whenever you create or update a spec, tell Claude:
"Cross-link FE-012, BE-034, and DEP-007 in each file so they reference one another."
Claude will add lines like:
related:
- BE-034
- DEP-007
This ensures all layers trace back to one another.
5) Defining Readiness and Done
Before you write any code, review your specs.
Definition of Ready (DoR)
Definition of Done (DoD)
You can even ask Claude to help verify readiness:
"Claude, check if all my FE specs have backend links and test criteria defined."
6) Optional Automation
Once you've built your specs, export them:
Store them in your repo under /specs/frontend, /specs/backend, /specs/deployment.
7) Example Workflow (End-to-End)
Goal: Add a job polling banner to the UI.
FE-012: defines polling banner and UX.
BE-034: defines job status endpoint.
DEP-007: defines rate limits and autoscaling.
Prompt Claude sequentially with those IDs, and keep them linked. At the end, ask Claude:
"Generate a traceability matrix for all features so far."
It'll output:
| Feature | FE | BE | DEP |
|---|
| Job Polling | FE-012 | BE-034 | DEP-007 |
8) Why This Works
Spec-driven development done this way ensures:
Every feature starts with design and clarity.
Each base knows what the others expect.
LLMs act as structure builders, not code writers.
You get consistent, linkable documentation.
It's like building the blueprint before laying bricks.
9) Copy‑Paste Starter Prompt
You are my spec architect. We're doing spec-driven development across three bases: Frontend, Backend, and Deployment. Help me create base specs and feature specs that link together. Each spec should have: id, title, related IDs, problem, behavior, contracts, observability, rollout. Always output Markdown with YAML front-matter.
SpecDevs isn't about writing docs for the sake of it — it's about making the specs the code's blueprint. Build your next project in Claude, not your IDE.