ruby-on-rails

Comprehensive Ruby on Rails 8.1 best-practices skill covering MVC, Active Record, routing, views, background jobs, storage, security, testing, and performance. Use when the user mentions Rails, Ruby on Rails, ActiveRecord, ActiveJob, ActionMailer, ActionCable, Active Storage, rails generate, rails routes, Hotwire, Turbo, Stimulus, or asks to build, review, debug, or migrate a Rails application or API.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ruby-on-rails" with this command: npx skills add display-design-studio/skills/display-design-studio-skills-ruby-on-rails

Ruby on Rails Best Practices

Full-stack Rails 8.1 guide organized as modular rules. Covers MVC core patterns, Active Record, components (jobs, mailer, cable, storage), security, testing, performance, and debugging.

ROUTING: Which rule file to load

IF working with models, database queries, associations, validations, or migrations: → Read rules/core-active-record.md

IF working with routes, controllers, params, sessions, cookies, or filters: → Read rules/core-routing-and-controllers.md

IF working with views, layouts, partials, ERB templates, or form helpers: → Read rules/core-views-and-forms.md

IF working with background jobs, emails, or WebSocket channels: → Read rules/component-jobs-mailer-cable.md

IF working with file uploads or cloud storage: → Read rules/component-active-storage.md

IF dealing with security concerns (auth, CSRF, XSS, SQL injection, secrets): → Read rules/security-best-practices.md

IF writing or fixing tests: → Read rules/testing-patterns.md

IF optimizing performance or configuring for production: → Read rules/perf-caching-and-deployment.md

IF debugging an error or unexpected behavior: → Read rules/debug-tools.md

IF new to the MVC request cycle or need a top-level orientation: → Read rules/core-mvc-request-lifecycle.md first

Rule index

TopicDescriptionFile
Sections overviewCategories and reading orderrules/_sections.md
MVC lifecycleRequest pipeline from router to responserules/core-mvc-request-lifecycle.md
Active RecordModels, queries, associations, validations, migrationsrules/core-active-record.md
Routing & ControllersRESTful routes, params, callbacks, sessionsrules/core-routing-and-controllers.md
Views & FormsERB, layouts, partials, form helpersrules/core-views-and-forms.md
Jobs / Mailer / CableActiveJob, ActionMailer, ActionCablerules/component-jobs-mailer-cable.md
Active StorageFile uploads, cloud storagerules/component-active-storage.md
SecurityCSRF, XSS, SQL injection, secrets, authrules/security-best-practices.md
TestingUnit, integration, system testsrules/testing-patterns.md
Performance & DeployCaching strategies, Puma, concurrencyrules/perf-caching-and-deployment.md
Debugbyebug, web console, logging, common errorsrules/debug-tools.md

Rule categories by priority

PriorityCategoryImpactPrefix
1MVC core patternsCRITICALcore-
2ComponentsHIGHcomponent-
3SecurityHIGHsecurity-
4TestingHIGHtesting-
5Performance & DeployMEDIUM-HIGHperf-
6DebugMEDIUMdebug-

Coverage and maintenance

  • Coverage map: rules/_coverage-map.md
  • Source: https://guides.rubyonrails.org/ (Rails 8.1.2)
  • Update this skill when Rails version changes or when new guides are published.

Rails CLI quick reference

rails new myapp                      # new full-stack app
rails new myapp --api                # API-only mode
rails generate model Post title:string body:text
rails generate controller Posts index show
rails generate migration AddAuthorToPosts author:references
rails db:migrate
rails db:rollback
rails routes                         # list all routes
rails console                        # interactive REPL
rails test                           # run test suite
rails server                         # start dev server (localhost:3000)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tailwind

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

shopify-development

No summary provided by upstream source.

Repository SourceNeeds Review