optimize

Diagnose and fix UI performance issues in React and Next.js applications.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/OmOc3/physica --skill optimize-omoc3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/OmOc3/physica/tree/main/.codex/skills/optimize
Command: npx skills add https://github.com/OmOc3/physica --skill optimize-omoc3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnoses and fixes front-end UI performance problems that cause slow loads, janky rendering, poor animation smoothness, oversized bundles, and high resource use so users experience faster, more responsive interfaces.

Core Features & Use Cases

  • Performance measurement & diagnosis: Collect Core Web Vitals, Lighthouse scores, DevTools traces, and runtime metrics to pinpoint LCP, INP/FID, CLS, TTI, and long tasks.
  • Targeted optimizations: Provide practical fixes such as image format and sizing recommendations, JavaScript and CSS code-splitting, font loading improvements, and rendering/animation changes that reduce paint and layout thrashing.
  • Use Case: Audit a React/Next.js app with slow initial load on mobile, identify the top three costly assets and long tasks, and deliver prioritized, reversible changes to improve LCP and reduce bundle size.

Quick Start

Analyze the application's performance traces, list the top three measurable bottlenecks with evidence, and recommend prioritized, implementable fixes with estimated impact.

Frequently Asked Questions about optimize

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

FAQPage Schema
How do I diagnose slow initial load and rendering issues in a React or Next.js app?

Diagnose slow initial load and rendering issues by collecting Core Web Vitals, Lighthouse scores, and DevTools traces to pinpoint LCP, INP, CLS, and long tasks causing UI jank. This process identifies the top costly assets and bottlenecks requiring fixes.

What's the best way to reduce JavaScript bundle size and improve LCP on mobile?

The best way to reduce JavaScript bundle size and improve LCP on mobile is by applying code-splitting, optimizing image formats and sizing, and improving font loading strategies. These targeted optimizations minimize expensive assets and speed up rendering.

How do I fix layout thrashing and janky animations in web applications?

Fix layout thrashing and janky animations by implementing rendering and animation changes that reduce paint and layout thrashing. Analyzing runtime metrics and DevTools traces isolates the specific layout shifts and long tasks degrading animation smoothness.

Do I need Lighthouse and DevTools traces to audit front-end UI performance?

Yes, you need Lighthouse and DevTools traces to audit front-end UI performance because they provide the required metrics to pinpoint LCP, INP, CLS, and TTI. Source and build artifacts are also necessary to run bundle analysis and profiling tools.

Can I use this approach for production performance regressions and optimization sprints?

Yes, you can use this approach for production performance regressions and optimization sprints. It diagnoses high resource use and poor animation smoothness, delivering prioritized and reversible changes to fix loading and rendering regressions.