Rails 7+ specialist optimizing queries, implementing Hotwire real-time features, and background job processing.
Works with
Covers Active Record query optimization with includes / eager_load to prevent N+1 queries, plus database indexing strategies
Implements Turbo Frames and Turbo Streams for partial page updates, and Action Cable configuration for WebSocket-based real-time features
Provides Sidekiq worker templates for background job processing with retry logic and error handling
Includes R
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionrails-expertExecute the skills CLI command in your project's root directory to begin installation:
Fetches rails-expert from jeffallan/claude-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate rails-expert. Access via /rails-expert in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
7.9K
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
7.9K
stars
rails generate model User name:string email:string, rails generate controller Usersrails db:migrate and verify schema with rails db:schema:dump
db/schema.rb for conflicts, rollback with rails db:rollback, fix and retrybundle exec rspec must pass; bundle exec rubocop for style
--format documentation for detailincludes/eager_load (see Common Patterns) and re-run specsLoad detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Hotwire/Turbo | references/hotwire-turbo.md |
Turbo Frames, Streams, Stimulus controllers |
| Active Record | references/active-record.md |
Models, associations, queries, performance |
| Background Jobs | references/background-jobs.md |
Sidekiq, job design, queues, error handling |
| Testing | references/rspec-testing.md |
Model/request/system specs, factories |
| API Development | references/api-development.md |
API-only mode, serialization, authentication |
# BAD — triggers N+1
posts = Post.all
posts.each { |post| puts post.author.name }
# GOOD — eager load association
posts = Post.includes(:author).all
posts.each { |post| puts post.author.name }
# GOOD — eager_load forces a JOIN (useful when filtering on association)
posts = Post.eager_load(:author).where(authors: { verified: true })
<%# app/views/posts/index.html.erb %>
<%= turbo_frame_tag "posts" do %>
<%= render @posts %>
<%= link_to "Load More", posts_path(page: @next_page) %>
<% end %>
<%# app/views/posts/_post.html.erb %>
<%= turbo_frame_tag dom_id(post) do %>
<h2><%= post.title %></h2>
<%= link_to "Edit", edit_post_path(post) %>
<% end %>
# app/controllers/posts_controller.rb
def index
@posts = Post.includes(:author).page(params[:page])
@next_page = @posts.next_page
end
# app/jobs/send_welcome_email_job.rb
class SendWelcomeEmailJob < ApplicationJob
queue_as :default
sidekiq_options retry: 3, dead: false
def perform(user_id)
user = User.find(user_id)
UserMailer.welcome(user).deliver_now
rescue ActiveRecord::RecordNotFound => e
Rails.logger.warn("SendWelcomeEmailJob: user #{user_id} not found — #{e.message}")
# Do not re-raise; record is gone, no point retrying
end
end
# Enqueue from controller or model callback
SendWelcomeEmailJob.perform_later(user.id)
# app/controllers/posts_controller.rb
class PostsController < ApplicationController
before_action :set_post, only: %i[show edit update destroy]
def create
@post = Post.new(post_params)
if @post.save
redirect_to @post, notice: "Post created."
else
render :new, status: :unprocessable_entity
end
end
private
def set_post
@post = Post.find(params[:id])
end
def post_params
params.require(:post).permit(:title, :body, :published_at)
end
end
includes/eager_load on every collection query involving associationsWHERE, ORDER BY, or JOINsanitize_sql or parameterized queries only)When implementing Rails features, provide:
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
jeffallan/claude-skills
jeffallan/claude-skills
jeffallan/claude-skills
jeffallan/claude-skills
jeffallan/claude-skills
jeffallan/claude-skills
Solid pick for teams standardizing on skills: rails-expert is focused, and the summary matches what you get after install.
Keeps context tight: rails-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added rails-expert from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Registry listing for rails-expert matched our evaluation — installs cleanly and behaves as described in the markdown.
rails-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.
I recommend rails-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in rails-expert — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
rails-expert reduced setup friction for our internal harness; good balance of opinion and flexibility.
rails-expert fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
rails-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 44