tcrdd

Guide TDD and TCRDD workflows with Red, Green, and Refactor phases.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/bsene/approvalsTypescript --skill tcrdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tcrdd
Source: https://github.com/bsene/approvalsTypescript/tree/main/.agents/skills/tcrdd
Command: npx skills add https://github.com/bsene/approvalsTypescript --skill tcrdd

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users understand and implement Test-Driven Development (TDD) and Test-Driven Commit || Revert + Test Driven Development (TCRDD), providing a structured approach to writing tests before code.

Core Features & Use Cases

  • TDD Guidelines: Offers a comprehensive guide to the three rules of TDD and four nested cycles.
  • TCRDD Workflow: Explains the three-phase TCRDD workflow and how to use git-gamble commands.
  • Code Examples: Provides TypeScript examples to demonstrate TDD in practice.
  • Review Checklist: Includes a checklist for reviewing code for TDD compliance.
  • Common Mistakes: Addresses common pitfalls in TDD and TCRDD and how to avoid them.

Quick Start

Run the 'tcrdd' skill to access the guide on TDD and TCRDD principles.

Frequently Asked Questions about tcrdd

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

FAQPage Schema
What is TCRDD and how does it differ from standard TDD?

TCRDD (Test-Driven Commit || Revert + Test Driven Development) extends standard TDD by enforcing a strict Red, Green, and Refactor workflow using git-gamble commands to automatically commit passing tests or revert failing code changes.

How do I implement the three phases of Test-Driven Development?

To implement Test-Driven Development, follow the three phases: write a failing test (Red), write the minimum code to pass it (Green), and clean up the code without changing behavior (Refactor). This Skill provides examples and a review checklist for compliance.

What are the common mistakes when doing test-first development?

Common test-first development mistakes include skipping the Refactor phase, writing too much code before testing, and ignoring test failures. This Skill addresses these pitfalls and offers a review checklist to ensure strict TDD compliance.

Can I see code examples for applying TDD in TypeScript?

Yes, this Skill provides TypeScript code examples demonstrating Test-Driven Development in practice, illustrating how to correctly apply the Red, Green, and Refactor cycles within the TCRDD workflow.

When should I use the git-gamble command in the TCRDD workflow?

Use the git-gamble command during the TCRDD workflow to enforce the Commit || Revert mechanism, automatically discarding code changes if tests fail and committing them when tests pass, ensuring continuous test-driven compliance.