ror-styleguide
Installation
SKILL.md
Rails Style Guide
Workflow
- Identify the Rails area(s) in scope (for example: routing, controllers, models, migrations, views, i18n, assets, mailers, Active Support, time/duration, bundler, testing, processes).
- Load the matching section file(s) from
references/before responding. - If the request spans multiple areas, read each relevant file and reconcile overlaps; prefer the most specific section.
- Call out version-specific guidance explicitly (for example, Rails 6.1+ or Rails 7.0+).
- If the guide does not cover a rule, say so and suggest checking the official guide section instead of inventing guidance.
- Keep responses anchored to the guide’s intent; do not introduce new conventions unless asked.
How to respond
- Prefer concise, actionable guidance with direct mapping to the section rules.
- When reviewing code, list concrete findings, each with:
- the violated rule,
- the reason (why it matters),
- a corrected example.
- Use the Good/Bad examples in each section file as templates for your response.
- If code is ambiguous, ask one clarifying question rather than guessing (for example: Rails version, app structure, or preferred test framework).
- Avoid long quotations from the guide; summarize in your own words and point to the section file.
Section files (when to use each)
references/introduction.md- guide context, scope, and how it relates to the Ruby style guidereferences/configuration.md- app and environment configuration, initializers, config filesreferences/routing.md- routes.rb structure, RESTful routing, nesting, and namespacesreferences/controllers.md- controller responsibilities, action size, and shared statereferences/controllers-rendering.md- render/response conventions and status usagereferences/models.md- non-AR models, naming, and presentation boundariesreferences/models-active-record.md- AR macros, validations, callbacks, associations, and persistencereferences/models-active-record-queries.md- query style, where/order/find, and SQL safetyreferences/migrations.md- migration structure, constraints, reversibility, and data changesreferences/views.md- view logic boundaries, partials, and locals usagereferences/internationalization.md- i18n keys, locale files, and translation patternsreferences/assets.md- asset pipeline placement and third-party assetsreferences/mailers.md- mailer naming, delivery configuration, and email templatesreferences/active-support-core-extensions.md- preferred core extensions and Ruby alternativesreferences/time.md- time zone usage, parsing, and time helpersreferences/duration.md- duration helpers and time arithmetic patternsreferences/bundler.md- Gemfile grouping and dependency hygienereferences/testing.md- testing style preferences and time helpersreferences/managing-processes.md- process management in developmentreferences/further-reading.md- recommended books and docs for deeper guidancereferences/contributing.md- contribution workflow for the guide itselfreferences/license.md- licensing and attribution requirementsreferences/spread-the-word.md- sharing and attribution guidance
Weekly Installs
2
Repository
mzygar/ruby-skillsFirst Seen
Feb 27, 2026
Security Audits
Installed on
cline2
gemini-cli2
github-copilot2
codex2
kimi-cli2
cursor2