tdd

Implement Test-Driven Development workflows with examples in Go, Java, and Python.

Updated Jun 3, 2026
One-click install
npx skills add https://github.com/gclm/skills-hub --skill tdd-gclm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/gclm/skills-hub/tree/main/tdd
Command: npx skills add https://github.com/gclm/skills-hub --skill tdd-gclm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps implement Test-Driven Development (TDD) workflows, providing examples and anti-patterns in Go, Java, and Python.

Core Features & Use Cases

  • TDD Workflow: Guides users through the TDD process: RED (Write a failing test), GREEN (Minimal code to pass the test), and REFRACTOR (Clean up code).
  • Language Examples: Offers complete TDD walk-throughs in Go, Java, and Python, including table-driven tests, error handling, and mocking.
  • Testing Anti-Patterns: Provides a list of common testing mistakes and how to avoid them.

Quick Start

Use the tdd skill to learn how to implement TDD in your projects with examples in different programming languages.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement test-driven development workflows in Python and Go?

To implement test-driven development, follow the RED, GREEN, and REFACTOR cycle: write a failing test first, add minimal code to pass it, then clean up. This workflow is demonstrated with complete examples in Go, Java, and Python.

What are common testing anti-patterns and how do I avoid them in Java?

Common testing anti-patterns are development mistakes that make tests fragile or ineffective. This Skill provides a curated list of these anti-patterns and guidance on avoiding them, specifically covering Java along with Go and Python.

How do I write table-driven tests for TDD?

Table-driven tests organize test inputs and expected outputs into a structured format to validate multiple scenarios efficiently. This Skill demonstrates how to write them as part of the Test-Driven Development workflow across Go, Java, and Python.

Does this TDD workflow include examples for error handling and mocking?

Yes, the Test-Driven Development workflow includes complete walk-throughs covering error handling and mocking. These examples are provided for Go, Java, and Python to help you manage dependencies and edge cases in your tests.

When should I use test-driven development for my software engineering project?

Use test-driven development when you need to ensure code reliability and minimize bugs by defining behavior through tests before implementation. It is particularly effective when you can write focused, minimal code to pass failing tests and then safely refactor.