One-click install
npx skills add https://github.com/shobhitsrivastava2023/lexel --skill optimize-shobhitsrivastava2023
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/shobhitsrivastava2023/lexel/tree/main/.agents/skills/optimize
Command: npx skills add https://github.com/shobhitsrivastava2023/lexel --skill optimize-shobhitsrivastava2023

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Improve interface performance across loading speed, rendering, animations, images, and bundle size, making experiences faster and smoother.

Core Features & Use Cases

  • Assess current performance metrics such as Core Web Vitals (LCP, CLS, FID/INP), Time to Interactive, FCP, and bundle size to identify optimization opportunities.
  • Identify bottlenecks across loading, rendering, animations, and network requests, and define targeted improvement plans.
  • Apply comprehensive strategies (image optimization, JavaScript/CSS optimization, font loading, and prudent resource loading) and framework-specific tweaks to deliver faster, smoother interfaces.
  • Use case: a typical dashboard loads a complex set of widgets with heavy images; apply optimization to reduce LCP and TTI.

Quick Start

Identify the top 3 performance bottlenecks in your app and apply the recommended optimizations starting with images, JS, CSS, and critical rendering.

Frequently Asked Questions about optimize

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

FAQPage Schema
How do I improve Core Web Vitals like LCP and INP for my web interface?

Improve Core Web Vitals by first measuring metrics like LCP, CLS, and INP to identify bottlenecks. Apply targeted optimization strategies for images, JavaScript, CSS, and fonts to reduce loading times and improve render performance for smoother experiences.

What is the best way to reduce bundle size and speed up loading for a complex web dashboard?

The best way to reduce bundle size is implementing code-splitting and lazy-loading for heavy resources. Optimize images, JavaScript, and CSS to decrease Time to Interactive and Largest Contentful Paint for complex dashboards with heavy widgets.

How does lazy loading and code splitting affect frontend render performance?

Lazy loading and code splitting improve render performance by deferring non-critical resource loading until needed. This reduces initial bundle size, minimizes main thread blocking, and significantly speeds up Time to Interactive for user interfaces.

Can I use these frontend optimization strategies for both loading speed and animation rendering issues?

Yes, these frontend optimization strategies target both loading speed and animation rendering. They identify bottlenecks across network requests, rendering, and animations, applying framework-specific tweaks to deliver faster and smoother interface experiences.

What are the limitations of optimizing frontend performance without measuring before and after metrics?

Optimizing frontend performance without measuring before and after metrics limits validation. Measuring Core Web Vitals and performance metrics like FCP and TTI is required to accurately identify bottlenecks and validate that optimization strategies delivered improvements.

Do I need to measure network requests and font loading to fix web performance bottlenecks?

Yes, you need to measure network requests and font loading to fix web performance bottlenecks. Assessing these alongside JavaScript and CSS optimization opportunities is required to define targeted improvement plans for loading speed.