tdd-workflow

Automate red-green-refactor cycles and translate Gherkin scenarios into executable tests.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/jorgeochipinti97/dublin-skills --skill tdd-workflow-jorgeochipinti97
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/jorgeochipinti97/dublin-skills/tree/main/skills/implementation/tdd-workflow
Command: npx skills add https://github.com/jorgeochipinti97/dublin-skills --skill tdd-workflow-jorgeochipinti97

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates the practice of test-driven development by defining a clear red-green-refactor cycle to guide teams as they translate user needs into tests before implementing functionality.

Core Features & Use Cases

  • Red-Green-Refactor rules and structured cycles that keep changes safe and testable.
  • From User Story to Tests: convert Given/When/Then scenarios into executable test cases using AAA.
  • Test doubles, test pyramids, and layered testing strategies to balance speed and coverage.
  • Clear guidelines for anti-patterns and refactor discipline to maintain test integrity.

Quick Start

Load references/examples.md for complete Gherkin → test code examples and patterns.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I translate Gherkin Given/When/Then scenarios into executable test cases?▼

You can translate Gherkin Given/When/Then scenarios into executable test cases by mapping them into the AAA (Arrange-Act-Assert) pattern. This Skill automates that conversion to ensure structured, test-first development.

What is the red-green-refactor cycle in test-driven development?▼

The red-green-refactor cycle is a structured TDD workflow where you write a failing test, implement code to make it pass, and then safely refactor. This Skill automates enforcing these rules to keep changes testable.

How do I balance unit, integration, and acceptance tests using a test pyramid?▼

You can balance test coverage and speed by applying layered testing strategies based on the test pyramid. This Skill provides guidance on structuring unit, integration, and acceptance tests while utilizing test doubles effectively.

Can I use this TDD workflow for refactoring existing features safely?▼

Yes, this TDD workflow applies to refactoring existing features by enforcing structured red-green-refactor cycles. It maintains test integrity and provides clear guidelines to prevent anti-patterns during code changes.

How do I avoid TDD anti-patterns when writing unit and integration tests?▼

You can avoid TDD anti-patterns by following clear guidelines for refactor discipline and structured patterns like AAA. This Skill enforces test integrity rules to prevent common testing pitfalls across your software projects.