Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Performance Optimization Frameworks

ASecurity

Systematically maximize efficiency, improve speed, and enhance responsiveness through profiling, performance budgets, bottleneck identification, and iterative optimization - apply measurement-driven approaches to reduce latency, increase throughput, and optimize resource utilization in front-end and back-end systems

22 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentjavascriptpythongojavareactnodetestingapidatabasebackend

Works with

api

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add lev-os/agents --skill performance-optimization-frameworks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance Optimization Frameworks?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Performance Optimization Frameworks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lev-os-performance-optimization-frameworks/badge)](https://www.skillsdirectory.com/skills/lev-os-performance-optimization-frameworks)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: performance-optimization-frameworks
description: Systematically maximize efficiency, improve speed, and enhance responsiveness through profiling, performance budgets, bottleneck identification, and iterative optimization - apply measurement-driven approaches to reduce latency, increase throughput, and optimize resource utilization in front-end and back-end systems
---

# Performance Optimization Frameworks

## Overview

Performance optimization frameworks provide structured methodologies for identifying bottlenecks, setting measurable targets, and systematically improving application speed and responsiveness. Rather than ad-hoc tuning, these frameworks emphasize measurement-first approaches: establish baselines, set performance budgets, profile to find bottlenecks, optimize iteratively, and monitor continuously.

Key frameworks include RAIL (Response, Animation, Idle, Load) for user-centric web performance, Core Web Vitals (LCP, FID, CLS) for measurable user experience metrics, and performance budgeting for constraint-driven development. The methodology spans front-end (bundle optimization, lazy loading, caching) and back-end (horizontal scaling, database optimization, asynchronous processing) with emphasis on real-world user impact over synthetic benchmarks.

## When to Use

- Application experiencing slow load times, sluggish interactions, or poor responsiveness
- Setting performance targets for new features before implementation begins
- Conducting performance audits to identify regression sources
- Prioritizing optimization efforts when resources are limited
- Establishing performance monitoring and alerting systems
- Justifying infrastructure investments with data-driven analysis
- Preparing for traffic spikes or scaling challenges

## The Process

### Step 1: Establish Performance Baseline

Measure current performance across key metrics before any optimization. Use real-world data from production users, not just synthetic tests.

**Front-end metrics:** Core Web Vitals (Largest Contentful Paint <2.5s, First Input Delay <100ms, Cumulative Layout Shift <0.1), Time to Interactive, bundle size, number of requests.

**Back-end metrics:** API response times (p50, p95, p99), throughput (requests/second), database query times, cache hit rates, error rates.

**Tools:** Lighthouse, WebPageTest, Chrome DevTools, New Relic, DataDog, application performance monitoring (APM) solutions.

**Output:** Baseline report showing current performance across user segments, geographies, devices, and connection speeds.

### Step 2: Define Performance Budgets

Set measurable limits for each metric that align with business goals and user experience requirements. Budgets create constraints that prevent performance regression.

**Budget types:** Total bundle size (<200KB initial JavaScript), max load time (<3s on 3G), max API response time (<500ms p95), image size limits (<500KB per page).

**Examples:** Etsy enforces 170KB first-party JavaScript budget. BBC enforces 400ms time-to-interactive on feature phones. Netflix allocates specific budgets per UI component.

**Implementation:** Fail CI/CD builds when budgets are exceeded. Use webpack-bundle-analyzer, bundlesize, Lighthouse CI, or performance-budget-plugin.

**Trade-offs:** Balance feature richness against performance constraints. Make explicit decisions when exceeding budgets.

### Step 3: Profile to Identify Bottlenecks

Use profiling tools to find specific hot spots consuming disproportionate resources. Focus optimization efforts on the 20% of code causing 80% of slowness.

**Front-end profiling:** Chrome DevTools Performance tab (CPU profile, flame graphs), React DevTools Profiler, Lighthouse audits. Look for long tasks blocking main thread (>50ms), excessive re-renders, large JavaScript bundles, render-blocking resources.

**Back-end profiling:** Application-level profiling (Go pprof, Python cProfile, Node.js --inspect), database query analysis (EXPLAIN, slow query logs), distributed tracing (Jaeger, Zipkin). Identify N+1 queries, missing indexes, inefficient algorithms.

**Output:** Ranked list of bottlenecks by impact. Example: "Product list component re-renders 47 times per page load, consuming 1.2s of main thread."

### Step 4: Apply Targeted Optimizations

Implement specific fixes for identified bottlenecks using proven optimization patterns. Optimize highest-impact areas first.

**Front-end techniques:** Code splitting (load features on-demand), tree shaking (remove unused code), lazy loading (images, routes, components), image optimization (WebP/AVIF formats, responsive images, CDN), caching strategies (service workers, HTTP caching), minimize JavaScript execution (debounce, throttle, virtualize long lists).

**Back-end techniques:** Horizontal scaling (add instances vs. bigger servers), multi-level caching (CDN → application → database), database optimization (indexing, query tuning, connection pooling, denormalization when needed), asynchronous processing (offload heavy work to background jobs), CDN for static assets.

**Measure impact:** Re-run profiling after each optimization. Quantify improvement (e.g., "Lazy loading reduced bundle size from 450KB to 180KB, improving LCP by 1.8s").

### Step 5: Monitor and Maintain Performance

Establish continuous monitoring to catch regressions early and track performance over time. Automate alerts for budget violations.

**Real User Monitoring (RUM):** Collect performance metrics from actual users in production. Track Core Web Vitals, page load times, API latencies across user segments.

**Synthetic monitoring:** Run automated tests from multiple locations/devices (Lighthouse CI, WebPageTest API). Set up scheduled checks and alert on regressions.

**CI/CD integration:** Fail builds on performance budget violations. Review bundle size changes in pull requests (bundlesize bot, RelativeCI).

**Regular audits:** Schedule quarterly deep-dive performance reviews. Netflix deploys thousands of times daily using CI/CD with automated performance gates.

## Example Application

**Situation:** E-commerce site experiencing 35% cart abandonment, slow product pages (6.5s load), poor mobile performance.

**Step 1 - Baseline:** Core Web Vitals failing - LCP 6.5s, FID 320ms, CLS 0.42. Lighthouse score 31/100. Mobile users on 3G waiting 12s for interactive.

**Step 2 - Budgets:** Set targets - LCP <2.5s, FID <100ms, CLS <0.1, initial bundle <200KB, product page load <3s on 3G.

**Step 3 - Profile:** Bottlenecks identified - 850KB unoptimized images, 380KB JavaScript bundle (all loaded upfront), 89 separate API calls per page load, unoptimized database queries (N+1 for product reviews).

**Step 4 - Optimize:** (1) Image optimization - converted to WebP with lazy loading (850KB → 210KB), (2) code splitting - split bundle into chunks (380KB upfront → 140KB initial + lazy load), (3) API consolidation - reduced 89 calls to 4 using GraphQL, (4) database - added indexes and solved N+1 with query batching.

**Step 5 - Monitor:** Lighthouse CI in pipeline, bundle size bot on PRs, RUM dashboard tracking Core Web Vitals by region/device, alerts for p95 > budget thresholds.

**Outcome:** LCP 2.1s (68% improvement), FID 85ms (73% improvement), CLS 0.08 (81% improvement). Cart abandonment dropped from 35% to 22%. Mobile conversion increased 28%. Load time under budget on 3G connections.

## Anti-Patterns

- ❌ Optimizing without measuring - guessing at bottlenecks wastes effort on low-impact changes
- ❌ Premature optimization - optimizing before establishing performance is actually a problem
- ❌ Focusing solely on synthetic metrics - Lighthouse score doesn't reflect real user experience
- ❌ Ignoring mobile/slow connections - testing only on fast office WiFi misses majority of users
- ❌ No performance budgets - allowing gradual regression as features accumulate
- ❌ Optimizing in isolation - front-end optimizations can't fix slow backend APIs
- ❌ One-time optimization sprints - performance requires ongoing monitoring and maintenance

## Related

- core-web-vitals (specific metrics framework)
- rail-model (user-centric performance model)
- caching-strategies (optimization technique)
- horizontal-scaling (backend optimization pattern)
- code-splitting (front-end optimization technique)
- database-optimization (backend performance)
- monitoring-observability (continuous performance tracking)

Attribution

lev-oslev-os
View sourceMore from lev-os →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →