One-click install
npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill tdd-workflow-gabriellpequeno
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo/tree/main/.cursor/skills/tdd-workflow
Command: npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill tdd-workflow-gabriellpequeno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates and enforces the test-first mindset by guiding developers through a RED-GREEN-REFACTOR cycle, reducing regression risk and missed tests.

Core Features & Use Cases

  • Enforces RED-GREEN-REFACTOR: ensures a failing test precedes production code and promotes safe refactors.
  • Supports new features, bug fixes, and refactors by requiring tests before changes.
  • Provides a lightweight guardrail for teams adopting TDD practices and maintaining regression safety.

Quick Start

Begin by writing a failing test, implement the smallest code to pass, and then refactor without changing behavior while keeping all 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 enforce the RED-GREEN-REFACTOR cycle during test-driven development?

To enforce the RED-GREEN-REFACTOR cycle during test-driven development, this workflow guarantees a failing test precedes production code, requires minimal changes to pass it, and then permits safe refactoring without altering behavior.

What is the best way to apply test-driven development to bug fixes with regression risk?

The best way to apply test-driven development to bug fixes with regression risk is using a workflow that requires writing a failing regression test before implementing the smallest production code change necessary to make it pass.

When do I need a test-first approach for software engineering tasks?

You need a test-first approach for new feature development, refactoring tasks requiring test coverage, and bug fixes with regression risk to reduce missed tests and ensure a failing test always exists before production code changes.

How to start coding with a TDD workflow for new feature development?

To start coding with a TDD workflow for new feature development, begin by writing a failing test, implement the smallest code snippet required to pass that test, and then refactor the code while keeping all tests green.

Does this TDD workflow support refactoring tasks that require test coverage?

Yes, this TDD workflow supports refactoring tasks by enforcing test coverage first, ensuring you write tests before changes and allowing safe refactoring only after achieving a green test state without changing behavior.

Why does test-driven development impose minimal production changes until tests pass?

Test-driven development imposes minimal production changes until tests pass to strictly enforce the RED-GREEN-REFACTOR cycle, preventing over-engineering and reducing regression risk by ensuring code strictly meets test requirements.