How I build software with LLMs

An LLM writes production-quality software when a human does the specifying and the gating. Not "prompt until it looks right". The method below is the one I've used daily, on an 8-year-old commercial codebase and on new projects alike, and everything it produces ends up as a document I can go back to, rather than a chat log.

This site publishes one whole project built that way, workflow documents and all: the rpm-boss workflow documentation.

Phases and stages

A phase groups features, and is a numbered directory on disk. A stage is a step of the workflow itself. A feature in phase 3 still passes through all seven stages.

The seven stages

Any stage can be preceded by discussion and research. The first three produce documents written by the agent. First in draft, so I can approve the direction before we commit to one. Stages 4 and 5 produce code. A stage can also be preceded by a deliberate choice of model and configuration. By default, at most one stage runs per prompt, and I check, verify and correct its output before the next one starts.

  1. PRD (Product Requirement Document) - requirements only, with explicit non-requirements. No design choices, no implementation details. Every PRD carries a short stable id in its frontmatter. (prd.md)
  2. Design - architecture, data flow, API usage, trade-offs argued in writing, and open questions split into those the agent can settle on its own and those it cannot. (design.md)
  3. Tasks - file-by-file changes in order, each with its verification step. (tasks.md)
  4. Implementation - code, on a branch of its own, every commit referencing the PRD id. The stage ends with the agent driving the running app itself, through Playwright in the browser or adb on the Android phone. It reports what it actually saw, not what it expects from reading the code.
  5. Code review - I trigger it. Findings arrive as a numbered list with a recommendation for each. Nothing is fixed until I say which ones. Every accepted fix is re-verified in the running app.
  6. Review - a checklist in lettered sections and numbered items, so any single item can be named in conversation. The agent records evidence per item and marks what it verified itself. The boxes stay mine to tick.
  7. Merge and deploy - the branch merges only here. Whether that means a deployable main, or some other release flow, is per project.

The rules that make it hold

Why this matters beyond the project

The same skills carry straight over into training and testing AI models:

The worked example: rpm-boss

After theory, comes practice. Here is a full project created with my workflow, with both the source code and the workflow documents published.

rpm-boss measures an engine's RPM from its sound. Record a motorcycle engine held at steady revs and get a tachometer reading. Audio DSP, React and TypeScript, web and Android, and soon on Google Play. Five days of effort, from empty directory to Play-store submission. Try it in the browser with the bundled samples and the simulated engine.

The complete workflow documentation - every PRD, design doc, task list, review checklist and decision discussion, as written during development, unpolished. Seven code-review rounds, 54 findings, each argued. It also shows the workflow is not a dogma. One feature skipped its review document altogether, because I judged the fixes and the merge are better done in one pass, and the status table says so. Some findings get turned down rather than fixed, with the reason written down either way.

Background

Eight years as the primary frontend engineer of Altrady, a multi-exchange crypto trading platform. BSc Artificial Intelligence, University of Amsterdam (2015).

CV - GitHub - LinkedIn