ruby-on-rails

Enforce Ruby on Rails best practices for ActiveRecord, controllers, and Sidekiq jobs.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/mefardales/skillbox --skill ruby-on-rails-mefardales
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruby-on-rails
Source: https://github.com/mefardales/skillbox/tree/main/skills/backend/ruby-on-rails
Command: npx skills add https://github.com/mefardales/skillbox --skill ruby-on-rails-mefardales

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to building robust, maintainable, and scalable Ruby on Rails applications by enforcing best practices and architectural patterns.

Core Features & Use Cases

  • Architectural Guidance: Learn to structure Rails applications effectively with service objects, form objects, and query objects.
  • ActiveRecord Optimization: Master scopes, associations, and efficient data handling.
  • Testing & Security: Implement thorough testing strategies with RSpec and secure your application with Pundit and Devise.
  • Use Case: When starting a new Rails project or refactoring an existing one, consult this Skill to ensure adherence to industry-standard best practices for controllers, models, and background jobs.

Quick Start

Apply Ruby on Rails best practices to an existing project by reviewing the provided guidelines on controllers, service objects, and ActiveRecord patterns.

Frequently Asked Questions about ruby-on-rails

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

FAQPage Schema
How do I prevent N+1 queries in Ruby on Rails ActiveRecord?

To prevent N+1 queries in Rails ActiveRecord, this Skill enforces best practices for efficient data handling, scopes, and associations to optimize database access patterns and avoid excessive query execution.

What is the best way to structure fat Ruby on Rails controllers?

The best way to structure fat Rails controllers is by enforcing controller thinness and moving complex business logic into service objects, form objects, and query objects to encapsulate operations effectively.

How do I secure a Ruby on Rails API with Devise and Pundit?

To secure a Rails API with Devise and Pundit, this Skill provides architectural guidelines for implementing authentication and authorization, addressing API design and robust security patterns.

How do I manage background jobs in Ruby on Rails with Sidekiq?

Managing Rails background jobs with Sidekiq requires following specific architectural patterns and best practices to ensure robust asynchronous processing and maintainable service object encapsulation.

How do I test Ruby on Rails applications with RSpec?

Testing Rails applications with RSpec involves implementing thorough testing strategies that adhere to industry-standard best practices, covering controllers, models, and service objects to ensure robust application behavior.

When do I need service objects in Ruby on Rails application development?

You need service objects in Rails application development when extracting complex business logic from controllers, ensuring architectural guidance through service objects, form objects, and query objects for maintainable and scalable code.