Back to skills
SKILL.md
Rails Reference
ASecurityWorked code examples for this project's Rails layer conventions — models, ActiveRecord queries, database/migrations, controllers & routing, business logic (services/forms/ policies), background jobs, caching & storage, and security. CONSULT when implementing or reviewing a Rails layer and you need the idiomatic example (model structure, N+1 fixes, service patterns, thin controllers, idempotent jobs, caching, strong params/SQL safety). Reference loaded on demand — the always-apply rules live i...
- 2 stars
- 0 votes
- 0 copies
- 2 views
- Added September 5, 2026
Security analysis
100/100Pro scans all 9 files and shows the line behind each finding
npx -y skills add mik2win/foureyes --skill rails-reference --agent claude-codeAre you the author of Rails Reference?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mik2win-rails-reference)---
name: rails-reference
description: >-
Worked code examples for this project's Rails layer conventions — models, ActiveRecord
queries, database/migrations, controllers & routing, business logic (services/forms/
policies), background jobs, caching & storage, and security.
CONSULT when implementing or reviewing a Rails layer and you need the idiomatic example
(model structure, N+1 fixes, service patterns, thin controllers, idempotent jobs, caching,
strong params/SQL safety). Reference loaded on demand — the always-apply rules live in the
matching `rails-*` rules.
allowed-tools:
- Read
- Grep
- Glob
---
# Rails layer conventions — worked examples
Companion to the `rails-*` layer rules. Read the reference file (in this skill's folder) for
the layer you're working in:
- **Models** — structure order, enums, associations, scopes, callbacks → `references/models.md`
- **ActiveRecord queries** — N+1, eager loading, batching, indexes-in-queries → `references/queries.md`
- **Database & migrations** — zero-downtime, types, indexes, constraints → `references/database.md`
- **Controllers & routing** — thin controllers, REST, status codes, routes → `references/controllers-routing.md`
- **Business logic** — services, forms, policies, queries, value objects → `references/business-logic.md`
- **Background jobs** — idempotency, retries, primitive args, Solid Queue → `references/background-jobs.md`
- **Caching & storage** — fragment/Russian-doll caching, Solid Cache, storage → `references/caching-storage.md`
- **Security** — strong params, SQL safety, html_safe, auth, secrets → `references/security.md`
Files in this skill
- SKILL.md
- references/background-jobs.md
- references/business-logic.md
- references/caching-storage.md
- references/controllers-routing.md
- references/database.md
- references/models.md
- references/queries.md
- references/security.md
Attribution
Comments
Loading comments…