r/SpecDrivenDevelopment • • 1d ago

I built a small browser game with Claude Code without opening the code once. Every decision went into the spec.

3 Upvotes

A while ago I shared Folio, a free, open-source (MIT) Markdown reader for folders of specs, ADRs and notes, with a review loop for Claude Code. This update moves the other half of the conversation into the documents too: Claude Code's questions.

To try it, I built a small browser game (a paper lantern drifting across a pond at night) and never opened the code. Everything was decided in a spec and an ADR. The video is the whole session, about 16 minutes including my review, cut down to two. Every sped-up part is labelled.

How it went:

- Claude Code runs in a panel inside Folio: your own `claude` CLI with your login, started in the workspace. No separate terminal.
- I ran /folio:draft with a two-line description. Claude Code wrote the spec and an ADR, and instead of a list of questions in the chat, it left 12 notes on the passages they were about.
- A decision shows its options as buttons (e.g. "Canvas size: full window, or a fixed 16:9 playfield"). One click to answer. Open questions take a reply in your own words.
- I accepted the spec in a note on the document ("let's implement it") and clicked Send. Claude Code recorded each answer in the spec or the ADR and replied to every note.
- While building, it hit something the spec didn't say: the difficulty numbers. It asked on that passage, I answered "yes, write them down", and the numbers went into the spec.
- Then I typed "run the game" and played it.

What I like about working this way: the decisions don't disappear into a chat history. They're in the documents, next to the text, for the next person or agent to read.

Same as before: Folio never writes to your documents (the agent does, in its own session). Highlights and notes stay in ~/.folio. macOS, Windows and Linux, plus a browser demo.

Repo: https://github.com/crazzybot/folio

Curious how others handle this: do you let your agent ask questions in the chat, or do you push decisions into docs?


r/SpecDrivenDevelopment • • 3d ago

OpenSpec Intent-Driven Template 2.0

Thumbnail
github.com
39 Upvotes

You may already be familiar with my Intent-Driven template https://github.com/intent-driven-dev/intent-driven-template from my earlier post (https://www.reddit.com/r/SpecDrivenDevelopment/comments/1ta3ag5/specdriven_development_with_openspec_and_opencode/). It includes a custom OpenSpec schema for intent-driven development with support for Architecture Decision Records (ADR), C4 diagrams, Gherkin, TDD, multi-model adversarial spec authoring, domain glossary, and reusable engineering workflows. It also makes OpenSpec Spec-as-source capable.

OpenSpec 2.x replaces each built-in skill folder in .agents/skills/ and does not keep copies for each Coding Agent. As I upgrade to this version, I moved all my skills also to .agents/skills/.

With the 2.0 release, the template now supports OpenCode 2, Codex CLI, Copilot CLI, and Claude Code. The earlier release was specific to OpenCode 1.x.

I would love to hear your feedback and suggestions.


r/SpecDrivenDevelopment • • 2d ago

What mode do you use Matt Pocock's skills with?

1 Upvotes

If you use Matt Pocock's skills, do you use his default mode where most everything lives in Github, or do you opt for the local mode and the .scratch folder?

I'm having a hard time deciding which I'd want.


r/SpecDrivenDevelopment • • 4d ago

pi-spec-mode 1.0.0 release : write, agree on, verify and implement specs in pi

Thumbnail reddit.com
2 Upvotes

r/SpecDrivenDevelopment • • 4d ago

Is anyone actually running agents in their deploy or on-call pipeline?

Thumbnail reddit.com
1 Upvotes

r/SpecDrivenDevelopment • • 7d ago

Review your agent's specs in Folio. Claude Code fixes them and replies to every note.

8 Upvotes

I built Folio, a free, open-source (MIT) Markdown reader for folders of specs, ADRs and notes. The latest version works with Claude Code as a review loop:

  1. Run /folio:review-loop in Claude Code. It waits for your notes.
  2. In Folio, highlight passages and leave notes, or set a document's status (e.g. "accept once it follows ADR 0005").
  3. Send. Claude Code gets the notes with file paths and line numbers, edits the docs, and replies to each note.
  4. Folio shows which sections changed and the text before the edit. Read the replies, then resolve or answer back.

Folio never writes to your documents. Highlights and notes stay in ~/.folio. Runs on macOS, Windows and Linux. There's also a browser demo.

Repo: https://github.com/crazzybot/folio

Happy to hear how you review agent-written docs today, and what's missing.


r/SpecDrivenDevelopment • • 7d ago

As a Staff Engineer, handling multiple projects this is what my workflow looks like now

Post image
5 Upvotes

