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

Rails Dev

  • 233 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

rails-dev: A skill for development. This provides functionality for development workflows.

Key points

  • rails-dev

Rails Dev by the numbers

  • 233 all-time installs (skills.sh)
  • +8 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #1,638 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill rails-dev

Add your badge

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

Listed on Skillselion
Installs233
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I use rails-dev for development tasks?

Use rails-dev for development tasks

Who is it for?

Best when you're working on backend & apis and need structured help with rails-dev.

Skip if: Teams with no backend & apis needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to use rails-dev for development tasks, or when rails-dev: a skill for development. this provides functionality for development workflows.

What you get

Structured output aligned to rails-dev: rails-dev.

Files

SKILL.mdMarkdownGitHub ↗

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)

  • `db-eager-load-associations` - Eager load associations to eliminate N+1 queries
  • `db-add-database-indexes` - Add database indexes on queried columns
  • `db-select-specific-columns` - Select only needed columns
  • `db-batch-processing` - Use find_each for large dataset iteration
  • `db-avoid-queries-in-loops` - Avoid database queries inside loops
  • `db-use-scopes` - Define reusable query scopes on models
  • `db-safe-migrations` - Write reversible zero-downtime migrations
  • `db-exists-over-count` - Use exists? instead of count for existence checks

2. Controllers & Routing (CRITICAL)

  • `ctrl-thin-controllers` - Keep controllers thin by delegating to models and services
  • `ctrl-strong-params` - Always use strong parameters for mass assignment
  • `ctrl-restful-routes` - Follow RESTful routing conventions
  • `ctrl-before-action-scoping` - Scope before_action callbacks with only/except
  • `ctrl-respond-to-format` - Use respond_to for multi-format responses
  • `ctrl-rescue-from` - Handle errors with rescue_from in controllers

3. Security (HIGH)

  • `sec-parameterized-queries` - Never interpolate user input in SQL
  • `sec-strong-params-whitelist` - Whitelist permitted params, never blacklist
  • `sec-authenticate-before-authorize` - Authenticate before authorize on every request
  • `sec-csrf-protection` - Enable CSRF protection for all form submissions
  • `sec-scope-queries-to-user` - Scope queries to current user for authorization

4. Models & Business Logic (HIGH)

  • `model-validate-at-model-level` - Validate data at the model level
  • `model-avoid-callback-side-effects` - Avoid side effects in model callbacks
  • `model-use-service-objects` - Extract complex logic into service objects
  • `model-scope-over-class-methods` - Use scopes instead of class methods for query composition
  • `model-use-enums` - Use enums for finite state fields
  • `model-concerns-for-shared-behavior` - Use concerns for shared model behavior
  • `model-query-objects` - Extract complex queries into query objects

5. Caching & Performance (HIGH)

  • `cache-fragment-caching` - Use fragment caching for expensive view partials
  • `cache-russian-doll` - Use Russian doll caching for nested collections
  • `cache-low-level` - Use Rails.cache.fetch for computed data
  • `cache-counter-cache` - Use counter caches for association counts
  • `cache-conditional-get` - Use conditional GET with stale? for HTTP caching

6. Views & Frontend (MEDIUM-HIGH)

  • `view-collection-rendering` - Use collection rendering instead of loop partials
  • `view-turbo-frames` - Use Turbo Frames for partial page updates
  • `view-turbo-streams` - Use Turbo Streams for real-time page mutations
  • `view-form-with` - Use form_with instead of form_tag or form_for
  • `view-avoid-logic-in-views` - Move display logic to helpers or presenters

7. API Design (MEDIUM)

  • `api-serializers` - Use serializers for consistent JSON responses
  • `api-pagination` - Always paginate collection endpoints
  • `api-versioning` - Version APIs from day one
  • `api-error-responses` - Return structured error responses
  • `api-avoid-jbuilder-hot-paths` - Avoid Jbuilder on high-traffic endpoints

8. Background Jobs & Async (LOW-MEDIUM)

  • `job-idempotent-design` - Design jobs to be idempotent
  • `job-small-payloads` - Pass IDs to jobs, not serialized objects
  • `job-error-handling` - Configure retry and error handling for jobs
  • `job-unique-jobs` - Prevent duplicate job enqueuing

How to Use

Read individual reference files for detailed explanations and code examples:

  • Section definitions - Category structure and impact levels
  • Rule template - Template for adding new rules

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Related skills

FAQ

What does rails-dev do?

rails-dev: A skill for development. This provides functionality for development workflows.

When should I use rails-dev?

When you need to use rails-dev for development tasks, or when rails-dev: a skill for development. this provides functionality for development workflows.

What are the main capabilities?

rails-dev.

Backend & APIsbackendintegrations

This week in AI coding

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

unsubscribe anytime.