From the first idea to running code - specified, gated, traced.
TomSpecs is a process for building software with AI agents. The specification is a typed object model, not prose: AI fills it, people decide at eight quality gates, and the code generated from it cites the specification sections it comes from.
Why specifications first
An AI writes code quickly, and just as quickly writes the wrong code. TomSpecs moves the decisions into documents that a person reviews and a machine can check. The code that follows is the consequence of an agreed specification, not of a prompt, and where the specification is silent the process stops and asks instead of letting the generator guess.
Typed specification documents
Fourteen document types, each a tree of sections with stable ids, typed forms and lists. Stored as YAML or Markdown, validated on three tiers, edited through the model.
Eight phases, eight gates
AI agents produce and review the work in pairs - a progress role and an independent quality role. A phase ends only when its gate passes; at G7 a human sign-off is mandatory.
A skeleton before the code
CodeSpecs turns the specification into an application that compiles but does not run yet: screens, forms, APIs, tables and rules, each declaration back-linked to its source section.
Tests before implementation
The test suite is derived from the skeleton and the specification before any business code exists. Implementation is done when those tests pass.
Eight phases
Each phase has defined inputs, activities, outputs and a quality gate. A failed gate sends the work back; a defect found later re-opens the phase it came from. Details on the method page.
- Project IdeaNotes, interviews, transcripts - captured, not filteredPI · G1
- Solution BlueprintOne schema-bound overview of the whole system, filled mostly by AISBP · G2
- Detailed SpecificationsTwelve documents expanding the Blueprint to specification depthCLA TOM IFM RSP ISC ATS IIS SAS XDS QAP DRM TRP · G3
- CodeSpecsA skeletal shared / client / server application that compilesG4
- Test DerivationThe test suite, red before any code is writtenG5
- ImplementationBusiness code until every test passesG6
- Application CandidateDeployed for testing and accepted by the businessG7 · human sign-off
- Release CandidateProduction-ready, optionally multi-tenantG8 · then upgrade cycles
How it runs
The flow is an executable process: an engine walks a project step by step, agents write, and you review inside the documents and decide at the gates.
Steps, rounds and gates
The step plan of the specification phases, review rounds inside the documents, gates run against checklists, Phase 4 in two passes, and change mode for running applications.
The project flow →A workbench in VS Code
The MD Browser, the process engine, a prompt queue with agents and 231 tools, and the tomspecs binary over a code stack in nine languages.
Available today
The object model, the validators and the CodeSpecs framework are published on pub.dev; the method and its reference documents are public on GitHub, together with runnable samples.
Nine Dart packages
The model, its Dart runtime and typed facade, the CLI tools and the CodeSpecs annotations.
Package list →Idea to code in one walk
A small project taken through phases 1-6 with every gate actually run - and a failing gate stopping the walk.
Samples →The reference documents
The project flow, the object model, the CodeSpecs mapping and derivation contract.
Documentation →