rails-best-practices-core

Architecture, naming, modeling, routing, review priorities: the baseline for all Rails work

Automatic · raw .md · GitHub

Install

npx skills add marckohlbrugge/skills --skill rails-best-practices-core

Or tell your agent:

Install the skill at https://marc.md/rails-best-practices-core.md

Or by hand, for Claude Code:

mkdir -p ~/.claude/skills/rails-best-practices-core && curl -fsSL https://marc.md/rails-best-practices-core.md -o ~/.claude/skills/rails-best-practices-core/SKILL.md

Rails Best Practices Core

Use this as the default baseline for Rails work. It started from 37signals' codebases (Campfire, Fizzy) and DHH's reviews; the parts that are a matter of taste live in 37signals-style. When the app follows that style (no service objects, CRUD-only routing, records for state), apply both.

Core Defaults

Modeling

Naming

Routing

Authorization

Dependencies

Before adding a gem ask: can vanilla Rails do this? Is a small amount of in-repo code simpler than a dependency you'll have to upgrade?

Review Priorities

  1. Correctness and data safety.
  2. Multi-tenant/security boundaries.
  3. Maintainability and readability.
  4. Performance hot spots.
  5. Style and polish.

Always Flag

Review Output