detect-n-plus-one

Community

Spot N+1 queries across code.

Authoranortham
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill systematically detects N+1 query patterns that occur when code fetches a list and then issues a separate query for each item, causing performance bottlenecks. It helps identify N+1 patterns across languages and suggests batching strategies.

Core Features & Use Cases

  • Semantic search for loop + query patterns across languages
  • Language-specific idiom detection for C#, TypeScript, Python, and Java
  • Execution trace to verify paths leading to per-item queries and propose batch fetching

Quick Start

Run the detect-n-plus-one skill to scan your codebase and surface N+1 patterns, with concrete batching fixes.

Dependency Matrix

Required Modules

None required

Components

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: detect-n-plus-one
Download link: https://github.com/anortham/miller/archive/main.zip#detect-n-plus-one

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