Curated library of AI agent skills for Ruby on Rails development. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and workflow automation.
98
99%
Does it follow best practices?
Impact
98%
1.38xAverage score across 26 eval scenarios
Passed
No known issues
An online fitness platform is launching a class booking feature. Users can reserve spots in group fitness sessions through the platform's API. The backend team has built the feature but left the test coverage incomplete.
Two distinct behaviors need to be covered:
Endpoint behavior: A POST /bookings endpoint that accepts a class ID and quantity, delegates to a Bookings::CreateService, and returns appropriate HTTP responses. The endpoint should be covered for at least three scenarios: a successful booking, a booking that fails because the class is full, and an attempt to book a class the user has already reserved.
Model domain rule: The Booking model enforces a uniqueness constraint — a user cannot hold more than one active booking for the same fitness class. This uniqueness validation lives on the model and must be confirmed by a test.
Your task is to write the spec coverage for both behaviors. The endpoint behavior and the model domain rule each represent a different kind of concern — consider the most appropriate spec type for each.
Produce spec files with realistic content:
POST /bookings endpoint behaviorBooking model's uniqueness validationUse create and build factory helper calls where needed (actual factory definitions are not required — add a # TODO: define factory :booking comment at the top of any spec that would need one). Do not create a full Rails app — just the spec files with proper structure, realistic examples, and the correct file paths.
api-rest-collection
create-prd
ddd-boundaries-review
ddd-rails-modeling
ddd-ubiquitous-language
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20
scenario-21
scenario-22
scenario-23
scenario-24
scenario-25
scenario-26
generate-tasks
mcp_server
rails-architecture-review
rails-background-jobs
rails-bug-triage
rails-code-conventions
rails-code-review
rails-engine-compatibility
rails-engine-docs
rails-engine-extraction
rails-engine-installers
rails-engine-release
rails-engine-reviewer
rails-engine-testing
rails-graphql-best-practices
rails-migration-safety
rails-review-response
rails-security-review
rails-skills-orchestrator
rails-stack-conventions
rails-tdd-slices
refactor-safely
rspec-best-practices
rspec-service-testing
ruby-service-objects
strategy-factory-null-calculator
ticket-planning
yard-documentation