Detects and fixes N+1 database queries using eager loading, batching, or DataLoader. Use when list endpoints are slow or query counts scale with result size.
The N+1 pattern issues one query to fetch a list, then one more query per row to fetch a relation: 1 + N round trips where 2 would do. Each query looks fast in isolation, so the plan never flags it; the cost is the hundreds of network round trips the loop hides. It is the most common reason a list page crawls.
ActiveRecord log, Django django-debug-toolbar, Hibernate
show_sql, Prisma log: ['query']) and load one realistic page. If the
count grows with the number of rows returned, you have N+1.order.customer.name for each order in a
list. The first query fetched orders; each .customer fires its own.includes(:customer), Django
select_related/prefetch_related, SQLAlchemy selectinload, Prisma
include. This turns 1 + N into 1 or 2 queries, using a join or a single
WHERE id IN (...).IN query per batch.
In GraphQL, a per-request DataLoader coalesces the individual field reads
into one keyed batch and caches within the request.IN query over a cartesian join when the fan-out is
wide.assert_queries(2), django-assert-num-queries) so the next lazy access
inside a loop fails CI instead of shipping.This targets access-pattern round trips, not slow individual queries; a single query that is slow belongs to sql-optimization. When the batched query itself is expensive, precomputation via materialized-views or a read cache may be the better lever.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job