Blog

Spec-driven development, the way I run this site

Every feature of this site starts as a written design, becomes a change with a checklist, and ends with saved proof that it works. Here is the loop, with the blog itself as the example.

I build this site mostly with an AI coding agent. That works well for writing code and badly for remembering why the code is the way it is. So the "why" lives in files: specs, issues and changes in Markdown, kept in Git next to the code and connected by a small CLI called sdd.

This blog is a good example, because it went through the whole loop just before you read it.

Three repositories, one graph#

  • des – the design: product concepts, decisions, issues. No code.
  • web – the Rust app, with its own specs for endpoints, services and pages.
  • data – the content, including this post.

Every document has a code such as DES-ISSUE-10 or WEB-SPEC-17, and links to others: parent, depends-on, related. sdd reads all three repositories as one graph, so I can ask questions across them:

bash
1sdd show DES-ISSUE-17 --links parent,depends-on2sdd next              # changes whose dependencies are done3sdd check             # broken links, bad anchors, stale statuses

The loop#

1. Grill. A feature starts as a question, and the agent interviews me about it one decision at a time, always with a recommended answer. The blog took eleven decisions: three post states, tags as their own registry, images in Cloud Storage, a signed preview link, and so on. Each answer is written down while we talk, not afterwards.

2. Split the work. The decisions become an epic with stories, ordered by depends-on: storage, the post model, the CLI, the public pages, the admin editor, and finally the first posts. Each story names the repositories it touches.

3. Make a change. For each story the specs are written or updated first, then a test-case document derived from them, then a change: a checklist that points back at the spec items it implements.

markdown
1### Stage: implement23- [x] [Migrations: the `tag` code kind; `tags`, `page_tags`, `page_skills`](WEB-SPEC-18#i5)4- [x] [Migration: `code` and `callout` in `block_kind`](WEB-SPEC-19#i5)5- [x] [Migration: `page_state`, `pages.state`; the `post` kind on the blog site](WEB-SPEC-8#i13)

That is part of the change that added posts to the data model. Each line links to the spec item it implements.

4. Ship. The agent implements the change, then verifies it against the running app – it drives a browser or calls the API and saves the evidence – and fixes what fails until every item passes. Only then are the boxes ticked, and they are ticked through the CLI, never by hand:

bash
1sdd item WEB-CHANGE-p#implement.i3 done2sdd done WEB-CHANGE-p

5. Deploy and verify again. Each story is deployed to staging and checked there; the issue moves to verified only after that check.

Why ticking through a tool matters

A box that anyone can tick by hand soon means nothing. When every tick goes through one command, I can trust a green checklist – and sdd check tells me when one is lying.

What it costs, and what it buys#

It is slower to start. Writing the decisions down takes real time, and some days the paperwork feels heavier than the code.

What it buys is that nothing important lives only in a chat. When I come back to a feature a month later, the issue says what was decided and why, the spec says what the code should do, and the verification report says what was actually seen on staging. The agent reads the same files, so it starts from the same place I do.

The blog you are reading was built in six stories this way. This post is the last item of the last one.

Share LinkedIn X Email

← All posts · Yaroslav Zhurbilo