Back to skills
SKILL.md
Rails Patterns
ASecurityRails patterns: service objects, strong params, authorization, background jobs, N+1 prevention and system tests.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Security analysis
100/100npx -y skills add karthikrshet/saarthi --skill rails-patterns --agent claude-codeAre you the author of Rails Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-rails-patterns)---
name: rails-patterns
description: "Rails patterns: service objects, strong params, authorization, background jobs, N+1 prevention and system tests."
tags: [ruby, backend]
---
# Rails Patterns
## When to use
- Rails apps
## Procedure
1. Keep controllers thin; use service/query objects
2. Authorise with Pundit;includes/preload to prevent N+1 (bullet gem in dev)
3. Sidekiq/ActiveJob jobs idempotent
4. System tests for critical flows
## Checklist
- [ ] Strong params everywhere
- [ ] Migrations reversible
## Anti-patterns
- Callbacks with external side effects
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.