tdd

Plan and execute red-green-refactor cycles for test-driven development workflows.

1.8k|370|Updated Mar 13, 2021
One-click install
npx skills add https://github.com/towardsthecloud/cloudburn --skill tdd-towardsthecloud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/towardsthecloud/cloudburn/tree/main/.agents/skills/tdd
Command: npx skills add https://github.com/towardsthecloud/cloudburn --skill tdd-towardsthecloud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-driven development can be challenging to plan and execute consistently; this Skill provides a structured approach to applying red-green-refactor loops, ensuring teams keep behavior-first tests and avoid brittle tests.

Core Features & Use Cases

  • Workflow planning and tracer bullets for end-to-end TDD cycles.
  • Guidance for refactoring and testability with public interfaces.
  • Best practices to avoid mock overuse and integration pitfalls.

Quick Start

Begin a new feature by outlining a red-green-refactor cycle and follow the tracer-bullet workflow described in this Skill.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I apply a red-green-refactor loop for feature development?

A red-green-refactor loop for feature development is applied by first writing a failing behavior-first test, implementing minimum code to pass, and then incrementally refactoring. This Skill provides structured workflow planning to streamline the entire cycle.

What is the best way to plan test-driven development cycles for new features?

The best way to plan test-driven development cycles is using a tracer-bullet workflow to establish end-to-end integration tests early. This Skill guides structured cycles to ensure behavior-first tests and avoid brittle test suites.

How do I avoid mock overuse and integration pitfalls in TDD?

To avoid mock overuse and integration pitfalls in TDD, design for testability using public interfaces and apply best practices for incremental refactoring. This Skill provides structured guidance to balance integration tests and mockability.

Does test-driven development work for bug-fixing tasks?

Yes, test-driven development works effectively for bug-fixing tasks by applying the red-green-refactor loop to reproduce the defect first. This Skill streamlines the process, ensuring bug fixes are backed by behavior-first integration tests.

When should I use tracer bullets in software engineering workflows?

You should use tracer bullets in software engineering workflows to validate end-to-end integration paths early in a feature cycle. This Skill leverages tracer-bullet driven cycles to structure your TDD process and ensure robust, testable code.