ZES-test-driven-development

Enforce the Red-Green-Refactor cycle for feature development and bug fixes.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/ZESCODE/Zes-Orchestration-System --skill zes-test-driven-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ZES-test-driven-development
Source: https://github.com/ZESCODE/Zes-Orchestration-System/tree/main/.agents/skills/ZES-test-driven-development
Command: npx skills add https://github.com/ZESCODE/Zes-Orchestration-System --skill zes-test-driven-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the technical debt and unverified code that results from writing implementation before testing, ensuring every feature is backed by a failing test first.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Provides a strict framework for writing failing tests, minimal implementation, and clean refactoring.
  • Browser-Harness Integration: Supports E2E testing for frontend components and mobile responsiveness.
  • Use Case: When implementing a new API endpoint, use this skill to define the expected behavior in a test file, watch it fail, and then write the minimal code required to pass, ensuring the feature is robust and regression-proof.

Quick Start

Use the ZES-test-driven-development skill to guide the implementation of a new feature by writing a failing test case first.

Frequently Asked Questions about ZES-test-driven-development

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

FAQPage Schema
How do I enforce a strict Test-Driven Development lifecycle for new features?

Test-Driven Development is enforced by adhering to a strict Red-Green-Refactor cycle, requiring you to write a failing test before any implementation. This ensures every new feature is backed by a failing test first, eliminating technical debt.

How does the Red-Green-Refactor cycle work during bug fixes and refactoring?

The Red-Green-Refactor cycle works by first writing a failing test that captures the bug or refactoring goal, then writing minimal implementation code to pass the test, and finally cleaning up the code. This verifies test failures before implementation.

Can I use TDD for both backend API endpoints and frontend component testing?

TDD applies to both backend and frontend environments, including E2E testing for frontend components. You can define expected behavior in a test file for a new API endpoint, watch it fail, and write minimal code to pass.

What is the best way to prevent unverified code when implementing an API endpoint?

The best way to prevent unverified code is to define the expected behavior in a test file first, watch it fail, and then write the minimal code required to pass. This regression-proof approach ensures robust feature development.

Does this TDD approach support browser-harness integration for mobile responsiveness?

Yes, this TDD approach supports browser-harness integration specifically for E2E testing of frontend components and mobile responsiveness. It provides a strict framework to verify test failures before writing the implementation code.

Why write a failing test case first before starting feature implementation?

Writing a failing test case first is required to eliminate the technical debt and unverified code that results from writing implementation before testing. It ensures production code quality and reliability by verifying failures before implementation.