Ruby on Rails
Rails patterns from thoughtbot and others: N+1 and presenters, testing, Hotwire, zero-downtime migrations, background jobs, authorization and security checks.
Category: Backend. By playbookrun. Reviewed by PlaybookRun before publishing. Installs in Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and more.
Tags: ruby, rails, hotwire, activerecord, background-jobs
Skills
- Rails Patterns (rails-patterns): Use when writing or modifying code in a Rails application. Guides agents to follow thoughtbot best practices for N+1 prevention, view layer organization, and domain modeling.
- Testing Patterns (testing-patterns): Use when writing or reviewing tests in a Ruby/Rails application. Guides agents to write well-structured tests using the Arrange/Act/Assert pattern, semantic Capybara selectors, and performance-aware practices.
- Implement Hotwire (implement-hotwire): Use when adding Turbo Frames, Turbo Streams, or Stimulus controllers. Trigger words: Hotwire, Turbo, Stimulus, frames, streams.
- Review Migration (review-migration): Use when planning or reviewing a production Rails migration. Never mix schema change and backfill. Trigger words: migration, add column, index, backfill, zero-downtime.
- Implement Background Job (implement-background-job): Use when adding or reviewing an Active Job / Sidekiq / Solid Queue worker. Cover idempotency, retry_on, and discard_on. Trigger words: background job, Active Job, Sidekiq, Solid Queue, worker.
- Implement Authorization (implement-authorization): Use when adding or reviewing Rails authorization with Pundit, CanCanCan, or policy objects. Trigger words: authorization, Pundit, CanCanCan, policy, roles, permissions.
- Security Check (security-check): Use when auditing a Rails app for XSS, CSRF, SQLi, IDOR, secrets, or auth bypass. Never print secrets. Trigger words: security, audit, XSS, CSRF, SQL injection, vulnerability.
Install
claude plugin marketplace add Fcakiroglu16/marketplace claude plugin install ruby-on-rails@playbookrun