af-follow-tdd-cycle

Guide feature implementation through the TDD Red-Green-Refactor cycle.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/GainInsightDev/websites --skill af-follow-tdd-cycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: af-follow-tdd-cycle
Source: https://github.com/GainInsightDev/websites/tree/main/.claude/skills/af-follow-tdd-cycle
Command: npx skills add https://github.com/GainInsightDev/websites --skill af-follow-tdd-cycle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides users through the Test-Driven Development (TDD) Red-Green-Refactor cycle, ensuring features are built with a robust testing foundation from the start.

Core Features & Use Cases

  • Enforces TDD: Promotes writing failing tests before writing implementation code.
  • Guides Refactoring: Encourages cleaning up code after tests pass.
  • Use Case: When developing a new user authentication module, use this Skill to ensure you write tests for login, logout, and password reset scenarios before writing the actual authentication logic.

Quick Start

Follow the TDD Red-Green-Refactor cycle for the current feature implementation.

Frequently Asked Questions about af-follow-tdd-cycle

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

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

The test-driven development cycle requires writing a failing test, implementing the minimum code to pass it, and then refactoring. This ensures features are built with a robust testing foundation from the start.

How do I implement features test-first during code development?

To implement features test-first, write failing tests for your scenarios before writing the implementation logic. Once the tests pass, refactor the code to improve quality while maintaining the passing tests.

Can I use the Red-Green-Refactor workflow for code reviews?

Yes, the Red-Green-Refactor workflow can be applied during code reviews to verify that a test-first methodology was followed, ensuring failing tests were written prior to implementation code.

What is the best way to enforce test-first methodology in feature development?

The best way to enforce test-first methodology is to strictly adhere to the Test-Driven Development cycle, guiding development to satisfy the requirement of writing failing tests prior to code.

When should I refactor code during test-driven development?

You should refactor code during the final phase of the test-driven development cycle, immediately after your tests pass. This encourages cleaning up code while ensuring the existing tests remain green.