What problem does it solve? Writing and maintaining Ruby tests requires deep knowledge of RSpec conventions, mocking strategies, and flaky-test guardrails. This Skill guides an AI agent through a structured five-phase workflow to produce correct, idiomatic RSpec test code and diagnose failures. ## Core Features & Use Cases - Test Generation: Produces unit, request, and model specs using RSpec, factory_bot, VCR, and shoulda-matchers with a defined output structure. - Failure Diagnosis: Provides debugging steps for failing or flaky tests, including seed reproduction, --only-failures reruns, and DatabaseCleaner isolation. - Coverage & CI Setup: Configures SimpleCov coverage gates and GitHub Actions workflows for automated test runs. - Use Case: Ask the agent to write request specs for a Rails Users API endpoint, and it will analyze the code, select a mocking strategy, and output runnable specs with run commands. ## Quick Start Ask the agent to write RSpec tests for a specific Ruby class or Rails endpoint in your project.