red-phase

Community

Write failing tests first, define behavior.

Authorfoolishimp
Version1.0.0
Installs0

System Documentation

What problem does it solve?

In Test-Driven Development (TDD), the crucial first step is to write tests that fail because the desired functionality doesn't exist yet, ensuring tests truly validate new behavior.

Core Features & Use Cases

  • Failing Test Generation: Creates test files and functions that explicitly fail, serving as executable specifications for new features.
  • Requirement-Driven Testing: Designs test cases directly from REQ-* requirements and BR-* business rules, ensuring comprehensive coverage.
  • TDD Workflow Integration: The foundational "RED" step in the RED → GREEN → REFACTOR cycle, setting the stage for implementation.
  • Use Case: To begin implementing a "User Login" feature (REQ-ID 'UserLogin'), invoke this skill to generate tests for valid credentials, invalid email, and account lockout, which will fail until the login logic is written.

Quick Start

Generate failing Python tests for REQ-ID 'UserLogin' in 'tests/auth/test_login.py', covering email validation (BR-001) and password length (BR-002).

Dependency Matrix

Required Modules

pytest

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: red-phase
Download link: https://github.com/foolishimp/ai_sdlc_method/archive/main.zip#red-phase

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.