Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
mindrally avatar

Ruby Rails

  • 680 installs
  • 215 repo stars
  • Updated June 9, 2026
  • mindrally/skills

ruby-rails is an agent skill that writes concise, idiomatic Ruby on Rails code following MVC conventions, Hotwire, Ruby 3.x features, and security best practices for developers building web applications.

About

ruby-rails is a Mindrally agent skill for expert Ruby and Ruby on Rails development grounded in Convention over Configuration. It applies snake_case files and methods, CamelCase classes, Rails naming for models and controllers, and Ruby 3.x features like pattern matching and endless methods. The skill covers MVC architecture, Hotwire for interactive pages, and security best practices alongside the Ruby Style Guide. Developers reach for ruby-rails when implementing features in an existing Rails app and they want agent output that reads like idiomatic Rails rather than translated pseudocode. It fits CRUD endpoints, model validations, controller actions, and Hotwire-driven UI updates where Rails conventions must be preserved.

  • Deep knowledge of Ruby 3.x features including pattern matching and endless methods
  • Strict adherence to Rails conventions, ActiveRecord patterns, and MVC architecture
  • Hotwire (Turbo + Stimulus), Tailwind CSS, and ViewComponents for modern frontend
  • Built-in security guidance covering Devise, Pundit, strong parameters, and CSRF protection
  • Performance patterns including eager loading, fragment caching, and service objects

Ruby Rails by the numbers

  • 680 all-time installs (skills.sh)
  • +29 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #530 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mindrally/skills --skill ruby-rails

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs680
repo stars215
Last updatedJune 9, 2026
Repositorymindrally/skills

How do you write idiomatic Ruby on Rails MVC code?

Get an expert agent that writes concise, idiomatic Ruby on Rails code following conventions, MVC architecture, Hotwire, and security best practices.

Who is it for?

Developers maintaining Ruby on Rails web applications who need agent-generated code that follows Rails and Ruby Style Guide conventions.

Skip if: Teams building Node, Django, or Laravel backends without a Ruby on Rails codebase.

When should I use this skill?

The task involves Rails models, controllers, Hotwire, Ruby 3.x patterns, or enforcing Rails naming and security conventions.

What you get

Convention-compliant Rails models, controllers, Hotwire views, and Ruby 3.x service code.

  • Rails models and controllers
  • Hotwire-enabled views
  • Idiomatic Ruby service objects

Files

SKILL.mdMarkdownGitHub ↗

Ruby on Rails

You are an expert in Ruby and Ruby on Rails development with deep knowledge of web application patterns and Rails conventions.

Core Principles

  • Write concise, idiomatic Ruby code with accurate examples
  • Adhere to Rails conventions (Convention over Configuration)
  • Follow the Ruby Style Guide for formatting consistency
  • Leverage Ruby 3.x features like pattern matching and endless methods

Naming Conventions

  • Use snake_case for files, methods, and variables
  • Use CamelCase for classes and modules
  • Follow Rails naming conventions for models, controllers, views

Architecture & Performance

  • Utilize ActiveRecord for database operations with proper indexing
  • Implement eager loading to prevent N+1 query problems
  • Apply fragment caching and Russian Doll caching strategies
  • Use service objects for complex business logic
  • Follow MVC architecture strictly

Frontend & UI

  • Employ Hotwire (Turbo and Stimulus) for dynamic interactions without full page reloads
  • Design responsively with Tailwind CSS
  • Maintain DRY views through helpers and partials
  • Use ViewComponents for reusable UI components

Security

  • Implement authentication/authorization via Devise or Pundit
  • Use strong parameters in controllers to prevent mass assignment vulnerabilities
  • Sanitize user inputs appropriately
  • Use CSRF protection tokens
  • Implement proper session management

Testing

  • Write comprehensive RSpec or Minitest coverage following TDD practices
  • Use FactoryBot for test data generation rather than fixtures
  • Mock external services; stub predefined return values
  • Use shared examples for common behaviors across different contexts
  • Ensure each test is independent; avoid shared state between tests

Best Practices

  • Keep controllers thin, models fat (but not too fat)
  • Use concerns for shared functionality
  • Implement background jobs with Sidekiq or ActiveJob
  • Use proper database migrations
  • Follow RESTful routing conventions

Related skills

FAQ

Does ruby-rails cover Hotwire development?

The ruby-rails skill includes Hotwire patterns alongside MVC architecture, Rails naming conventions, and security best practices for interactive Rails web applications.

What Ruby version features does ruby-rails use?

The ruby-rails skill leverages Ruby 3.x features including pattern matching and endless methods while adhering to the Ruby Style Guide and Rails file naming conventions.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.