agentleFS
SrejonKhanSrejonKhan/agent-skills/skills/web_performance_optimization/SKILL.md

web_performance_optimization

Skill3 starsChanged 2 months agoMITView on GitHub

Optimize website and web application performance including loading speed, Core Web Vitals, bundle size, caching strategies, and runtime performance.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check bundle sizes and network waterfall

    line 15
  2. Distinctive:

    If coordinating optimization across the entire stack:

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Web Performance Optimization

Help developers optimize website and web application performance to improve user experience, SEO rankings, and conversion rates. This skill provides systematic approaches to measure, analyze, and improve loading speed, runtime performance, and Core Web Vitals metrics.

Workflow

  1. Measure Current Performance:
    • Run Lighthouse audits
    • Measure Core Web Vitals (LCP, FID, CLS)
    • Check bundle sizes and network waterfall
  2. Identify Issues:
    • Large JavaScript bundles or unoptimized images
    • Render-blocking resources
    • Layout shifts or slow server response times
  3. Prioritize Optimizations:
    • Focus on high-impact improvements (critical rendering path, image optimization, code splitting).
  4. Implement Optimizations:
    • Optimize assets, add caching headers, lazy load non-critical resources.
  5. Verify Improvements:
    • Compare before/after metrics and monitor real user metrics.

Core Strategies

  • Images: Convert to WebP/AVIF, implement responsive images, specify dimensions, and use lazy loading.
  • JavaScript: Keep bundles under 200KB. Code split and remove unused dependencies. Delay non-critical JS.
  • CSS: Inline critical CSS, defer the rest, remove unused CSS.
  • Core Web Vitals Guide:
    • LCP (< 2.5s)
    • FID (< 100ms)
    • CLS (< 0.1)

End-to-End Optimization (Advanced)

If coordinating optimization across the entire stack:

  1. Performance Profiling & Observability: Generate flame graphs (CPU) and heap dumps (memory) to identify hot paths. Assess distributed tracing (OpenTelemetry) and APM tool integration.
  2. Database & Backend: Analyze slow query logs, create missing indexes, optimize execution plans, implement query result caching (Redis). Fix N+1 queries. Implement pagination and response compression.
  3. Frontend & CDN/Edge: Code split, tree shake, lazy load. Configure edge caching (CloudFlare/CloudFront), HTTP/2/3, Brotli compression, and WebP/AVIF images.
  4. Mobile & PWA: Implement service workers for offline functionality. Adaptive loading for slow networks. Virtual scrolling for long lists.
  5. Load Testing & Validation: Design realistic load scenarios using k6/Gatling to test normal, peak, and stress levels before deploying optimizations.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.