tdd-workflow

Guides teams through Red-Green-Refactor cycles for Test-Driven Development across DDD-aligned architecture layers.

Updated Nov 15, 2025
One-click install
npx skills add https://github.com/posiposi/dragons-counter --skill tdd-workflow-posiposi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/posiposi/dragons-counter/tree/main/.claude/skills/tdd-workflow
Command: npx skills add https://github.com/posiposi/dragons-counter --skill tdd-workflow-posiposi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill defines a structured TDD workflow, describing Red-Green-Refactor cycles, test-writing guidelines, and how to integrate testing across DDD layers.

Core Features & Use Cases

  • TDD Cycle Guidance: step-by-step Red-Green-Refactor process for software projects.
  • Layered Testing Strategy: guidance on unit, integration, and acceptance tests across domain, use-case, controller, and adapter layers.
  • DDD Integration: alignment of tests with domain boundaries and architecture patterns for maintainable code.

Quick Start

Use the tdd-workflow skill to structure tests for a domain model following Red-Green-Refactor while aligning tests with DDD boundaries.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I structure TDD Red-Green-Refactor cycles for a domain model?▼

To structure TDD Red-Green-Refactor cycles, you write a failing test for the domain model, implement the minimum code to pass it, and refactor while maintaining alignment with DDD architectural boundaries.

How do I align unit and integration testing with DDD architecture layers?▼

Align unit and integration testing with DDD layers by targeting tests specifically across domain, use-case, controller, and adapter boundaries to maintain structural integrity and enforce architectural patterns.

What is the best way to organize acceptance testing across domain boundaries?▼

The best way to organize acceptance testing across domain boundaries is to map tests directly to DDD-aligned architecture patterns, verifying behavior at the use-case and adapter layers without coupling to internal domain logic.

Does test-driven development work with layered architectures like DDD?▼

Test-driven development works effectively with layered DDD architectures by enforcing that tests respect domain boundaries, allowing independent verification of use-case, controller, and adapter components throughout the development cycle.

Why does my unit testing strategy break down in complex domain architectures?▼

Your unit testing strategy likely breaks down because tests are crossing domain boundaries, which this TDD workflow prevents by enforcing strict layer-specific test guidelines across domain, use-case, controller, and adapter layers.