The Heavenly Gates. A book by Tom Gilkison.

Stop checking every line. Merge on green.

Quality gates that turn AI from "check every line" into "merge on green." Build a layered gate system (rails, build, CI, AI review) that makes it structurally impossible for an AI session to ship code below your team's standard.

Written in the open on Leanpub. Read who it is for before you buy.

AI: Programming Like a God: The Heavenly Gates, a book by Tom Gilkison

The gates you build

Quality gates are the layers code must pass to reach production. The book builds them one at a time against a real, public app, so you watch each gate catch a live defect before the next one goes in.

Rails

AGENTS.md and CLAUDE.md that load the right context and constraints into every AI session, so it starts inside your guardrails instead of outside them.

Build and type gates

Compile-time guarantees and analyzers that fail the build, not the reviewer. The strongest green is the one a machine enforces.

CI and branch protection

Tests, architecture fitness checks, and required checks that make merging below standard impossible, not merely discouraged.

AI reviews AI

A second model that reviews the first one's work against your standards, with verification loops that catch the confident-but-wrong output.

No single gate is a proof. A capable AI can game any one of them. The book is honest about that: it teaches a layered stack of imperfect gates (defense in depth) sized to the blast radius, so the risk drops to a level your business can accept.

Who it is for

Read this if

  • You lead a team of 3 to 10 engineers who use Copilot or Cursor daily.
  • You ship production code and have already watched an AI session go sideways.
  • You want architecture and opinions, not another list of prompt tricks.

Skip it if

  • AI skeptics who think these tools are hype. This book does not try to convert you.
  • Absolute beginners. It assumes 5+ years of instinct and will not explain what a compiler is.
  • Prompt influencers optimizing for individual productivity tweets. The book argues against the better-prompt framing.

Built against a real app: Gatekeeper

The running example is not invented. Gatekeeper is a real, public, MIT-licensed permissions app, built greenfield in the open in C#/.NET. It starts with no gates at all, and the book adds each one on camera. Every chapter ends as a git tag you can check out.

About the author

TG

Tom Gilkison has written software for 25 years and works as a solutions consultant. In December 2025 he hit AI development and did not come up for air: 20 hours a day, seven days a week, for three months, building software, documentation, music, and anything else he could imagine. This book is the system he came up with along the way, the one that turns AI's output into rock-solid code instead of the default, out-of-the-box slop it consistently produces.

Start with the free sample

Read the opening chapters, then decide. The book is written in progress, so buying early means you get every update as it ships.

Get the free sample chapter
on Leanpub
Buy the book

Prefer to read in the browser? The web edition is free.