tdd-workflow

Guide developers through RED-GREEN-REFACTOR cycles for feature implementation.

2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/arpa73/AIKnowSys --skill tdd-workflow-arpa73
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/arpa73/AIKnowSys/tree/main/.github/skills.backup/tdd-workflow
Command: npx skills add https://github.com/arpa73/AIKnowSys --skill tdd-workflow-arpa73

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enforces Test-Driven Development practices by requiring tests to be written before implementation, preventing regressions and guiding feature work.

Core Features & Use Cases

  • Enforces RED-GREEN-REFACTOR cycle for new features, API endpoints, or UI components.
  • Provides a structured process with steps for RED, GREEN, and REFACTOR, including example commands and test scaffolding.
  • Use Case: When adding a feature, you write a failing test first, then implement minimal code to pass, and finally refactor while keeping tests green.

Quick Start

Read the skill to begin. Create a new test file for your feature, run the test suite to trigger RED, implement minimal code to pass, and refactor while keeping tests green.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I implement Test-Driven Development for new API endpoints and UI components?

Test-Driven Development for API endpoints and UI components requires writing a failing test first, implementing minimal code to pass, and then refactoring while keeping tests green. This structured RED-GREEN-REFACTOR cycle prevents regressions and guides feature work.

What is the RED-GREEN-REFACTOR cycle and how does it enforce test-first discipline?

The RED-GREEN-REFACTOR cycle is a test-first discipline where you create a failing test, write minimal implementation code to pass it, and refactor safely. It enforces quality assurance by preventing code changes without corresponding test coverage.

Can I integrate test-first workflows with existing git hooks and validation processes?

Yes, test-first workflows integrate with existing git hooks and validation processes. The structured RED-GREEN-REFACTOR steps include example commands and test scaffolding that connect directly into your current software engineering validation pipeline.

How do I start a TDD workflow when adding a new software feature?

To start TDD for a new feature, create a new test file, run the test suite to trigger the RED state, implement minimal code to achieve GREEN, and finally refactor while ensuring all tests remain green.

Does this TDD workflow support both individual development and team collaboration?

Yes, this TDD workflow supports both individual development and team collaboration. It applies across software projects including services and UI components, ensuring consistent test-first discipline regardless of team size.

When should I not use a strict test-first development approach?

A strict test-first approach may not suit exploratory prototyping where rapid API or UI changes outpace test scaffolding. The RED-GREEN-REFACTOR cycle enforces regression prevention, which can slow down initial experimental software engineering phases.