Preview - this site is being built. Pages and content will change.
Specification-driven development

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.

MODEL AS TRUTH

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.

AI-DRIVEN, HUMAN-GATED

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.

CODE AS SPEC

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.

TEST-FIRST

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.

  1. Project IdeaNotes, interviews, transcripts - captured, not filtered
    PI · G1
  2. Solution BlueprintOne schema-bound overview of the whole system, filled mostly by AI
    SBP · G2
  3. Detailed SpecificationsTwelve documents expanding the Blueprint to specification depth
    CLA TOM IFM RSP ISC ATS IIS SAS XDS QAP DRM TRP · G3
  4. CodeSpecsA skeletal shared / client / server application that compiles
    G4
  5. Test DerivationThe test suite, red before any code is written
    G5
  6. ImplementationBusiness code until every test passes
    G6
  7. Application CandidateDeployed for testing and accepted by the business
    G7 · human sign-off
  8. Release CandidateProduction-ready, optionally multi-tenant
    G8 · 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.

THE FLOW

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 →
THE TOOLING

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.

The tooling →

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.

PUB.DEV

Nine Dart packages

The model, its Dart runtime and typed facade, the CLI tools and the CodeSpecs annotations.

Package list →
SAMPLES

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 →
DOCS

The reference documents

The project flow, the object model, the CodeSpecs mapping and derivation contract.

Documentation →