skills/rails-guides/SKILL.md
Official Rails documentation. Use when asked about any Rails-specific topic including ActiveRecord, routing, controllers, views, mailers, jobs, Action Cable, Action Text, Active Storage, migrations, validations, callbacks, associations, caching, security, or internals.
npx skillsauth add lucianghinda/superpowers-ruby rails-guidesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Official Rails documentation for reference during development.
references/getting_started.md — Rails basics, MVC overview, first app walkthroughreferences/command_line.md — rails command, generators, rake tasksreferences/configuring.md — Environments, initializers, credentials, database.ymlreferences/autoloading_and_reloading_constants.md — Zeitwerk, module naming, reload behaviorreferences/initialization.md — Rails boot sequence, railties, enginesreferences/active_record_basics.md — Models, CRUD, conventions, migrationsreferences/active_record_querying.md — Finders, scopes, joins, includes, explainreferences/active_record_validations.md — Built-in validators, custom validators, errorsreferences/active_record_callbacks.md — Lifecycle hooks, after_commit, skip_callbackreferences/association_basics.md — belongs_to, has_many, has_one, HABTM, polymorphicreferences/active_record_migrations.md — Schema changes, reversible migrations, db:migratereferences/active_record_encryption.md — Encrypting attributes at restreferences/active_record_composite_primary_keys.md — Multi-column primary keysreferences/active_record_multiple_databases.md — Multi-DB setup, sharding, replicasreferences/active_record_postgresql.md — PostgreSQL-specific features (hstore, jsonb, arrays)references/active_model_basics.md — ActiveModel outside ActiveRecord, form objectsreferences/action_controller_overview.md — Controllers, params, filters, sessions, cookiesreferences/action_controller_advanced_topics.md — Streaming, live, metal, http authreferences/routing.md — Resources, namespaces, constraints, named routes, URL helpersreferences/action_view_overview.md — Templates, partials, layouts, formatsreferences/action_view_helpers.md — form_with, link_to, tag, content_tag, asset helpersreferences/form_helpers.md — form_with, field helpers, nested forms, uploadsreferences/layouts_and_rendering.md — render, redirect_to, respond_to, layout inheritancereferences/working_with_javascript_in_rails.md — Import maps, Turbo, Stimulus overviewreferences/action_text_overview.md — Rich text with Trix, attachmentsreferences/active_job_basics.md — Job classes, queues, retry, test helpersreferences/action_mailer_basics.md — Mailers, templates, deliveries, previewsreferences/action_mailbox_basics.md — Incoming email routing and processingreferences/active_storage_overview.md — File uploads, variants, direct uploads, S3/GCS/Azurereferences/testing.md — Minitest, fixtures, test types, helpers, assertionsreferences/action_cable_overview.md — WebSockets, channels, broadcasting, connectionsreferences/security.md — SQL injection, XSS, CSRF, mass assignment, secure headersreferences/caching_with_rails.md — Fragment, action, HTTP caching, cache storesreferences/asset_pipeline.md — Sprockets, Propshaft, precompile, digestsreferences/tuning_performance_for_deployment.md — Puma, connection pooling, GCreferences/i18n.md — Translation files, locale, pluralization, date formatsreferences/api_app.md — API-only Rails, slim middleware stackreferences/rails_on_rack.md — Middleware stack, Rack integrationreferences/engines.md — Mountable engines, isolated namespaces, hooks, testingreferences/generators.md — Custom generators, templates, overriding defaultsreferences/plugins.md — Creating gem-based plugins, core extensions, testingreferences/active_support_core_extensions.md — String, Array, Hash, Date extensionsreferences/active_support_instrumentation.md — Notifications, log subscribersreferences/association_basics.md — Association options, eager loading strategiesreferences/debugging_rails_applications.md — debug gem, logger, web-console, byebugreferences/error_reporting.md — Error::Reporter, Sentry integrationreferences/threading_and_code_execution.md — Thread safety, executor, reloaderreferences/upgrading_ruby_on_rails.md — Version upgrade paths, deprecation handlingdevelopment
Use when writing, reviewing, or debugging pure Ruby code — idiomatic patterns, modern 3.x+ features (pattern matching, Data.define, endless methods), error handling conventions (raise vs fail, result objects), memoization, and performance idioms. For Rails use rails-guides. For testing use minitest. For code style use sandi-metz-rules.
tools
--- name: ruby-upgrade description: Use when upgrading the Ruby interpreter version of a Bundler/Rails app — especially "upgrade to Ruby 4", "bump Ruby to 4.0", "audit Ruby 4 compatibility", "what breaks on Ruby 4", or a specific target like "Ruby 4.0.5". Triggers on Ruby-major risk symptoms: CGI.parse/CGI::Cookie removal, Net::HTTP implicit Content-Type dropped, demoted default gems (ostruct/logger/benchmark/irb), SortedSet, Set#inspect changes, native-extension recompile crashes, openssl 4 pin
development
Use when stuck after multiple debug attempts and want to escalate to a stronger one-shot model (GPT-5 Pro, Opus, Gemini Pro) — packages a self-contained "oracle prompt" with Ruby/Rails project briefing, verbatim error, what-was-tried, constraints, and just-enough attached files. Triggers include "ask the oracle", "write a letter to GPT-5", "I'm stuck, draft a prompt for another model", "/tmp/letter.md".
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment