A comprehensive Rails optimization guide with 45 rules across database queries, controllers, security, caching, and background jobs. Reach for this when you're writing ActiveRecord queries, building API endpoints, or reviewing code for N+1s and performance issues. The priority system is smart: database and controller patterns are marked critical, while background job patterns sit lower since they affect fewer requests. Each rule links to detailed references with examples, though the real value is having eager loading, indexing, and strong params checks baked into your workflow. It's opinionated about service objects and query objects for complex logic, which keeps models from turning into thousand-line monsters.

skills.sh installs
293
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill rails-dev --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend Development, Backend & APIs, Security, Documentation, Code Review & Quality, Debugging, Design & UI/UX
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1autobyteus avatarinfographic-powerpoint-deckautobyteus/autobyteus-skillsCreate image-based PowerPoint decks by (1) turning raw article content or notes into a detailed per-slide message plan when needed, (2) turning that message pla292skills.sh installs
2pbnicad avatartelegram-bot-grammypbnicad/telegram-bot-grammy-skillTelegram Bot development skill using grammY framework, TypeScript, Drizzle ORM, Vitest testing, Biome linting, deployed to Cloudflare Workers with D1 database. 292skills.sh installs
3postplusai avatarvisual-hookpostplusai/postplus-skillsDesign and critique TikTok/Reels visual hooks for short-form slideshow or video production. Use this when discussing how to make the first image, first frame, o287skills.sh installs
4zeroz-lab avatarcc-designzeroz-lab/cc-designHigh-fidelity HTML design and prototype creation. Use this skill whenever the user asks to design, prototype, mock up, or build visual artifacts in HTML — inclu287skills.sh installs
5wix avatarwix-cli-orchestratorwix/skillsBLOCKING REQUIREMENT - When user requests to add/build/create/implement ANY feature or component for a Wix CLI app, you MUST invoke this skill IMMEDIATELY as yo286skills.sh installs
6mitsuhiko avatarsummarizemitsuhiko/agent-stuffFetch a URL or convert a local file (PDF/DOCX/HTML/etc.) into Markdown using `uvx markitdown`, optionally it can summarize285skills.sh installs