tdd-workflows-tdd-red

Generate failing tests to define expected behavior in the TDD red phase.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/caobingsheng/skills --skill tdd-workflows-tdd-red
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflows-tdd-red
Source: https://github.com/caobingsheng/skills/tree/main/tdd/tdd-workflows-tdd-red
Command: npx skills add https://github.com/caobingsheng/skills --skill tdd-workflows-tdd-red

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing code starts after clearly defined failing behaviors. This skill automates the creation of failing tests during the TDD red phase to ensure edge cases and constraints are captured upfront.

Core Features & Use Cases

  • Generate comprehensive failing tests that specify expected behavior for new features.
  • Illustrate edge cases and invalid inputs to guide implementation and error handling.
  • Document how to run tests and verify failures in isolated environments.

Quick Start

Run the test-automation task to generate failing tests for a new feature in the red phase.

Frequently Asked Questions about tdd-workflows-tdd-red

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

FAQPage Schema
How do I generate failing tests for the TDD red phase?

To generate failing tests for the TDD red phase, define expected behavior and edge cases upfront before implementation. This approach captures invalid inputs and constraints early, creating deterministic test skeletons that guide subsequent development.

What is the purpose of writing failing tests before implementation?

Writing failing tests before implementation specifies expected behavior for new features and edge cases. This ensures constraints are captured upfront, providing clear targets for your code to satisfy during the development process.

How do I document test automation steps for verifying failing tests?

Document test automation steps for verifying failing tests by outlining how to run tests and verify failures in isolated environments. This ensures deterministic failing tests are validated correctly before moving to implementation.

Does test generation for the red phase work across different test frameworks?

Test generation for the red phase applies across frameworks as appropriate. It requires framework-appropriate test skeletons to define expected behavior, ensuring edge cases and invalid inputs guide implementation regardless of the specific testing framework used.

Can I automate test generation for edge cases and invalid inputs?

You can automate test generation for edge cases and invalid inputs to guide implementation and error handling. This specifies expected behavior for new features by illustrating constraints upfront through deterministic failing tests.