N+1 Query Detection

Community

Detect N+1 query performance issues

Authorcdalsoniii
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill identifies and helps resolve performance bottlenecks caused by N+1 query patterns in GORM database interactions, preventing slow application performance.

Core Features & Use Cases

  • N+1 Pattern Detection: Automatically scans repository and service code for common N+1 query anti-patterns.
  • Preload & Unbounded Query Analysis: Verifies the correct use of Preload or Joins and flags queries without Limit.
  • Severity Assessment & Fix Recommendations: Provides severity ratings and suggests specific GORM patterns for optimization.
  • Use Case: Ensure your application's data retrieval is efficient by automatically flagging and suggesting fixes for inefficient database queries before they impact users.

Quick Start

Run the N+1 Query Detection skill on the repository and service files to identify performance issues.

Dependency Matrix

Required Modules

None required

Components

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: N+1 Query Detection
Download link: https://github.com/cdalsoniii/brightpath-coder/archive/main.zip#n-1-query-detection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.