arc-tdd

Enforce a strict red-green-refactor cycle for new features and bug fixes.

6|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/GregoryHo/arcforge --skill arc-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arc-tdd
Source: https://github.com/GregoryHo/arcforge/tree/main/skills/arc-tdd
Command: npx skills add https://github.com/GregoryHo/arcforge --skill arc-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces Test-Driven Development (TDD) to ensure code is robust, well-tested, and meets requirements before implementation, preventing bugs and regressions.

Core Features & Use Cases

  • Enforces Red-Green-Refactor Cycle: Guides the user through writing a failing test, minimal code to pass, and then refactoring.
  • Prevents Common Pitfalls: Addresses rationalizations for skipping TDD and highlights anti-patterns in testing.
  • Use Case: When developing a new feature, use this Skill to write a test that defines the expected behavior, watch it fail, write the simplest code to make it pass, and then clean up the code while keeping tests green.

Quick Start

Use the arc-tdd skill to write a failing test for the new feature.

Frequently Asked Questions about arc-tdd

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

FAQPage Schema
How do I implement test-driven development for new features and bug fixes?

To implement test-driven development, enforce a strict red-green-refactor cycle by writing a failing test first, writing minimal code to pass, and refactoring afterward to ensure code quality and prevent regressions.

What is the red-green-refactor cycle in TDD?

The red-green-refactor cycle in TDD is a development workflow where you write a failing test, write the minimal code required to make that test pass, and then clean up the implementation without breaking functionality.

How do I avoid common testing anti-patterns when writing tests first?

To avoid common testing anti-patterns when writing tests first, follow strict TDD principles that prevent rationalizations for skipping tests and guide you away from pitfalls that cause code regressions and quality degradation.

Can I use test-driven development for both new features and bug fixing?

Yes, you can use test-driven development for both new features and bug fixing by enforcing the red-green-refactor cycle across all development workflows to prevent regressions and ensure code meets requirements before implementation.

Why should I write failing tests before implementation code?

You should write failing tests before implementation code because it defines expected behavior upfront, ensures code is robust, meets requirements, and prevents bugs and regressions throughout the development workflow.