A comprehensive diagnostic tool to find and fix performance-draining N+1 query patterns in ORM-based applications.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install n-plus-one-detector
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install n-plus-one-detector using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The N+1 Query Detector is an essential utility for Openclaw Skills that targets one of the most common performance issues in modern web development. It provides an automated way to scan codebases for inefficient database access patterns where a single request triggers multiple redundant queries. By analyzing how Object-Relational Mappers (ORMs) interact with loops, this skill helps developers implement best practices such as eager loading, joins, and batch fetching to significantly reduce database load and improve response times.
This tool is particularly valuable for complex applications using frameworks like Django, SQLAlchemy, Prisma, or ActiveRecord. It bridges the gap between static code analysis and runtime profiling, offering actionable insights and code-ready fixes to ensure your application remains scalable and efficient within the Openclaw Skills ecosystem.
To begin using the N+1 Query Detector within Openclaw Skills, ensure your environment is prepared for static analysis by installing ripgrep.
# Install ripgrep (rg) if not already available for static scanning
sudo apt-get install ripgrep
# Execute the detection logic on your source directory
rg "from sqlalchemy|from django\\.db|ActiveRecord|prisma" --stats
No complex configuration is required as the skill automatically detects most popular ORMs and provides framework-specific diagnostic commands.
The N+1 Query Detector organizes its analysis into structured reports for clear prioritization.
| Section | Description |
|---|---|
| Summary | Aggregated stats of files scanned and total patterns identified. |
| Critical Issues | High-priority bottlenecks located in specific files with line numbers. |
| Fix Logic | Recommended code changes like eager loading or batching. |
| Impact Metric | Comparative analysis showing expected query reduction after optimization. |
All metadata regarding detected ORMs and query patterns is preserved to facilitate multi-agent support and automated benchmarking.
Loading
A comprehensive auditing tool that generates a 0-100 health score for any repository based on eight critical engineering dimensions.

A powerful tool to generate, validate, and lint hardened systemd unit files for services, timers, and sockets.

A systematic tool for planning Kubernetes cluster upgrades by identifying API deprecations and generating risk-aware migration runbooks.

An AI-powered skill for designing and executing chaos engineering experiments to verify system resilience and failure recovery.

An automated assistant that provides structured feedback on code quality, security, and performance for pull requests.

A comprehensive auditing tool for Node.js package.json files to ensure security, valid semver, and project best practices.








































