n-plus-one-hint
by Plagemes · ★ 8 · updated 15 Oct 2026
Spots database queries inside loops, the classic N+1 problem, as Claude writes them.
Install
/plugin marketplace add Plagemes/claude-mods/plugin install n-plus-one-hint@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.starttool.call- API calls
$.clock.after$.fs.read$.mods.hello$.mods.mode$.mods.notify$.mods.publish$.mods.registerTab$.ui.log$.ui.toast- Can see
/"^(?:Edit|MultiEdit|Write)$"/ calls- Reach
- level 1 of 3 reads filesdrawsother: $.mods.helloother: $.mods.modeother: $.mods.notifyother: $.mods.publishother: $.mods.registerTab
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Plagemes/claude-mods
- Path in repo
mods/n-plus-one-hint- Source commit
e9815cethe exact code the scan read- Author
- @Plagemes
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from Plagemes/claude-mods
net-retry
Plagemes/claude-mods
Automatically retries commands that failed because of a temporary network error.
next-guard
Plagemes/claude-mods
Flags missing or needless "use client" and server-only imports leaking into client components in Next.js.
night-shift
Plagemes/claude-mods
Runs your queued tasks at a scheduled time, like overnight, and leaves you a report.
no-any
Plagemes/claude-mods
Flags new any types, @ts-ignore and eslint-disable comments as Claude writes them.
no-skip-tests
Plagemes/claude-mods
Blocks Claude from silencing tests with .skip, .only, xit or skip markers.
no-upload
Plagemes/claude-mods
Blocks commands that upload files to external services like pastebins and file-sharing sites.
node-version-check
Plagemes/claude-mods
Warns when your Node version doesn't match .nvmrc, .node-version or package.json engines.
offline-mode
Plagemes/claude-mods
/offline blocks every network call — fetches, curl, installs, git push — until you turn it back on.
onboarding-tour
Plagemes/claude-mods
/tour walks a newcomer through the repository step by step.
openapi-sync
Plagemes/claude-mods
Warns when your API routes change but openapi.yaml doesn't.
outdated-deps
Plagemes/claude-mods
/outdated shows stale dependencies and how risky each upgrade is.
output-trimmer
Plagemes/claude-mods
Trims huge command outputs to head, tail and error lines before they flood the context.
Related mods
Other mods in Toasts, close to this one by stars.