tdd

Orchestrate the red-green-refactor TDD cycle with framework detection.

3|1|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/nashgao/mqtt-client --skill tdd-nashgao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/nashgao/mqtt-client/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/nashgao/mqtt-client --skill tdd-nashgao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the Test-Driven Development (TDD) workflow, guiding you through the red-green-refactor cycle to build robust and well-tested software efficiently.

Core Features & Use Cases

  • Automated Workflow: Guides you through specification, red, green, and refactor phases.
  • Environment Detection: Automatically detects your project's testing framework (Jest, pytest, PHPUnit, etc.).
  • Mode Detection: Differentiates between TDD for new code and retrofitting existing code.
  • Use Case: When starting a new feature, you can describe it to the TDD skill, and it will help you write the initial failing tests, implement the minimal code to pass them, and then refactor for quality, ensuring a solid foundation.

Quick Start

Use the tdd skill to develop a new user authentication service.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I automate the red-green-refactor cycle for test-driven development?

Automating the TDD red-green-refactor cycle involves orchestrating specification, failing tests, minimal implementation, and refactoring phases with user feedback gates to ensure robust software development.

Can I use TDD automation with my existing pytest and Jest test frameworks?

Yes, TDD automation automatically detects and supports various testing tools including Jest, Vitest, pytest, Go test, PHPUnit, RSpec, and cargo test within your existing project environment.

Does test-driven development automation work for retrofitting existing code?

Yes, the TDD automation process differentiates between new code development and retrofitting existing code, managing specification and implementation phases specifically for your current codebase.

What is the best way to start TDD for a new user authentication service?

To start TDD for a new feature, describe it to the automation tool, which then helps you write initial failing tests, implement minimal passing code, and refactor for quality.

Why should I use automated TDD workflows instead of manual test-driven development?

Automated TDD workflows provide structured phase management, environment detection, and refactoring guidance, ensuring a solid software foundation while reducing skipped steps common in manual test-driven development.