As a staff engineer handling multiple projects, my problem wasn't writing code. It was context switching, and how much I had to keep in my head to steer each piece of work. So I moved to a dev workflow like this.

With the models getting so good, I really need claude to just plan and execute while I make the decisions so I am embracing "spec driven" development.


r/SpecDrivenDevelopment • • 8d ago

build: a skill that writes the spec first, then the code

7 Upvotes

Getting a first version running with Claude Code is quick. The trouble starts months later, when something has to change and nobody, the agent included, knows what the code was meant to do.

build is one answer to that: a free, open-source skillset (MIT). Concept documents are the specification and the code is derived from them. My test is whether a second agent could rebuild the product from the documents alone.

You type "start", then "next", "redo" or "stop". A director skill runs four stage skills:

  1. Intake: takes a brief or problem statement, asks only for what is missing.
  2. Concept: numbered requirements, ADRs, architecture in slices, consistency check.
  3. Synthesis: red-green-refactor per slice. Commits cite the requirement IDs.
  4. Rescue: on demand, removes entropy and reports drift between docs and code.

A human decides at three gates: requirements, consistency findings, and a gap analysis before release.

Also built in: STPA-light (losses, hazards, constraints, each traced to a requirement and a test) and secret protection before the first line of code (hook, gitleaks pre-commit).

Plain markdown, nothing to install. Open the folder in Claude Code, Codex or Cowork and type "start", or symlink skills/build* into ~/.claude/skills/. Customer-specific rules go into a profile/ folder instead of a fork.

Repo: https://github.com/ditomax/build

Actually tested on two projects, medical app and a skill for fault detection in electrical installations in factories.

For those maintaining agent-written code longer than a few weeks: where does drift show up first for you? Does spec-first hold up, or does it just move the problem into the docs?


r/SpecDrivenDevelopment • • 7d ago

TeDDy: a coding harness for iterative, incremental development

Thumbnail
youtube.com
3 Upvotes

r/SpecDrivenDevelopment • • 9d ago

I can't be the only one concerned that we're becoming so focused on how quickly AI can produce code that we're forgetting all these learnings we've had from decades of SWE...

9 Upvotes

I've been following the growing popularity of SDD, doing it myself, I can't help feeling we're overlooking engineering practices we've spent decades developing and shouting about.

It's very common to see workflows where an AI agent writes a markdown spec, implements code, then writes tests to validate the same implementation. Huge PRs and reduced human review.

I know some SDD kits support test-first development, but doesn't seem to be the default approach.

A Markdown specification can't go RED or GREEN on its own. And tests passing doesn't necessarily mean you've built the right thing.

I've seen discussions around removing humans from PR reviews entirely, which I find a bit mad. Why not instead automatically flag changes to agreed business behaviour, contracts or fitness functions as requiring particular human attention, but then again not many teams are in a position where they have these...

Is anyone making use of SDD in such a way, following the classic workflows of TDD, BDD, FFDD and ATDD?

I've been working on this tool to help combat this and having good results, so this is also a shameless plug, alongside wanting to hear from proponents of SDD.

The main principle is:

AI may propose and implement changes, but it must not independently redefine the conditions by which those changes are judged successful.

It's still very much an early alpha, built by just me. Currently Windows x64, .NET 10, ASP.NET Core APIs and Reqnroll/MSTest. The packaged release supports Codex, with Claude Code and Cursor support being developed.

I've started benchmarking against Spec Kit too, with some promising early results, although there's a lot more work needed there.

Repo: https://github.com/tayzer/TADA

I'm not against SDD at all. Quite the opposite, I think there's a lot of potential here. I just worry we're so focused on the speed of AI-generated code that we're overlooking some of the lessons we've learned from decades of software engineering.

I'd genuinely love some criticism from people using SDD regularly. Are you already incorporating executable acceptance tests into your workflows? How are you stopping agents from modifying their own success criteria? And is requiring human approval of those criteria too much friction?


r/SpecDrivenDevelopment • • 10d ago

Spec driven development: Vermilion Editor

Thumbnail
github.com
19 Upvotes

Hi. I had no idea there was a community for this. I've been doing the spec driven development for a while and am in the process of making an IDE specifically for this use case... by using this method.

I guess I'll just leave a link here and let you guys take a look at it.

I didn't want to post in the vibe coding subs because I'll be honest they seem kinda... lazy.

Anyways... This is the basics, my github page and the project page explain more:

The gate protocol

