tdd-red-green

Guide JavaScript, Python, and Go development through the TDD RED/GREEN/REFACTOR cycle.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/manastalukdar/claude-devstudio --skill tdd-red-green
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-red-green
Source: https://github.com/manastalukdar/claude-devstudio/tree/main/skills/tdd-red-green
Command: npx skills add https://github.com/manastalukdar/claude-devstudio --skill tdd-red-green

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enforces a strict Test-Driven Development (TDD) workflow, ensuring that tests are written first and fail before implementation, leading to more robust and well-designed code.

Core Features & Use Cases

  • RED/GREEN/REFACTOR Cycle Enforcement: Guides users through each phase of TDD.
  • Test Framework Detection: Automatically detects common test frameworks (Jest, Vitest, Pytest, Go test).
  • TDD Violation Checks: Identifies common anti-patterns to maintain TDD discipline.
  • Use Case: When starting a new feature, use this skill to ensure you write a failing test first, then the minimum code to pass, and finally refactor, all while being guided and checked.

Quick Start

Initiate the TDD Red-Green workflow by running the tdd-red-green skill.

Frequently Asked Questions about tdd-red-green

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

FAQPage Schema
How do I enforce a strict test-driven development workflow in my project?

To enforce test-driven development, you need a workflow that mandates writing failing tests before implementation. This skill guides you through the RED, GREEN, and REFACTOR cycle while checking for common TDD anti-patterns to maintain development discipline.

Does this TDD enforcement tool support Python and Go test frameworks?

Yes, this TDD enforcement tool supports Python and Go test frameworks. It automatically detects common test frameworks like Pytest and Go test, alongside Jest and Vitest for JavaScript, to integrate seamlessly into your development environment.

What is the RED GREEN REFACTOR cycle and how do I follow it?

The RED GREEN REFACTOR cycle is a test-driven development methodology where you first write a failing test, then write the minimum code to pass it, and finally refactor. This skill guides you step-by-step through each phase to improve code quality.

How do I check for TDD anti-patterns and violations during refactoring?

You can check for TDD anti-patterns and violations during refactoring by using automated violation checks. This skill identifies common deviations from the fail-first testing methodology, ensuring your refactoring phase maintains strict TDD discipline and code maintainability.

Can I use this for JavaScript test-driven development with Jest?

Yes, you can use this for JavaScript test-driven development with Jest. The skill features automated test framework detection that identifies Jest and Vitest, ensuring the strict RED and GREEN workflow is enforced across your JavaScript development environment.

Why does my code quality suffer when I write tests after implementation?

Code quality often suffers when writing tests after implementation because it bypasses the fail-first testing methodology. By enforcing the test-driven development cycle beforehand, you ensure more robust, well-designed code through immediate validation and structural discipline.