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
Write a YAML spec and Claude Code auto-generates tests, implementation, and documentation. A practical guide to Spec-Driven Development covering spec formats, TDD automation, and CI/CD pipeline integration with real code examples.
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.