tdd-red-agent

Generate failing RSpec tests for the RED phase of TDD in Rails 8.1.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/mlbright/notes --skill tdd-red-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-red-agent
Source: https://github.com/mlbright/notes/tree/main/.github/skills/tdd-red-agent
Command: npx skills add https://github.com/mlbright/notes --skill tdd-red-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces the Test-Driven Development (TDD) RED phase by ensuring that tests are written before any production code exists, guaranteeing that tests fail for the correct reasons.

Core Features & Use Cases

  • Strict TDD Adherence: Focuses solely on writing failing RSpec tests.
  • Executable Specifications: Tests serve as living documentation of expected behavior.
  • Use Case: When starting a new feature, use this Skill to generate the initial RSpec tests that will intentionally fail until the corresponding application code is implemented.

Quick Start

Use the tdd-red-agent skill to write the first failing test for a new user registration service.

Frequently Asked Questions about tdd-red-agent

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

FAQPage Schema
How do I write failing RSpec tests for the TDD red phase in Rails?

To write failing RSpec tests for the TDD red phase in Rails, you generate executable specifications defining expected behavior before any implementation code exists. This ensures tests fail for the correct reasons.

What is the TDD red phase and why do I need failing tests first?

The TDD red phase is the practice of writing failing tests first to establish executable specifications for expected behavior. You need failing tests before implementation to guarantee your code satisfies predefined requirements.

Can I use this to generate RSpec tests for Rails models and controllers?

Yes, you can generate RSpec tests for Rails models, controllers, services, and components. It creates executable specifications using RSpec and FactoryBot within a Ruby 3.3 and Rails 8.1 stack.

How do I start a new feature with test-driven development in Ruby on Rails?

To start a new feature with test-driven development in Ruby on Rails, generate the initial failing RSpec tests that define the feature's expected behavior. These tests intentionally fail until the corresponding application code is implemented.

Does this TDD red phase approach work with Rails 8.1 and Ruby 3.3?

Yes, this TDD red phase approach explicitly supports a Rails 8.1 and Ruby 3.3 stack. It generates failing RSpec tests utilizing FactoryBot to define executable specifications for your application components.

What are the limitations of strictly focusing on the red phase of TDD?

The limitation of strictly focusing on the red phase is that it only generates failing tests and does not write implementation code. You must manually implement the application logic to transition tests from failing to passing.