tdd-workflow

Implements a Red-Green-Refactor-Validate cycle for testable code development.

Updated Dec 16, 2019
One-click install
npx skills add https://github.com/Dev-Int/tests --skill tdd-workflow-dev-int
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/Dev-Int/tests/tree/main/.claude/skills/tdd-workflow
Command: npx skills add https://github.com/Dev-Int/tests --skill tdd-workflow-dev-int

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces quality standards and eliminates guesswork by providing a mandatory Red-Green-Refactor-Validate cycle.

Core Features & Use Cases

  • Structured Development: Automatically follow proven TDD patterns for all business logic.
  • Quality Assurance: Integrate automated code quality checks into every development cycle.
  • Use Case: When implementing any new feature or fixing bugs, this Skill ensures you write tests first and maintain code quality automatically.

Quick Start

Follow the TDD workflow to create a new use case for renaming articles, starting with a failing test.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I implement test-driven development in my workflow?

Test-driven development follows a Red-Green-Refactor-Validate cycle: write a failing test first, implement minimal code to pass it, refactor for quality, then validate via automated checks. This Skill enforces that cycle for all business logic and use cases, eliminating guesswork and ensuring consistent code quality across feature development and bug fixes.

What's the best way to ensure code quality during feature development?

Integrate automated quality checks into every development cycle using structured TDD patterns. This Skill applies the Red-Green-Refactor-Validate workflow to feature implementation and refactoring, running final validation through make qa to catch issues before code reaches production.

Can I use TDD for bug fixes and refactoring, or just new features?

TDD applies across all testable code: new features, bug fixes, and refactoring. This Skill governs the entire development lifecycle for business logic and domain code, ensuring every change—whether fixing a defect or improving structure—follows the same proven quality standards.

How do I start a new use case with test-driven development?

Begin by writing a failing test that describes the desired behavior, then implement minimal code to pass it. Follow the Red-Green-Refactor-Validate cycle, writing tests before logic. This Skill automates that workflow for use case development, with final validation through make qa ensuring quality.

What happens if I don't follow the TDD workflow?

Skipping TDD introduces quality risks and guesswork into development. This Skill enforces the mandatory Red-Green-Refactor-Validate cycle to prevent unmaintainable code, ensure consistent patterns across the codebase, and catch defects early through automated checks rather than discovering them later.

Does TDD work for all types of code in my project?

TDD is most effective for testable code: business logic, use cases, and domain code. This Skill focuses on those areas rather than infrastructure or configuration, ensuring the workflow applies where it adds the most value and quality impact.