rails-dev

v2026.09.24

Ruby on Rails performance and maintainability optimization guidelines for building backend APIs and frontend web applications. This skill should be used when writing, reviewing, or refactoring Ruby on Rails code to ensure optimal patterns for controllers, models, ActiveRecord queries, caching, views, API design, security, and background jobs. Triggers on tasks involving Rails controllers, ActiveRecord queries, migrations, Turbo/Hotwire, API endpoints, background jobs, or Rails performance improvements.

GitHub
Install command
npx skhub add pproenca/rails-dev
Markdown
SKILL.md

Community Ruby on Rails Development Best Practices

Comprehensive performance and maintainability optimization guide for Ruby on Rails applications, maintained by Community. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Rails controllers, models, or views
  • Optimizing ActiveRecord queries and database access patterns
  • Implementing caching strategies (fragment, Russian doll, low-level)
  • Building or refactoring API endpoints
  • Adding Turbo Frames and Streams for interactive UIs
  • Reviewing code for N+1 queries and security vulnerabilities
  • Designing background jobs with Sidekiq or Active Job
  • Writing or reviewing database migrations

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Database & ActiveRecordCRITICALdb-
2Controllers & RoutingCRITICALctrl-
3SecurityHIGHsec-
4Models & Business LogicHIGHmodel-
5Caching & PerformanceHIGHcache-
6Views & FrontendMEDIUM-HIGHview-
7API DesignMEDIUMapi-
8Background Jobs & AsyncLOW-MEDIUMjob-

Quick Reference

1. Database & ActiveRecord (CRITICAL)

2. Controllers & Routing (CRITICAL)

3. Security (HIGH)

4. Models & Business Logic (HIGH)

5. Caching & Performance (HIGH)

6. Views & Frontend (MEDIUM-HIGH)

7. API Design (MEDIUM)

8. Background Jobs & Async (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
Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.24

Published

Sep 24, 2026

Category

Uncategorized

License

MIT

Source path

skills/.curated/rails-dev

Default branch

master

Latest commit

cf93c57

Tree SHA

afbb575