con un clic
coding-in-ruby-on-rails
Follow these rules while coding in ruby on rails.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Follow these rules while coding in ruby on rails.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Best practices and rules for coding in React Native Expo projects, specifically using Expo Router.
Guides users through creating effective Agent Skills. Use when the user wants to create, write, or author a new skill, or asks about skill structure, best practices, or SKILL.md format.
Systematic process for implementing minimal, intelligent bug fixes in any language (Implementation Only).
Systematic process for identifying and analyzing bugs (Identification Only).
Guidelines and systematic process for updating variable, function, and class names to improve code readability and maintainability.
Reviews code changes for bugs, style issues, security, and best practices. Use when reviewing PRs or checking code quality.
| name | coding-in-ruby-on-rails |
| description | Follow these rules while coding in ruby on rails. |
Follow these rules strictly when coding in Ruby on Rails to ensure a maintainable, high-performance, and secure codebase.
db/schema.rb (or the relevant migration if the schema file is not authoritative), then read the matching model file. Complete this step before you edit controllers, services, jobs, serializers, views, routes, tests, or any other backend code. Treat those files as the source of truth for columns, types, indexes, associations, and validations.app/services) for operations that involve multiple models or complex third-party integrations..json.jbuilder files for crafting API responses. Do not render JSON directly in controllers.json.jbuilder, always explicitly call render at the end of the controller action to show which file is getting rendered (e.g., render :show or render 'users/show')..includes, .preload, or .eager_load to prevent N+1 query issues.params.require(...).permit(...) to prevent mass assignment vulnerabilities.snake_case for methods and variables, and CamelCase for classes/modules.resources :users) and avoid custom actions when possible.shallow: true or break nested resources into their own top-level resources if nesting exceeds 1 level.rescue_from in ApplicationController to handle common exceptions (like ActiveRecord::RecordNotFound) and return consistent JSON error responses.before_save, after_create). Use Service Objects to handle flows that require multiple steps to prevent side-effect loops and hard-to-debug logic.