Every non-trivial task proceeds through gates, and every gate follows the same loop:

 Orchestrator writes a self-contained prompt
        │
        ▼
 Fresh Qwen session ── reads AGENTS.md ── does ONE step ── writes evidence files ── "STOPPING AND WAITING"
        │
        ▼
 Orchestrator audits the tree and the evidence ──► PASS | PASS WITH NOTES | FAIL
        │                                                │            │
        │                                     fix loop (same session) │ corrective prompt
        ▼                                                             │
 I commit the gate, commit the updated docs, push  ◄──────────────────┘

Several properties of this loop are deliberate:

  • One step per prompt, and every prompt is self-contained. I open a fresh agent session for each step, which keeps the local model's context small and its behaviour predictable. Prompts are kept short enough to stay well inside what the agent handles reliably (an oversized one once hung it). Each carries its own context, rails, steps and evidence requirements, and begins with a mandatory instruction to read AGENTS.md first.
  • Evidence is produced by the machine, not narrated by the model. Long outputs (configuration, build, test runs, proofs) are written by the commands themselves into time-stamped files that record the commit they ran against. The Orchestrator reads those files directly and checks their timestamps against the edited sources.
  • Nothing is carried forward as debt. A note raised in an audit is fixed before the gate is committed, through short continuation prompts in the same agent session. A remark that depends on code not yet written is attached to the gate that will write it, never left as a loose to-do.
  • The agent cannot commit, push or discard work. OpenCode's permission configuration denies every git command that creates, rewrites or throws away history; only I perform those operations, and only at the end of a gate.
  • The agent must say when the prompt looks wrong. Every report has a "Prompt doubts" section. Qwen follows the prompt anyway, unless that would break a rule, and the Orchestrator judges the doubt afterwards.
  • Every milestone ends in a review. Before the next milestone begins, the Orchestrator and I discuss what was promised against what was delivered, what we learned about the process and the technology, and whether the plan should change.The gate protocol Every non-trivial task proceeds through gates, and every gate follows the same loop: Orchestrator writes a self-contained prompt │ ▼ Fresh Qwen session ── reads AGENTS.md ── does ONE step ── writes evidence files ── "STOPPING AND WAITING" │ ▼ Orchestrator audits the tree and the evidence ──► PASS | PASS WITH NOTES | FAIL │ │ │ │ fix loop (same session) │ corrective prompt ▼ │ I commit the gate, commit the updated docs, push ◄──────────────────┘ Several properties of this loop are deliberate: One step per prompt, and every prompt is self-contained. I open a fresh agent session for each step, which keeps the local model's context small and its behaviour predictable. Prompts are kept short enough to stay well inside what the agent handles reliably (an oversized one once hung it). Each carries its own context, rails, steps and evidence requirements, and begins with a mandatory instruction to read AGENTS.md first. Evidence is produced by the machine, not narrated by the model. Long outputs (configuration, build, test runs, proofs) are written by the commands themselves into time-stamped files that record the commit they ran against. The Orchestrator reads those files directly and checks their timestamps against the edited sources. Nothing is carried forward as debt. A note raised in an audit is fixed before the gate is committed, through short continuation prompts in the same agent session. A remark that depends on code not yet written is attached to the gate that will write it, never left as a loose to-do. The agent cannot commit, push or discard work. OpenCode's permission configuration denies every git command that creates, rewrites or throws away history; only I perform those operations, and only at the end of a gate. The agent must say when the prompt looks wrong. Every report has a "Prompt doubts" section. Qwen follows the prompt anyway, unless that would break a rule, and the Orchestrator judges the doubt afterwards. Every milestone ends in a review. Before the next milestone begins, the Orchestrator and I discuss what was promised against what was delivered, what we learned about the process and the technology, and whether the plan should change.

r/SpecDrivenDevelopment • • 9d ago

Built an open-source test management tool with AI agents as first-class citizens — TestPulse 1.0.0

Thumbnail
reddit.com
1 Upvotes

r/SpecDrivenDevelopment • • 11d ago

Enterprise Applications

3 Upvotes

Who here is actually building business applications for companies?
I have the impression that most posts are from solo developers.


r/SpecDrivenDevelopment • • 11d ago

We need lawyers, not developers.

Thumbnail reddit.com
2 Upvotes

r/SpecDrivenDevelopment • • 13d ago

Finally introduced coding subagents to my harness

Post image
2 Upvotes

I was running several primary agents in parallel across multiple projects and the notifications were burying me. Every agent stopped to ask me something: "X or Y?", "found a side issue, fix now or later?" etc. I had become the bottleneck. my AGENTS.md cover many conventions/rules/standards but its still wasn't enough to cover so many of these questions.

So I restructured my workflow like a team:

  • Me: the manager
  • One chat per project: the team lead
  • The other agents: team members, each working in its own "lane"

How lanes work

  • A lane is a git worktree plus a chat working inside it. Each one gets its own branch and folder, so agents don't trample each other's files.
  • The lead asks to open a lane with a title, a plan, and the files it expects to touch. Nothing starts until I approve it on a Lanes board. Before I approve, the harness checks for overlap with files other open lanes are touching, my plan usage, machine load, and whether a spec exists for the work.
  • When a team member stops (it's done, blocked, or has a question), it rings the lead, not me. The lead works through its inbox and replies.
  • The lead can only answer from written rules: a lead.md file in the project plus the project's docs, and it has to cite the rule it used. If no rule covers the question, or it's a taste/preference call, it escalates to me.
  • Escalations land on the board and on my phone as numbered questions, each with a recommended answer. I can answer straight away or ask the lead a follow-up first.
  • The lead can also send me FYI notes that don't need an answer.

I still have full control

Every lane is a normal chat. I can open any of them, read the whole transcript, and type into it directly if I want to step in. The harness never merges a branch, deletes a branch, or removes a worktree on its own.

My notifications are now mostly things that actually need me. It's still early, and I keep refining what goes into lead.md, since that file decides how much the lead can handle without me.

So far I have noticed I am getting a lot more done with less headaches. (literally!)


r/SpecDrivenDevelopment • • 14d ago

Do retries hide real bugs?

Thumbnail
reddit.com
2 Upvotes

r/SpecDrivenDevelopment • • 14d ago

Sharing pi-spec-mode, an extension for drafting, validating and maintaining specifications

Post image
3 Upvotes

r/SpecDrivenDevelopment • • 14d ago

How we write the Ant docs

Thumbnail reddit.com
1 Upvotes

r/SpecDrivenDevelopment • • 15d ago

I just released SPEC-SS: my workflow for coding agents. Looking for feedback

Thumbnail
reddit.com
2 Upvotes

r/SpecDrivenDevelopment • • 16d ago

How do you write automated tests and how do your tests connect to requirements?

Thumbnail reddit.com
2 Upvotes

r/SpecDrivenDevelopment • • 17d ago

Declarative vs imperative in SDD

13 Upvotes

Hey guys,

I was talking to a friend the other day regarding how you should approach spec work and realized that I am thinking about it in a declarative way while the rest of the world seems to be thinking imperatively.

In a nutshell, chances are that if you want to, say, "add the email function to the product", you would think about this as a sequence of tasks: your flavor of of spec, dev, qa, deploy. From my perspective, tasks are secondary, a derivative, of a diff between two product states.

The current state is whatever is in production now, and its spec. The target state is the product with the email sending functions live. The diff is added/changed/removed spec items. The tasks are derived, because you can always reconstruct the tasks from the spec diff, but not vice versa.

There's more on this in an article on our website (link in comments).

LMK your thoughts, happy to discuss.


r/SpecDrivenDevelopment • • 17d ago

From spec-driven to behaviour-driven development

Thumbnail
reddit.com
2 Upvotes

r/SpecDrivenDevelopment • • 18d ago

I'm building a new kind of harness that tests code against formal specs

8 Upvotes

I'm developing a tool to check whether code satisfies formal specifications written in FizzBee. While TLA+ or FizzBee are good tools for checking whether a system can reach invalid states, they don't provide a way to verify implementations conform to the specifications. Unlike unit testing, there is no widely acceppted way to check implemented code follows a formal specification.

So, I built Spec Guardian:
https://github.com/mrasu/spec-guardian

It generates tests from the execution results of specifications written in FizzBee. The tests compare FizzBee's abstract states with concrete states stored in RDB tables or KVS. AI can also generate tests for the same purpose, but it tends to writes tests that follows implementations rather than specifications. That's why Spec Guarding generates tests primarily from FizzBee's results and yaml configuration.

Using Spec Guardian, I tested iceberg-go against a specification written by Jack Vanlightly.
As a result, I found that iceberg-go doesn't support Merge-On-Read mode and creates a single bundled file instead of multiple files as an optimization. While the goal of Spec Guardian is to find bugs, I think finding differences between implementations and specifications is a good sign that I'm on the right track.

It's still under development.
What do you think of this approach to comparing specifications and implementations? Could it become a new kind of AI harness? What features would you like to see added?


r/SpecDrivenDevelopment • • 18d ago

Writing PRDs with ChatGPT/Claude kept giving me generic garbage, so I built a tool that learns the product first

Thumbnail reddit.com
2 Upvotes