rails

Identify and implement Rails best practices for models, controllers, and migrations.

9|1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/calcosmic/Aether --skill rails-calcosmic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails
Source: https://github.com/calcosmic/Aether/tree/main/.aether/skills-codex/domain/rails
Command: npx skills add https://github.com/calcosmic/Aether --skill rails-calcosmic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rails projects often drift away from conventions, generating brittle code and confusing maintenance. This skill provides a concise, opinionated guide to Rails best practices to improve maintainability and consistency across models, controllers, migrations, and database constraints.

Core Features & Use Cases

  • Enforces conventional naming and structure (singular models, plural controllers, proper table naming).
  • Encourages use of service objects and concerns to keep models and controllers lean.
  • Guides security and performance practices, including strong parameters, validations, and N+1 avoidance in queries.

Quick Start

Follow the Rails best practices to scaffold a typical app with conventional naming and structure.

Frequently Asked Questions about rails

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

FAQPage Schema
How do I apply Rails best practices to reduce boilerplate in my Ruby on Rails application?

Rails best practices reduce boilerplate by enforcing conventional naming for models and controllers, using service objects to keep logic lean, and implementing strong parameters and database constraints for better maintainability.

What are Rails conventions for structuring models and controllers?

Rails conventions dictate using singular names for models and plural names for controllers, along with proper table naming. Adhering to this structure ensures a clean, scalable application and reduces confusing maintenance.

When should I use service objects in a Ruby on Rails application?

Use service objects in Rails to keep models and controllers lean. By extracting business logic into service objects, you prevent your core components from becoming bloated and brittle, ensuring long-term maintainability.

How do I avoid N+1 queries and improve performance in Rails?

Avoid N+1 queries in Rails by applying performance best practices like eager loading and proper database constraints. This ensures efficient data retrieval and maintains a scalable web application.

Does this Rails conventions guide cover database migrations and validations?

Yes, this guide covers database migrations and validations. It provides an opinionated approach to Rails best practices, guiding naming conventions, validations, and database constraints across typical application components.