optimize

Diagnose and fix UI performance issues across loading, rendering, animations, images, and bundle size.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/DanialHaseeb/dotfiles --skill optimize-danialhaseeb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/DanialHaseeb/dotfiles/tree/main/codex/skills/optimize
Command: npx skills add https://github.com/DanialHaseeb/dotfiles --skill optimize-danialhaseeb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies, diagnoses, and remedies UI performance problems that cause slow page loads, janky animations, large bundles, and poor user-perceived responsiveness so applications feel faster and more reliable.

Core Features & Use Cases

  • Measurement & Diagnosis: Collect Core Web Vitals, Lighthouse scores, bundle size, runtime CPU/memory, and network waterfalls to pinpoint the biggest user-facing bottlenecks.
  • Targeted Remediations: Recommend actionable fixes for images, JavaScript bundling and code-splitting, CSS optimization, font loading, rendering and animation improvements, and network strategies like preloading and CDN usage.
  • Verification & Monitoring: Validate improvements with before/after metrics, real-device testing, and monitoring tools to ensure regressions are avoided and gains persist.
  • Use Case: For a retail site's slow homepage, use this Skill to reduce LCP by optimizing hero images, split and lazy-load noncritical scripts, and eliminate layout shifts to improve conversions on mobile.

Quick Start

Analyze https://example.com and produce a prioritized optimization plan with concrete fixes to improve LCP, TTI, CLS, and bundle size, including measurement steps and verification tests.

Frequently Asked Questions about optimize

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

FAQPage Schema
How do I diagnose and fix slow web page loading and janky rendering?

To fix slow web page loading and janky rendering, collect Core Web Vitals, Lighthouse scores, and bundle size metrics to pinpoint bottlenecks. Then apply targeted remediations like hero image optimization, code-splitting, and CSS minification to improve loading and runtime interactivity.

What is the best way to reduce LCP and improve Core Web Vitals on mobile?

The best way to reduce LCP and improve Core Web Vitals on mobile is to optimize hero images, split and lazy-load noncritical scripts, and eliminate layout shifts. This process directly targets the largest user-facing bottlenecks to boost perceived responsiveness.

How do I identify what is causing large JavaScript bundle size?

To identify what is causing large JavaScript bundle size, analyze your application using bundle analyzers to inspect network waterfalls and runtime CPU usage. This diagnosis isolates heavy modules and noncritical scripts that require code-splitting to reduce the overall payload.

Can I use this approach to optimize both initial page load and animation smoothness?

Yes, you can use this approach to optimize both initial page load and animation smoothness. It diagnoses UI performance issues across loading, rendering, and animations, providing actionable fixes for font loading, CSS optimization, and rendering improvements for hybrid applications.

How do I verify that web performance optimizations actually work?

To verify that web performance optimizations work, validate improvements using before/after metrics, real-device testing, and monitoring tools. This ensures the LCP, TTI, and CLS gains persist over time and prevents future regressions across your web application.