performance-optimization

Diagnose performance bottlenecks in API endpoints, database queries, and frontend rendering.

7|1|Updated Jun 17, 2021
One-click install
npx skills add https://github.com/duc01226/EasyPlatform --skill performance-optimization-duc01226
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/arch-performance-optimization
Command: npx skills add https://github.com/duc01226/EasyPlatform --skill performance-optimization-duc01226

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps identify and fix performance bottlenecks across database, API, and frontend layers with concrete optimization patterns.

Core Features & Use Cases

  • Bottleneck detection, measurement, and tuning
  • Database, API, and frontend optimization patterns
  • Practical examples and micro-benchmarks

Quick Start

Run a baseline performance audit using the Pattern guide to identify the top bottleneck and propose improvements.

Frequently Asked Questions about performance-optimization

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

FAQPage Schema
How do I identify performance bottlenecks in my API and database?

Performance bottlenecks are typically found in API response times, database query inefficiencies (including N+1 problems), and memory usage. Measure baseline metrics across your database, API endpoints, and frontend to pinpoint which layer is slowest, then apply targeted optimization patterns to that layer.

What's the best way to benchmark and measure API and database performance?

Establish baseline metrics before optimization by measuring API response times, query execution speeds, and memory consumption. Compare against performance thresholds to determine improvement targets, then remeasure after applying optimizations to validate gains.

How do I optimize slow database queries and fix N+1 problems?

Database optimization involves identifying inefficient queries and N+1 patterns where multiple queries run instead of one. Use profiling to locate these issues, then apply proven patterns like query batching, eager loading, and indexing to reduce query count and execution time.

Can I optimize frontend bundle size and rendering performance?

Yes. Frontend optimization addresses large bundle sizes and rendering inefficiencies. Measure bundle weight and render times, then apply patterns like code splitting, lazy loading, and resource optimization to reduce frontend load and improve responsiveness.

What should I check before starting performance optimization?

Run a pre-flight checklist to confirm your environment is ready, then establish baseline metrics across database, API, and frontend layers. Identify which bottleneck has the highest impact before investing optimization effort.

Do I need specialized tools to profile and measure performance bottlenecks?

Performance profiling uses measurement approaches to detect bottlenecks in API responses, queries, and frontend rendering. The Skill provides concrete patterns and micro-benchmarks to guide your choice of measurement method based on your tech stack.