query-optimizer

Analyze Prisma queries and recommend indexes for HR-IMS applications.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/Arnutt-N/hr-ims --skill query-optimizer-arnutt-n
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query-optimizer
Source: https://github.com/Arnutt-N/hr-ims/tree/main/.claude/skills/query-optimizer
Command: npx skills add https://github.com/Arnutt-N/hr-ims --skill query-optimizer-arnutt-n

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Improve database performance for Prisma-powered HR-IMS apps by automatically analyzing queries, recommending indexes, and reducing N+1 and slow queries.

Core Features & Use Cases

  • Query Analyzer: automatically analyzes queries and surfaces bottlenecks with actionable suggestions.
  • Index Recommender: generates recommended indexes based on observed patterns to speed up lookups.
  • Prisma Optimization: provides a paginated/batched query builder and caching strategies to minimize round-trips.

Quick Start

Run the optimizer against your Prisma setup to start analyzing queries and applying index recommendations.

Frequently Asked Questions about query-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Prisma queries experiencing slow performance in my application?

Prisma query optimization is achieved by automatically analyzing queries to surface bottlenecks, recommending database indexes, and providing batch-loading enhancements to reduce N+1 issues and minimize database round-trips.

What is the best way to fix N+1 query problems in a Prisma ORM setup?

Fixing N+1 query problems in a Prisma setup involves using a paginated and batched query builder. This approach groups related data requests together, minimizing individual database round-trips and significantly improving application speed.

How do I get index recommendations to speed up Prisma database lookups?

Index recommendations are generated by analyzing observed query patterns in your Prisma setup. The optimizer surfaces actionable suggestions to create specific database indexes that speed up data lookups and improve overall performance.

Can I use this query optimizer for an HR-IMS application built with Prisma?

Yes, the query optimizer specifically targets HR-IMS applications using Prisma. It safely integrates with your existing Prisma setup to analyze queries, suggest indexes, and apply pagination enhancements without disrupting current workflows.

Why does my Prisma pagination feel slow and how can I improve its caching strategy?

Prisma pagination feels slow due to inefficient data fetching and lack of caching. You can improve it by applying a paginated query builder with integrated caching strategies to minimize database round-trips and speed up data retrieval.

When should I analyze my Prisma queries for performance bottlenecks?

You should analyze Prisma queries for performance bottlenecks when your application experiences slow database responses or high latency. Automatic analysis surfaces hidden inefficiencies and provides actionable suggestions for immediate optimization.