tdd-companion

Enforce the Red-Green-Refactor cycle with a test-first approach.

32|7|Updated Dec 6, 2025
One-click install
npx skills add https://github.com/camoa/claude-skills --skill tdd-companion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-companion
Source: https://github.com/camoa/claude-skills/tree/main/drupal-dev-framework/skills/tdd-companion
Command: npx skills add https://github.com/camoa/claude-skills --skill tdd-companion

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures adherence to Test-Driven Development (TDD) principles, preventing the writing of implementation code before corresponding tests are created and validated.

Core Features & Use Cases

  • Enforces Test-First: Prompts users to write failing tests before any implementation code.
  • Validates Red-Green-Refactor Cycle: Guides the user through each phase of TDD.
  • Integrates with Testing Superpowers: Defers complex testing scenarios to specialized skills.
  • Use Case: When starting a new feature, this Skill will stop you and ask, "Have you written the failing test first?" ensuring a test-driven approach.

Quick Start

Use the tdd-companion skill to enforce the test-first rule before writing any implementation code.

Frequently Asked Questions about tdd-companion

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

FAQPage Schema
How do I enforce a test-first approach during software development?

To enforce a test-first approach, this methodology mandates writing failing tests before any implementation code, actively prompting you to validate the test phase before proceeding to write features.

What is the Red-Green-Refactor cycle in test-driven development?

The Red-Green-Refactor cycle in test-driven development is a three-phase process: writing a failing test, writing minimal code to pass it, and then refactoring the implementation while maintaining code quality.

How do I integrate specialized testing scenarios into my TDD workflow?

To integrate specialized testing scenarios into your TDD workflow, this approach defers complex testing conditions to specialized testing skills, ensuring standard development workflow cycles remain focused on foundational test validation.

Does test-driven development help with code quality and refactoring?

Test-driven development improves code quality and refactoring by validating each phase of the Red-Green-Refactor cycle, ensuring structural changes are safely governed by previously established test coverage.

Can I use this to prevent writing implementation code before tests are created?

Yes, you can prevent writing implementation code before tests are created because the system stops you and asks if you have written the failing test first, actively blocking early implementation attempts.