Test-Driven Development with Claude Code — A TDD Workflow for the Agent Era
Adding the constraint of 'write tests first' to Claude Code stops the agent's drift and dramatically changes the quality of generated code. Here's the TDD workflow I arrived at after six months of trial and error.
Write the Repro Test Before Delegating Bug Fixes to Claude Code
After watching Claude Code spin its wheels on ambiguous bug reports, I started writing the failing test myself before delegating. This post walks through the design principles, a concrete repro test, and the three-stage workflow I run in production.
From Spec to Production: Spec-Driven Development with Claude Code
Driving tests, implementation, and docs from a YAML spec with Claude Code, plus measured bcrypt 72-byte results where a valid spec still yields broken code.
Test-Driven Refactoring with Claude Code — Safely Modernizing Legacy Code
Learn how to use Claude Code to safely refactor legacy code by adding tests first. Combine TDD principles with AI assistance to eliminate technical debt without breaking existing functionality.