tdd-cycle

Automate red-green-refactor TDD cycles with task-file and test-pattern references.

421|52|Updated Sep 4, 2023
One-click install
npx skills add https://github.com/TypedDevs/bashunit --skill tdd-cycle-typeddevs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-cycle
Source: https://github.com/TypedDevs/bashunit/tree/main/.claude/skills/tdd-cycle
Command: npx skills add https://github.com/TypedDevs/bashunit --skill tdd-cycle-typeddevs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run a complete Test-Driven Development loop (Red → Green → Refactor) with structured tasks, eliminating guesswork and accelerating learning.

Core Features & Use Cases

  • Guided RED phase to identify a failing test and establish the initial red condition.
  • GREEN phase to implement the minimal code required to pass the test.
  • REFACTOR phase to improve design while preserving test correctness.
  • Use Case: Start work on a new feature or refactor with a clear, step-by-step TDD workflow that yields green tests and maintainable code.

Quick Start

Begin a new TDD cycle by initiating the skill and selecting your task file, then follow the guided RED → GREEN → REFACTOR steps.

Frequently Asked Questions about tdd-cycle

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

FAQPage Schema
How do I run a guided TDD cycle for unit tests?

A guided TDD cycle automates the red-green-refactor loop by verifying the red phase fails correctly, enforcing minimal green implementation, and tracking progress through logbook updates.

How does the red green refactor workflow enforce minimal implementation?

The red green refactor workflow enforces minimal implementation by verifying the RED phase fails correctly before transitioning to GREEN, ensuring only the minimal code required to pass the test is implemented.

What's the best way to track progress during a TDD workflow?

Track progress during a TDD workflow through logbook updates and phase-specific checks that verify test correctness before advancing to the next stage.

Do I need a task file before starting TDD automation?

Yes, a task file must exist before starting TDD automation, as the workflow ensures a task file is present before beginning the guided red-green-refactor cycle.

When should I use an automated TDD cycle instead of manual testing?

Use an automated TDD cycle when starting new features or refactoring existing code to eliminate guesswork, enforce test correctness, and accelerate learning with structured tasks.