rails-security
Installation
SKILL.md
Rails Security
Security practices for Ruby on Rails applications (Rails 7.1+ and 8.x). Rails is secure by
default in most places; the vulnerabilities that reach production usually come from opting
out of a default rather than failing to add protection. This skill is the "how." For the
decisions about which control to reach for, see the Ruby security rules —
rules/ruby/security.md in this repository, installed as rules/ecc/ruby/security.md.
When to Activate
- Writing or reviewing authentication, sessions, or account recovery
- Adding authorization checks to controllers or views
- Handling user input, file uploads, or webhook payloads
- Configuring a Rails app for production
- Reviewing a PR that touches
config/,app/controllers/, orGemfile - Any use of
html_safe,raw,Arel.sql, or raw SQL strings