performance-optimization

Profile CPU and memory usage to identify and fix performance bottlenecks.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/ps-carvalho/cortex-agents --skill performance-optimization-ps-carvalho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/ps-carvalho/cortex-agents/tree/main/.opencode/skills/performance-optimization
Command: npx skills add https://github.com/ps-carvalho/cortex-agents --skill performance-optimization-ps-carvalho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Profiling, optimization, and resource management are essential to make software fast, responsive, and cost-efficient across the stack.

Core Features & Use Cases

  • CPU profiling to identify hot functions and bottlenecks.
  • Memory optimization via leak detection, object pooling, and efficient data structures.
  • Caching strategies to reduce recomputation and latency across services.
  • Web performance tuning, including rendering improvements and resource optimization.
  • Real-world use: given a slow API, identify the top bottleneck, apply a targeted optimization, and verify improvements.

Quick Start

Start by profiling your application to locate bottlenecks, then apply targeted optimizations and re-profile to verify 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 a slow API?

To identify performance bottlenecks in a slow API, use CPU profiling to locate hot functions and apply targeted optimizations. Re-profile after changes to verify speed improvements and enforce measurable acceptance criteria.

What is the best way to reduce latency with caching strategies?

The best way to reduce latency with caching strategies is to store computed results and serve subsequent requests directly from cache. This reduces recomputation across services and significantly improves application responsiveness.

How do I improve web performance and rendering speed?

Improve web performance by applying rendering optimizations and resource tuning techniques. Profile the application to locate bottlenecks, optimize rendering paths, and re-profile to verify measurable speed improvements.

Do I need standard profiling tools to optimize build pipelines?

Yes, you need standard profiling and benchmarking tools to optimize build pipelines. These tools measure CPU usage and build times before and after applying targeted optimizations, ensuring improvements meet measurable acceptance criteria.

When should I apply object pooling for memory management?

Apply object pooling for memory management when profiling reveals frequent allocations causing bottlenecks. Pooling reuses objects instead of instantiating new ones, reducing memory overhead and improving resource efficiency.