What problem does it solve?
This Skill helps you quickly create correct failing (RED phase) Minitest tests before any implementation exists, so you can drive development with clear expectations instead of guessing.
Core Features & Use Cases
- RED-first test templates by component type: Covers new model, service, controller, view component, and policy tests with appropriate structure.
- Expected failure guidance: Includes the typical error message you should see when the target code (class/route/component/policy) does not exist yet.
- Fixture setup for RED tests: Provides example fixture data to support failing tests that depend on associated records.
- Run commands and selection tips: Shows how to run a single file, target a specific test by name, or run an entire directory to verify failures.
Quick Start
Use the red-test-patterns skill to draft the first failing RED test for your new Rails component, including the matching fixtures and the command to run it to confirm it fails for the right reason.