performance-optimizer

Identify and resolve performance bottlenecks across frontend, backend, and database layers.

Updated Dec 20, 2025
One-click install
npx skills add https://github.com/larsnyg/claude-code-template --skill performance-optimizer-larsnyg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimizer
Source: https://github.com/larsnyg/claude-code-template/tree/main/.claude/skills/performance-optimizer
Command: npx skills add https://github.com/larsnyg/claude-code-template --skill performance-optimizer-larsnyg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you identify and fix performance bottlenecks across frontend, backend, and database layers. It emphasizes measurement-first approaches to avoid wasted effort, reduces page load times, and improves user experience.

Core Features & Use Cases

  • Performance analysis workflow: measure, identify bottlenecks, optimize high-impact areas, and re-measure.
  • Frontend optimization: bundle size reduction, React performance improvements, image optimization, and critical CSS strategies.
  • Backend optimization: query optimization, caching strategies (Redis or in-memory), connection pooling, and API efficiency.
  • Use Case: imagine a slow page; use this Skill to profile, apply targeted optimizations, and validate improvements with measurable metrics.

Quick Start

Run profiling on your project to collect data and feed it to Claude. Then ask for actionable optimizations and implement the recommended changes. For example, "Analyze the startup time of our Next.js app and suggest optimizations to reduce first contentful paint."

Frequently Asked Questions about performance-optimizer

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

FAQPage Schema
How do I identify performance bottlenecks in my application?

Identify performance bottlenecks by profiling your application across frontend, backend, and database layers to collect measurement data. Use profiling tools to pinpoint high-impact areas like slow queries, large bundle sizes, or inefficient rendering, then prioritize optimization efforts on the areas with the greatest impact on load times and responsiveness.

What's the best way to reduce bundle size and improve frontend performance?

Reduce bundle size using code splitting, tree shaking, and lazy loading to decrease initial load times and improve first contentful paint. Optimize images, implement critical CSS strategies, and apply React performance improvements like memoization to enhance responsiveness and reduce resource usage.

How do I optimize backend performance and database queries?

Optimize backend performance by applying query optimization techniques, implementing caching strategies with Redis or in-memory caches, using connection pooling, and improving API efficiency. These techniques reduce latency and resource consumption across your backend and database layers.

Do I need to measure performance before and after optimizations?

Yes, measure performance first to establish baseline metrics, then optimize high-impact areas, and measure again to verify improvements. This measurement-first approach ensures you focus effort on changes with the greatest measurable impact on load times and user experience.

Can I use performance optimization techniques across different tech stacks?

Performance optimization principles apply across frontend, backend, and database layers regardless of your specific tech stack. Whether you're using Next.js, traditional backend frameworks, or various databases, profiling and applying targeted optimizations like caching, indexing, and refactoring yield measurable gains.

What techniques help reduce page load time and improve responsiveness?

Reduce page load time through code splitting, lazy loading, image optimization, and caching strategies. Improve responsiveness by addressing database indexing, implementing memoization, optimizing queries, and refactoring slow code paths to ensure faster user interactions.