rails-n-plus-one
CommunityFix N+1 query problems
Authorlekemula
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill identifies and helps resolve inefficient N+1 query patterns in Ruby on Rails applications, which can significantly degrade performance.
Core Features & Use Cases
- N+1 Query Detection: Scans Ruby code (models, controllers, views, etc.) for common N+1 query anti-patterns.
- Eager Loading Suggestions: Recommends appropriate eager loading techniques (
includes,preload,eager_load) to optimize database queries. - Code Fixes: Provides before-and-after code snippets to illustrate the suggested optimizations.
- Use Case: A developer suspects their application's performance is suffering due to database inefficiencies. They use this Skill to pinpoint and fix N+1 queries in their codebase.
Quick Start
Scan the file '/app/controllers/posts_controller.rb' for N+1 query problems.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rails-n-plus-one Download link: https://github.com/lekemula/dotfiles/archive/main.zip#rails-n-plus-one Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.