rb:n1-check
CommunityFind and fix N+1 queries fast
Authorslbug
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Diagnoses and explains N+1 database query patterns that cause slow index pages, API responses, serializers, and Hotwire screens by identifying lazy association loads and missing preload strategies.
Core Features & Use Cases
- Detection: Scans controllers, models, serializers, blueprints, and GraphQL codepaths to locate loops and access patterns that trigger N+1 queries.
- Explanation & Fixes: Describes root causes such as serializer-induced repeated loads and missing includes, and recommends includes, preload, eager_load, or preloader APIs.
- Best Practices: Suggests Bullet or strict_loading checks, batching, and query composition techniques to prevent regressions in production.
Quick Start
Use rb:n1-check to analyze the specified path or feature for N+1 queries, explain the cause, and suggest precise preload or eager loading fixes.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: rb:n1-check Download link: https://github.com/slbug/claude-ruby-grape-rails/archive/main.zip#rb-n1-check 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 471,000+ vetted skills library on demand.