tdd-workflow

Guide the RED-GREEN-REFACTOR cycle with Arrange-Act-Assert tests.

1|Updated May 29, 2026
One-click install
npx skills add https://github.com/nnkienn/Nyxara-core --skill tdd-workflow-nnkienn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/nnkienn/Nyxara-core/tree/main/.skills/skills/tdd-workflow
Command: npx skills add https://github.com/nnkienn/Nyxara-core --skill tdd-workflow-nnkienn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides guidance on Test-Driven Development (TDD) workflow, helping developers write code with a clear understanding of its behavior through the RED-GREEN-REFACTOR cycle.

Core Features & Use Cases

  • RED-GREEN-REFACTOR Cycle: Follows the TDD workflow to create reliable and testable code.
  • Principles of TDD: Outlines the three laws of TDD and principles of each phase.
  • AAA Pattern: Ensures that tests are clear and concise by using Arrange, Act, Assert structure.
  • Use Case: Ideal for developers who want to implement a structured and efficient TDD approach in their projects.

Quick Start

Apply the tdd-workflow skill by writing tests first and then writing code that passes these tests.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
What is the RED-GREEN-REFACTOR cycle in test-driven development?

The RED-GREEN-REFACTOR cycle is the core test-driven development workflow: write a failing test, write code to pass it, then refactor. This Skill outlines the principles and practices for each phase to create reliable, testable code.

How do I structure tests using the Arrange-Act-Assert pattern in TDD?

The Arrange-Act-Assert (AAA) pattern structures tests by setting up data, executing the action, and verifying results. This Skill guides you to write clear, concise tests following the AAA structure within the TDD workflow.

What are the three laws of test-driven development?

The three laws of TDD govern how you write code and tests sequentially to maintain workflow discipline. This Skill outlines these principles to help you implement a structured and efficient test-driven development approach in your projects.

How do I start writing code with a test-driven development workflow?

To start test-driven development, write a failing test first, then write the minimum code to pass it, and finally refactor. This Skill provides step-by-step guidance on applying the RED-GREEN-REFACTOR cycle for reliable code.

When should I use test-driven development for my project?

Use test-driven development when you need reliable, testable code with clear behavior. This Skill is ideal for developers who want to implement a structured TDD approach using the RED-GREEN-REFACTOR cycle and AAA pattern.