A Spec-Driven Workflow for AI Coding Agents, and the Hook That Enforces It

A spec-driven workflow for Claude Code agents: a numbered spec that gets attacked before any code, checks set up before features, three roles with walls between them, a PreToolUse hook that enforces the rules, and injected bugs to grade the tests. Written after running it once and logging every confident mistake.

September 2026