tdd-implementation

Implement TDD Red-Green-Refactor cycles and database migration testing in a container-use environment.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/takemo101/compose-workflow --skill tdd-implementation-takemo101
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-implementation
Source: https://github.com/takemo101/compose-workflow/tree/main/.opencode/skill/tdd-implementation
Command: npx skills add https://github.com/takemo101/compose-workflow --skill tdd-implementation-takemo101

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the Test-Driven Development (TDD) process by enforcing a Red-Green-Refactor cycle within a containerized environment, ensuring robust and efficient code implementation.

Core Features & Use Cases

  • TDD Cycle Enforcement: Guides users through the Red (failing test), Green (minimal implementation), and Refactor (cleanup and checks) stages.
  • Test Item Utilization: Encourages the use of pre-defined test item documents for comprehensive test case coverage.
  • Database Migration Testing: Includes specific steps for testing database migrations and rollbacks.
  • Use Case: When developing a new feature, follow this Skill's steps to write a failing test, implement the minimum code to pass it, and then refactor, ensuring code quality and test coverage from the start.

Quick Start

Begin the TDD cycle for a new feature by running the initial failing tests within the container-use environment.

Frequently Asked Questions about tdd-implementation

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

FAQPage Schema
How do I implement a test-driven development workflow in a containerized environment?

Test-driven development in a containerized environment is implemented by enforcing the Red-Green-Refactor cycle, starting with failing tests, writing minimal code to pass them, and then refactoring within the container-use setup.

How do I test database migrations and rollbacks using TDD?

Database migration testing within TDD involves executing specific verification steps for both migrations and rollbacks during the Refactor stage to ensure schema changes do not break existing test coverage.

What is the Red-Green-Refactor cycle for writing failing tests?

The Red-Green-Refactor cycle is a TDD process where you write a failing test (Red), implement the minimum viable code to make it pass (Green), and then clean up the implementation (Refactor).

Can I use test item documents to ensure comprehensive test coverage in TDD?

Yes, utilizing pre-defined test item documents during the TDD workflow ensures comprehensive test case coverage by guiding the creation of failing tests before minimal code implementation begins.

Does TDD workflow require pre-defined test items before writing code?

Pre-defined test item documents are highly encouraged to structure the TDD workflow, ensuring efficient code implementation by focusing on failing tests and minimal viable code right from the start.

What is the best way to enforce minimal viable code implementation during refactoring?

The best way to enforce minimal viable code is by following the Red-Green-Refactor TDD cycle, which restricts implementation to only what is necessary to pass failing tests before performing cleanup checks.