optimizing-performance

Profile applications to identify and resolve performance bottlenecks.

Updated May 18, 2026
One-click install
npx skills add https://github.com/bbara04/openchamber-complete --skill optimizing-performance-bbara04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimizing-performance
Source: https://github.com/bbara04/openchamber-complete/tree/main/opencode-config/skill/optimizing-performance
Command: npx skills add https://github.com/bbara04/openchamber-complete --skill optimizing-performance-bbara04

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you diagnose why an application, database, or frontend is slow and guides you to systematically improve performance instead of guessing.

Core Features & Use Cases

  • Profiling to locate hotspots: CPU, memory, I/O, and database profiling workflows to pinpoint where time and resources are spent.
  • Bottleneck pattern detection: identify common issues like N+1 queries, unbounded operations, synchronous blocking, and excessive allocations.
  • Targeted optimization playbook: concrete techniques for database tuning (indexes, EXPLAIN), caching strategies, memory optimization, and frontend/API performance improvements.

Use case example: When p95 API latency rises after a new feature, use the profiling workflow to confirm whether the bottleneck is slow queries, blocking I/O, or inefficient allocation patterns, then apply the smallest safe change and verify with measurements.

Quick Start

Ask an AI assistant to optimize your system performance by creating a measurement-first profiling plan, identifying the most likely bottleneck category from your symptoms, and recommending one concrete change to test next.

Frequently Asked Questions about optimizing-performance

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

FAQPage Schema
How do I find the cause of high API latency using performance profiling?

Performance profiling pinpoints API latency causes by measuring CPU usage, memory pressure, and query latency to locate hotspots. You identify whether slow queries, blocking I/O, or inefficient allocations cause the degradation, then apply targeted optimizations and verify with re-measurement.

What is the best way to resolve N+1 queries and slow database response times?

Resolving N+1 queries and slow database response times requires bottleneck pattern detection followed by database tuning. You use profiling workflows and EXPLAIN analysis to identify unbounded operations, then apply targeted indexing strategies to reduce query latency under real workloads.

How do I optimize frontend performance when memory usage and response times degrade?

Optimizing frontend performance under memory pressure involves profiling workloads to locate excessive allocations and synchronous blocking. You select optimization techniques mapped to these bottleneck patterns, implement the smallest safe change, and confirm improvements through re-measurement against defined targets.

Does load testing help identify backend service bottlenecks before production deployment?

Load testing identifies backend service bottlenecks by simulating real usage to expose CPU usage spikes, memory pressure, and degraded response times. It provides the measurement-first baseline required to locate hotspots via profiling and apply targeted optimizations before deployment.

When should I apply caching strategies instead of database indexing for performance optimization?

Apply caching strategies when profiling indicates repeated I/O operations or synchronous blocking are the primary bottlenecks, whereas database indexing targets slow query latency. Profiling hotspot identification determines whether caching or indexing best resolves the specific performance degradation pattern.