Skip to content
Back to skills

Rails Patterns

ASecurity

Rails patterns for params.expect, Active Record queries and callbacks, migrations, Zeitwerk, and security. Load before any edit in a Rails app, however small, and for Rails questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrailssecurity

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill rails-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rails Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rails Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-rails-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-rails-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rails-patterns
description: Rails patterns for params.expect, Active Record queries and callbacks, migrations, Zeitwerk, and security. Load before any edit in a Rails app, however small, and for Rails questions.
---

# Rails patterns

Default assumption: Rails 8.1, per the Rails release notes. The maintenance page lists 8.1, with security fixes until 2027-10-10, and 8.0, whose listed security support ran to 2026-11-07.

A row applies when the `rails` version in `Gemfile.lock` is at least the row's version. A new-app default applies when `config.load_defaults` is at least its version.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                  | Read                                                     |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Rails code, or raising the Rails version or `load_defaults`                     | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Rails code, views, or config                            | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing a query, a job, a class under `app/` or `lib/`, credentials, or security config | [reference/practices.md](reference/practices.md)         |
| Configuring Brakeman, RuboCop, or `zeitwerk:check`                                      | [reference/tooling.md](reference/tooling.md)             |
| Writing or changing a file in `app/controllers/`                                        | [reference/controllers.md](reference/controllers.md)     |
| Writing or changing a file in `app/models/`                                             | [reference/models.md](reference/models.md)               |
| Writing a migration in `db/migrate/`, or changing the schema format                     | [reference/migrations.md](reference/migrations.md)       |

Files in this skill

  • SKILL.md2.1 KB
  • reference/anti-patterns.md3.1 KB
  • reference/controllers.md2.9 KB
  • reference/migrations.md973 B
  • reference/models.md3.1 KB
  • reference/practices.md2.2 KB
  • reference/tooling.md2.2 KB
  • reference/upgrades.md8.6 KB
  • sources.md7.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.