performance-optimization

Measure, profile, and optimize code to reduce load times and resource consumption.

1|Updated Jun 18, 2025
One-click install
npx skills add https://github.com/knopki/dotfiles --skill performance-optimization-knopki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/knopki/dotfiles/tree/main/home/private_dot_config/opencode/skills/performance-optimization
Command: npx skills add https://github.com/knopki/dotfiles --skill performance-optimization-knopki

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses code that is slow, consumes too many resources, or has large file sizes, leading to poor user experience and increased operational costs.

Core Features & Use Cases

  • Performance Measurement: Establishes baseline metrics before optimization.
  • Bottleneck Identification: Uses profiling tools to pinpoint performance issues.
  • Targeted Optimization: Applies specific techniques for frontend, backend, and algorithms.
  • Use Case: A web application's load time is over 5 seconds. This Skill can be used to identify the cause (e.g., large JavaScript bundles, slow database queries) and apply optimizations like code splitting or query indexing to reduce load time significantly.

Quick Start

Use the performance-optimization skill to analyze and improve the load time of the main JavaScript bundle.

Frequently Asked Questions about performance-optimization

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

FAQPage Schema
How do I reduce slow web application load times and large JavaScript bundle sizes?

To reduce slow load times and large bundle sizes, establish baseline performance metrics, use profiling to identify bottlenecks, and apply targeted optimizations like code splitting to reduce resource consumption.

What is the best way to profile code and identify backend performance bottlenecks?

The best way to identify backend performance bottlenecks is through measurement-driven profiling, which systematically pinpoints slow database queries and resource consumption issues before applying targeted improvements.

How do I optimize code efficiency for frontend, backend, and algorithmic performance?

Optimize code efficiency by systematically measuring current performance, profiling to find specific frontend, backend, or algorithmic bottlenecks, and applying targeted improvements to reduce load times and resource consumption.

Do I need baseline metrics before starting code optimization and debugging?

Yes, you need baseline metrics before starting code optimization because this approach requires measurement-driven analysis to verify that applied changes actually reduce load times and resource consumption.

Can I use profiling to fix slow database queries and high resource consumption?

Yes, you can use profiling to fix slow database queries and high resource consumption by pinpointing exact bottlenecks, allowing you to apply targeted improvements like query indexing for better efficiency.