The Software Factory Playbook — Dex Horthy's 4-gate workflow (Product → Architecture → Program Design → Vertical Slices) as an installable Claude Code skill. Dex Horthy, founder of HumanLayer, has outlined a four-gate software development workflow—Product, Architecture, Program Design, and Vertical Slices—designed to make critical decisions before code is written. The workflow has been packaged as an installable Claude Code skill by developer Maciejdziuba, enabling agents to pause at each gate for user approval and document decisions for continuity across sessions. The skill aims to reduce costly rewrites by forcing early context-light thinking and incremental vertical slices. The Software Factory Playbook — Dex Horthy's 4-gate workflow as a skill A Claude Code Agent Skill built from Dex Horthy's HumanLayer playbook on David Ondrej's podcast. "Once the model has written thousands of lines of code, it is harder to change. The sessions that generate design docs are context-light — you get the most model intelligence when you do the hard thinking early." By default, agents build horizontally: all the backend, then all the frontend, then a 2,000-line diff lands in your lap and reviewing it is your problem. This skill flips that. Every decision that matters gets made before the code exists — where changing your mind costs a sentence, not a rewrite. What it does When you start a real feature, your agent walks through four approval gates — and stops at each one until you sign off: Product — what user problem, how success is measured, the "blog post before the feature," and plain HTML mockups of every screen. No tech talk allowed. Architecture — how it fits your existing system: endpoints, tables, query outlines, the end-to-end flow. Program Design — the step everyone skips: file locations, types and method signatures no bodies , the call stack, what the tests will assert, and a list of the decisions the agent is least confident about. Vertical Slices — code, finally — but tracer-bullet style: a thin end-to-end slice that runs first, then real logic one testable slice at a time. You can re-steer after every slice, while it's cheap. Every gate follows a fixed doc template and writes to docs/plans/