A straightforward Rails 7+ implementation guide that enforces good habits: eager loading associations to kill N+1 queries, using Turbo Frames for partial updates instead of full page reloads, and pushing slow work to Sidekiq. The workflow is opinionated in useful ways, like demanding RSpec coverage above 95% and adding indexes on every filtered column. Includes ready-to-use templates for common patterns like strong parameters and background jobs. Best for teams who want guardrails around performance and testing rather than just scaffolding code. The reference system lets you pull in deeper docs on Hotwire or Active Record only when you need them.

skills.sh installs
5K
GitHub stars
12.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add jeffallan/claude-skills --skill rails-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Rails Expert

Core Workflow

  1. Analyze requirements — Identify models, routes, real-time needs, background jobs
  2. Scaffold resources — rails generate model User name:string email:string, rails generate controller Users
  3. Run migrations — rails db:migrate and verify schema with rails db:schema:dump
    • If migration fails: inspect db/schema.rb for conflicts, rollback with rails db:rollback, fix and retry
  4. Implement — Write controllers, models, add Hotwire (see Reference Guide below)
  5. Validate — bundle exec rspec must pass; bundle exec rubocop for style
    • If specs fail: check error output, fix failing examples, re-run with --format documentation for detail
    • If N+1 queries surface during review: add includes/eager_load (see Common Patterns) and re-run specs
  6. Optimize — Audit for N+1 queries, add missing indexes, add caching

Reference Guide

Load detailed guidance based on context:

Sponsors

Details

Repository
github.com/jeffallan/claude-skills
Categories
Backend & APIs, Testing & QA

More from jeffallan/claude-skills

All 66
1claude-office-skills avatarnotion-automationclaude-office-skills/skillsNotion database automation - sync, templates, workflows, and cross-platform integrations5Kskills.sh installs
2evomap avatarcapability-evolverevomap/evolverA self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution. Communicates with EvoMap Hu5Kskills.sh installs
3mongodb avatarmongodb-natural-language-queryingmongodb/agent-skillsGenerate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents. Use this skill w4.9Kskills.sh installs
4forcedotcom avatardx-code-analyzer-custom-rule-createforcedotcom/sf-skillsCreate custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when user4.9Kskills.sh installs
5giuseppe-trisciuoglio avatarreact-patternsgiuseppe-trisciuoglio/developer-kitProvides comprehensive React 19 patterns for Server Components, Server Actions, useOptimistic, useActionState, useTransition, concurrent features, Suspense boun4.9Kskills.sh installs
6agricidaniel avataradsagricidaniel/claude-adsOperate professional paid advertising across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, and X. Use for acco4.9Kskills.sh installs