tdd

Enforce a TDD workflow for Go and SQL projects with iterative tests.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/danielmichaels/cskills --skill tdd-danielmichaels
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/danielmichaels/cskills/tree/main/go/skills/tdd
Command: npx skills add https://github.com/danielmichaels/cskills --skill tdd-danielmichaels

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go and SQL projects often suffer from brittle tests and unclear confidence about behavior; this guide provides a disciplined test-driven development workflow to build robust systems with observable outcomes.

Core Features & Use Cases

  • Tracer bullet workflow: write a single failing test, implement minimal code to pass, then expand.
  • End-to-end TDD for SQL queries: seed DuckDB with minimal data and verify results through the public API.
  • Go testing best practices: table-driven tests, t.Helper, and parallel tests to accelerate feedback.

Quick Start

Begin by writing a failing test, implement just enough code to pass, and iterate until the behavior is fully covered.

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure test-driven development for Go and SQL projects?

End-to-end TDD for SQL queries involves seeding DuckDB with minimal data and verifying results through the public API. This integration-style testing ensures observable outcomes and repeatable confidence in database behavior.

What are Go testing best practices for accelerating feedback?

Go testing best practices include using table-driven tests, t.Helper, and parallel tests to accelerate feedback. These techniques structure test cases efficiently and isolate failures clearly.

Can I use this TDD workflow for both unit and integration tests?

Yes, this TDD workflow applies to Go and SQL codebases requiring repeatable, integration-style tests and iterative design cycles. It scales from unit tests to end-to-end flows seamlessly.

Why are my Go and SQL database tests brittle and how do I fix them?

Go and SQL tests often become brittle without a disciplined TDD workflow. Fix them by applying a tracer bullet approach: write a single failing test, implement just enough code to pass, and iterate until fully covered.