Loading...
Loading...
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.
npx skill4agent add pproenca/dot-skills rails-dev| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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 | |
db-eager-load-associationsdb-add-database-indexesdb-select-specific-columnsdb-batch-processingdb-avoid-queries-in-loopsdb-use-scopesdb-safe-migrationsdb-exists-over-countctrl-thin-controllersctrl-strong-paramsctrl-restful-routesctrl-before-action-scopingctrl-respond-to-formatctrl-rescue-fromsec-parameterized-queriessec-strong-params-whitelistsec-authenticate-before-authorizesec-csrf-protectionsec-scope-queries-to-usermodel-validate-at-model-levelmodel-avoid-callback-side-effectsmodel-use-service-objectsmodel-scope-over-class-methodsmodel-use-enumsmodel-concerns-for-shared-behaviormodel-query-objectscache-fragment-cachingcache-russian-dollcache-low-levelcache-counter-cachecache-conditional-getview-collection-renderingview-turbo-framesview-turbo-streamsview-form-withview-avoid-logic-in-viewsapi-serializersapi-paginationapi-versioningapi-error-responsesapi-avoid-jbuilder-hot-pathsjob-idempotent-designjob-small-payloadsjob-error-handlingjob-unique-jobs| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |