Rails Dev: Install, Source and Security | FunnelSlayer

Rails Dev

Published by pproenca in dot-skills

No known issues286 installs

What this skill does

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 improv

Add Rails Dev to your agent

Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.

Install with a prompt

Paste this into a compatible coding agent:

add this skill "rails-dev" from https://github.com/pproenca/dot-skills

Install with the CLI

Run this command in a controlled environment after reviewing the repository:

npx skills add https://github.com/pproenca/dot-skills --skill rails-dev

Skill instructions

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

Files included

  • AGENTS.md
  • assets/templates/_template.md
  • metadata.json
  • references/_sections.md
  • references/api-avoid-jbuilder-hot-paths.md
  • references/api-error-responses.md
  • references/api-pagination.md
  • references/api-serializers.md
  • references/api-versioning.md
  • references/cache-conditional-get.md
  • references/cache-counter-cache.md
  • references/cache-fragment-caching.md
  • references/cache-low-level.md
  • references/cache-russian-doll.md
  • references/ctrl-before-action-scoping.md
  • references/ctrl-rescue-from.md
  • references/ctrl-respond-to-format.md
  • references/ctrl-restful-routes.md
  • references/ctrl-strong-params.md
  • references/ctrl-thin-controllers.md
  • references/db-add-database-indexes.md
  • references/db-avoid-queries-in-loops.md
  • references/db-batch-processing.md
  • references/db-eager-load-associations.md
  • references/db-exists-over-count.md
  • references/db-safe-migrations.md
  • references/db-select-specific-columns.md
  • references/db-use-scopes.md
  • references/job-error-handling.md
  • references/job-idempotent-design.md
  • references/job-small-payloads.md
  • references/job-unique-jobs.md
  • references/model-avoid-callback-side-effects.md
  • references/model-concerns-for-shared-behavior.md
  • references/model-query-objects.md
  • references/model-scope-over-class-methods.md
  • references/model-use-enums.md
  • references/model-use-service-objects.md
  • references/model-validate-at-model-level.md
  • references/sec-authenticate-before-authorize.md
  • references/sec-csrf-protection.md
  • references/sec-parameterized-queries.md
  • references/sec-scope-queries-to-user.md
  • references/sec-strong-params-whitelist.md
  • references/view-avoid-logic-in-views.md
  • references/view-collection-rendering.md
  • references/view-form-with.md
  • references/view-turbo-frames.md
  • references/view-turbo-streams.md
  • SKILL.md

More skills