performance

Diagnose and optimize slow endpoints with profiling, caching, and query tuning.

186|15|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/kid-sid/claude-spellbook --skill performance-kid-sid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance
Source: https://github.com/kid-sid/claude-spellbook/tree/main/skills/performance
Command: npx skills add https://github.com/kid-sid/claude-spellbook --skill performance-kid-sid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnose and optimize the performance of slow endpoints and services.

Core Features & Use Cases

  • Profiling guidance for CPU, memory, and I/O bottlenecks.
  • Caching strategy selection (in-process, Redis, HTTP) to reduce latency.
  • N+1 query detection and fixes with ORM-level techniques and query batching.
  • Establishing latency budgets and per-endpoint performance targets.

Quick Start

Run a quick profiling pass on your API and apply caching and query optimizations to meet latency budgets.

Frequently Asked Questions about performance

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

FAQPage Schema
How do I fix N+1 query problems in my API endpoints?

Fix N+1 query problems by applying ORM-level eager loading and query batching techniques. This Skill guides you through detecting redundant database queries and implementing batching patterns to eliminate the latency overhead caused by iterative data fetching.

What is the best way to profile CPU and memory bottlenecks in slow services?

Profile CPU, memory, and I/O bottlenecks by running targeted diagnostic passes on your services. This Skill provides concrete tooling guidance and steps to identify execution hotspots and resource exhaustion points that degrade endpoint performance.

How do I establish latency budgets for my APIs?

Establish latency budgets by defining per-endpoint performance targets and allocating time limits across service operations. This Skill helps you set concrete performance thresholds to ensure your APIs meet strict response time requirements before implementing optimizations.

When should I use in-process caching versus Redis to reduce latency?

Choose between in-process, Redis, or HTTP caching by evaluating your scalability needs and data consistency requirements. This Skill assists in matching the appropriate caching strategy to your specific service architecture to maximize latency reduction.

How do I use async patterns to optimize slow I/O operations in my services?

Use async patterns to optimize slow I/O operations by parallelizing non-blocking tasks within your service execution flow. This Skill provides best practices for implementing asynchronous workflows to prevent I/O bottlenecks from stalling endpoint response times.