One-click install
npx skills add https://github.com/jellydn/my-ai-tools --skill tdd-jellydn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/jellydn/my-ai-tools/tree/main/skills/tdd
Command: npx skills add https://github.com/jellydn/my-ai-tools --skill tdd-jellydn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers implement test-driven development by guiding the Red-Green-Refactor cycle across software features, improving code quality and design.

Core Features & Use Cases

  • Step-by-step TDD workflow guidance for feature development.
  • Includes a reusable test template to structure Red, Green, and Refactor phases.
  • Applicable to unit tests, integration tests, and iterative refactoring in real projects.

Quick Start

Start a TDD session for a feature by invoking the workflow, write a failing test, run the Green phase, then perform Refactor and repeat for the cycle.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I practice test-driven development using the Red-Green-Refactor cycle?

Test-driven development using the Red-Green-Refactor cycle involves writing a failing unit test, implementing the minimum code to pass it, and then refactoring. This skill guides you step-by-step through each phase to improve code quality and design.

What is the best way to start a TDD workflow for a new software feature?

The best way to start a TDD workflow is to invoke a structured session, write a failing test for the target feature, run the Green phase to implement functionality, and then perform refactoring. This iterative cycle accelerates feature development and learning.

Can I use this TDD workflow for both unit and integration testing?

Yes, this TDD workflow applies to both unit tests and integration tests. It provides reusable templates and best practices to structure your Red, Green, and Refactor phases across iterative testing scenarios in real software projects.

Do I need Node.js and vitest to run test-driven development sessions?

Yes, you need standard tooling like Node.js and a test runner such as vitest to execute and validate tests. The skill requires these dependencies to run the test-driven development workflow and verify your code during the Green phase.

Why does my test-driven development workflow result in poorly designed code?

Skipping the Refactor phase during test-driven development often leads to poorly designed code. This skill enforces the complete Red-Green-Refactor cycle, ensuring you iteratively clean up and improve code structure while maintaining passing tests.

When should I not use the Red-Green-Refactor cycle for software engineering?

The Red-Green-Refactor cycle is less suited for exploratory prototyping where immediate functionality is prioritized over test coverage. It is designed for disciplined test-first development across defined unit and integration testing scenarios.