performance-optimization

Diagnose and fix frontend and backend performance bottlenecks using measurement-driven profiling workflows.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/JacobThree/zero-bloat-mcp-stack --skill performance-optimization-jacobthree
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/JacobThree/zero-bloat-mcp-stack/tree/main/ai_blueprints/agent-skills/skills/performance-optimization
Command: npx skills add https://github.com/JacobThree/zero-bloat-mcp-stack --skill performance-optimization-jacobthree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Slow applications and unmeasured optimization attempts waste engineering effort. This Skill enforces a measure-first workflow that identifies real bottlenecks in Core Web Vitals, database queries, bundle sizes, and rendering before any code changes are made. ## Core Features & Use Cases - Measurement-First Workflow: Guides profiling with Lighthouse, Chrome DevTools, web-vitals RUM data, and backend timing before optimizing. - Anti-Pattern Fixes: Provides concrete code fixes for N+1 queries, unbounded data fetching, missing image optimization, unnecessary React re-renders, large bundles, and missing caching. - Performance Budgets & CI Enforcement: Defines budgets for bundle size, API latency, and Lighthouse scores with bundlesize and Lighthouse CI checks. - Use Case: When users report a slow dashboard, use this Skill to profile the network waterfall, discover N+1 database queries, fix them with a single joined query, and verify the improvement with before-and-after measurements. ## Quick Start Use the performance-optimization skill to profile my app's slow page load and fix the identified bottlenecks.

Frequently Asked Questions about performance-optimization

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

FAQPage Schema
How do I fix slow page load times in my web app?▼

Start by measuring with Lighthouse and the DevTools network waterfall to identify whether the bottleneck is bundle size, server response time, or render-blocking resources. Then apply targeted fixes like code splitting, image optimization, or caching, and measure again to confirm improvement.

How to fix N+1 queries in a backend API?▼

Replace per-record queries with a single query using joins or ORM include statements, such as Prisma's findMany with include. Check your database query log to confirm the query count drops from N+1 to one.

What are good Core Web Vitals thresholds?▼

Good thresholds are LCP at or under 2.5 seconds, INP at or under 200 milliseconds, and CLS at or under 0.1. Values beyond 4.0 seconds LCP, 500 milliseconds INP, or 0.25 CLS are considered poor.

When should I not optimize performance?▼

Do not optimize before you have profiling evidence of an actual problem. Premature optimization adds complexity that costs more than the performance it gains, so always measure first and fix only what data proves matters.

How do I enforce performance budgets in CI?▼

Use bundlesize to fail builds when JavaScript exceeds limits like 200KB gzipped, and run Lighthouse CI with lhci autorun to check performance scores on every commit. Set explicit budgets for CSS, images, fonts, and API response times.