Skip to content
Back to skills

Rails Conventions Reference

ASecurity

Worked GOOD/BAD examples for this project's Ruby/Rails conventions plus the optional architectural patterns — value objects, query objects, form objects, custom validators, and focused concerns. CONSULT when you need an idiomatic Rails example (model structure order, service patterns, thin controllers, routing, jobs, migrations) or when introducing a value/query/form object, a custom validator, or a concern. This is reference loaded on demand — the always-apply rules themselves live in the `r...

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
ai-agentsgorubyrails

Security analysis

A100/100

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

Scanned September 5, 2026

npx -y skills add mik2win/foureyes --skill rails-conventions-reference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rails Conventions Reference?

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

Security grade badge for Rails Conventions Reference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mik2win-rails-conventions-reference/badge)](https://www.skillsdirectory.com/skills/mik2win-rails-conventions-reference)

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-conventions-reference
description: >-
  Worked GOOD/BAD examples for this project's Ruby/Rails conventions plus the optional
  architectural patterns — value objects, query objects, form objects, custom validators,
  and focused concerns.
  CONSULT when you need an idiomatic Rails example (model structure order, service
  patterns, thin controllers, routing, jobs, migrations) or when introducing a
  value/query/form object, a custom validator, or a concern. This is reference loaded on
  demand — the always-apply rules themselves live in the `ruby-rails-conventions` rule.
allowed-tools:
  - Read
  - Grep
  - Glob
---

# Ruby / Rails conventions — worked examples

Companion to the `ruby-rails-conventions` rule. The rule states the conventions as imperative
bullets; this skill holds the GOOD/BAD examples and the optional patterns. Read the reference
file (in this skill's folder) for the topic you need:

- **Naming & OOP** — naming, safe navigation, SRP, DI, Tell-Don't-Ask, Law of Demeter, duck
  typing, Open/Closed, name-by-noun → `references/naming-oop.md`
- **Model structure** — 11-step order, enums with explicit integers → `references/model-structure.md`
- **ActiveRecord** — N+1/includes, exists?, pluck, find_each, transactions, load_async,
  callbacks → `references/activerecord.md`
- **Services** — noun naming, single `#call` vs facade, dependency rule → `references/services.md`
- **Controllers & routing** — thin controllers, RESTful resources, shallow nesting →
  `references/controllers-routing.md`
- **Jobs & migrations** — idempotent jobs, reversible migrations, indexes, foreign keys →
  `references/jobs-migrations.md`
- **Optional: value / query / form objects** — when the simple approach is no longer enough →
  `references/value-query-form-objects.md`
- **Optional: custom validators & concerns** — reusable validation, focused traits →
  `references/concerns.md`

Files in this skill

  • SKILL.md1.9 KB
  • references/activerecord.md1.1 KB
  • references/concerns.md1.2 KB
  • references/controllers-routing.md947 B
  • references/jobs-migrations.md766 B
  • references/model-structure.md1.2 KB
  • references/naming-oop.md2 KB
  • references/services.md1.2 KB
  • references/value-query-form-objects.md1.8 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.

Comments

Loading comments…