moai-workflow-tdd

Implement the RED-GREEN-REFACTOR cycle for test-driven software development.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/CJ-1981/excel-processor --skill moai-workflow-tdd-cj-1981
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-workflow-tdd
Source: https://github.com/CJ-1981/excel-processor/tree/main/.claude/skills/moai-workflow-tdd
Command: npx skills add https://github.com/CJ-1981/excel-processor --skill moai-workflow-tdd-cj-1981

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, ruff, npm, npx, node, jest, vitest, go, cargo, mix, uv, bundle, php, phpunit, and includes references (resource) components.

What problem does it solve?

This Skill automates the Test-Driven Development (TDD) workflow, ensuring software is built with a robust test suite from the ground up.

Core Features & Use Cases

  • Enforces Test-First Development: Guides users through the RED-GREEN-REFACTOR cycle for new features.
  • Behavior-Driven Implementation: Uses tests as specifications to drive code creation.
  • Use Case: When developing a new user authentication module, this Skill ensures that tests for registration, login, and logout are written and passed before any functional code is implemented.

Quick Start

Initiate the TDD cycle by writing a failing test for the new functionality you intend to build.

Frequently Asked Questions about moai-workflow-tdd

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

FAQPage Schema
How do I implement test-driven development for a new software feature?

Test-driven development (TDD) implements new features by writing a failing test first, then creating the minimum code to pass it. This Skill automates the TDD workflow by guiding you through the RED-GREEN-REFACTOR cycle to ensure robust software.

Can I use this TDD workflow with pytest and jest?

Yes, this TDD workflow supports multiple testing frameworks including pytest for Python and jest for JavaScript. It integrates bash commands to run tests across various development environments like node, go, and cargo.

What is the RED-GREEN-REFACTOR cycle in software development?

The RED-GREEN-REFACTOR cycle is a test-driven development technique where you write a failing test (RED), implement code to make it pass (GREEN), and then improve the code without changing its behavior (REFACTOR). This Skill enforces this cycle.

How do I build an isolated module using behavior-driven implementation?

Behavior-driven implementation uses tests as specifications to drive code creation for isolated modules. This Skill facilitates the process by prioritizing test writing before any functional code is developed.

Does this test-first development approach work with Go and Rust?

Yes, this test-first development approach supports Go and Rust environments through integrated bash commands. It works with dependencies like go and cargo to facilitate the RED-GREEN-REFACTOR cycle.

Why write failing tests before functional code in test-driven development?

Writing failing tests before functional code in test-driven development ensures software is built with a robust test suite from the ground up. It uses tests as specifications to drive behavior-driven implementation of new features.