n-plus-one-query-testing

n-plus-one-query-testing is a skill for Codex from eighteendreamer/Ai_Test_Agent. It costs 55 tokens per session (335 once invoked), scanned A, original, no licence file.

A testing and review method for finding N+1 database queries. An N+1 problem happens when code makes one query for a list and then an extra query for each item.

In plain words
What is it for?
Use it in integration, performance, or API tests and during code review to examine query counts, data sizes, call chains, and ORM loading.
Why use it?
It helps detect extra database work and performance slowdowns that may appear only as the amount of data grows.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it in integration, performance, or API tests and during code review to examine query counts, data sizes, call chains, and ORM loading.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eighteendreamer/ai_test_agent/n-plus-one-query-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eighteendreamer/Ai_Test_Agent --skill n-plus-one-query-testing
Clone the repo
git clone --depth 1 https://github.com/eighteendreamer/Ai_Test_Agent

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for n-plus-one-query-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/eighteendreamer/ai_test_agent/n-plus-one-query-testing/github.svg)](https://agentmods.dev/skills/eighteendreamer/ai_test_agent/n-plus-one-query-testing)
Your own site
<a href="https://agentmods.dev/skills/eighteendreamer/ai_test_agent/n-plus-one-query-testing"><img src="https://agentmods.dev/badge/skills/eighteendreamer/ai_test_agent/n-plus-one-query-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for n-plus-one-query-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/eighteendreamer/ai_test_agent/n-plus-one-query-testing"><img src="https://agentmods.dev/badge/skills/eighteendreamer/ai_test_agent/n-plus-one-query-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00335
Opus 5.5 $0.00022 $0.00134
Sonnet 5.5 $0.00011 $0.00067
Haiku 4.5 $0.00006 $0.00034

Measured 2mo ago against content hash 9b0379167326, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

n-plus-one-query-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Enterprise_AI_QA_Agent/Agent_Server/src/SKILLS/n-plus-one-query-testing/SKILL.md · 28 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 28 lines · 55 tokens per session scan A 9b0379167326

Subscribe to this mod's changes

n-plus-one-query-testing is a skill published in the GitHub repository eighteendreamer/Ai_Test_Agent (49 stars, last pushed 5d ago), with no licence file. It adds 55 tokens to every session and 335 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

reproduce-bug

Reproduce a reported bug in googleapis/mcp-toolbox and decide whether it is real, delivering an evidence-backed verdict: confirmed, already fixed, misconfiguration, client-side, works as intended, not reproducible, or blocked. Use whenever a maintainer asks you to reproduce, verify, confirm, or investigate a bug…

googleapis/mcp-toolbox · 130 tokens

azure-cosmos-db-py

Build Azure Cosmos DB NoSQL services with Python/FastAPI following production-grade patterns. Use when implementing database client setup with dual auth (DefaultAzureCredential + emulator), service layer classes with CRUD operations, partition key strategies, parameterized queries, or TDD patterns for Cosmos. Triggers…

microsoft/skills · 96 tokens

Drizzle ORM Testing

Testing patterns for Drizzle ORM covering migration testing, query builder testing, transaction testing, and database integration testing with PostgreSQL, SQLite, and MySQL.

PramodDutta/qaskills · 36 tokens

finance-weekly-outlook

Generate a source-backed weekly financial trading outlook from daily-finance, finance-core-analysis, and finance-explosive-article outputs plus fresh authoritative market data. Use when the user asks for future-one-week market outlook, weekly bullish/bearish sectors, stock picks, China A-share and US stock coverage…

digoal/blog · 122 tokens

postgres-commit-history-article

A workflow for comparing PostgreSQL source-code changes between two Git commits and, when useful, writing a Chinese Markdown article about them. PostgreSQL is a database system, and a commit is a saved change in a Git repository.

digoal/blog · 127 tokens