n-plus-one-guard

Installation
SKILL.md

N+1 Query Guard

Guardrail against N+1 and against multiple redundant queries/calls in the same HTTP request — language-agnostic, with sharp playbooks for the most common stacks. The goal isn't just "find today's N+1": it's to detect with a tool (not by eye) and install a per-endpoint query budget that fails CI when someone reintroduces the problem.

When to activate

  • Reviewing an endpoint/handler/resolver that iterates over a collection and accesses a relation (or does I/O) per item.
  • Latency grows linearly with payload size (10 items = 11 queries, 100 = 101).
  • Before merging code that touches the ORM, serializers, or GraphQL resolvers.
  • When building the test suite for a new route (install the budget from the start).

The mental model

Installs
3
First Seen
Aug 25, 2026