skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
pproenca/dot-skills283 installs

rails-testing

Ruby on Rails testing best practices for writing effective, maintainable test suites with RSpec. This skill should be used when writing, reviewing, or refactoring Rails tests to ensure proper test design, data management, and coverage patterns. Triggers on tasks involving RSpec specs, model tests, request specs, system tests, factory definitions, Capybara interactions, Sidekiq job tests, or test suite optimization. Complementary to rails-dev, ruby-optimise, and ruby-refactor skills.

How do I install this agent skill?

npx skills add https://github.com/pproenca/dot-skills --skill rails-testing
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill is a comprehensive collection of best practices and reference guides for Ruby on Rails testing, specifically focused on RSpec, FactoryBot, and Capybara. It contains no executable code or security risks.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerwarn

    10/50 files flagged

What does this agent skill do?

Community Ruby on Rails Testing Best Practices

Comprehensive testing guide for Ruby on Rails applications, maintained by Community. Contains 46 rules across 8 categories, prioritized by impact to guide automated test generation, review, and refactoring.

When to Apply

Reference these guidelines when:

  • Writing new RSpec specs for models, requests, system tests, or jobs
  • Setting up FactoryBot factories with traits and sequences
  • Writing Capybara system tests for user journeys
  • Testing background jobs with Sidekiq or Active Job
  • Reviewing test code for anti-patterns (mystery guests, flaky tests, slow specs)
  • Optimizing test suite performance and CI pipeline speed
  • Organizing test files, shared examples, and custom matchers

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Test Design & StructureCRITICALdesign-
2Test Data ManagementCRITICALdata-
3Model TestingHIGHmodel-
4Request & Controller TestingHIGHrequest-
5System & Acceptance TestingMEDIUM-HIGHsystem-
6Async & Background Job TestingMEDIUMasync-
7Test Performance & ReliabilityMEDIUMperf-
8Test Organization & MaintenanceLOW-MEDIUMorg-

Quick Reference

1. Test Design & Structure (CRITICAL)

2. Test Data Management (CRITICAL)

3. Model Testing (HIGH)

4. Request & Controller Testing (HIGH)

5. System & Acceptance Testing (MEDIUM-HIGH)

6. Async & Background Job Testing (MEDIUM)

7. Test Performance & Reliability (MEDIUM)

8. Test Organization & Maintenance (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/pproenca/dot-skills/rails-testing">View rails-testing on skillZs</a>