performance-audit

Diagnose Lighthouse and Core Web Vitals regressions and map symptoms to measured fix families.

Updated Sep 6, 2026
One-click install
npx skills add https://github.com/malikkotb/shellpluscore --skill performance-audit-malikkotb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-audit
Source: https://github.com/malikkotb/shellpluscore/tree/main/.agents/skills/performance-audit
Command: npx skills add https://github.com/malikkotb/shellpluscore --skill performance-audit-malikkotb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Lighthouse audits produce noisy numbers and misleading leads: stale servers poison scores, simulated LCP hides the real cause, and many apparent fixes break animations or accessibility. This Skill provides a disciplined playbook for running production-build audits, interpreting observed vs simulated metrics, and applying fix families that were verified on real production sites without changing visual output. ## Core Features & Use Cases - Measurement discipline: production-build-only auditing, stale-server detection by port, 3-run medians, simulate vs devtools throttling guidance, and LHR JSON reading (lcp-breakdown, long-tasks, source-map byte attribution). - Fix families for LCP and payload: reveal-animation gating (opacity 0.001 + inert), intro-overlay paint-under, suspending-hook prerender blanking, hidden SSR DOM, RSC-serialized props, per-media-type runtime splitting, near-viewport mounting, and intent-based warming. - Pitfalls and verification: documents fixes that break things (viewport-gated splits causing CLS, CORS-mismatched preloads), red herrings (core-js noModule chunk, chunk-marker greps), hard ceilings (framework floor, lantern floor), and browser-based verification that animations stayed visually identical. - Use Case: A page shows observed LCP of 7.6s because headings render with visibility:hidden until hydration. The playbook identifies the reveal-animation family, applies the opacity 0.001 + inert fix, and re-measures LCP at ~100-300ms with unchanged choreography. ## Quick Start Run a Lighthouse audit on my production build and use the performance-audit playbook to diagnose the LCP and TBT regressions and propose fixes.

Frequently Asked Questions about performance-audit

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

FAQPage Schema
How do I fix a high LCP caused by reveal animations?

Text hidden with visibility:hidden or opacity:0 never paints, so LCP waits for hydration and animation start. Hide pre-reveal text with opacity:0.001 plus the inert attribute instead, which registers a real paint at first paint while keeping it out of the tab order and accessibility tree.

How should I run a Lighthouse audit to get trustworthy numbers?

Always audit the production build, never dev mode. Kill stale servers by port, prove the server serves your build by curling for a changed string, run 3 times and take the median, and never run audits concurrently with builds.

Why is my simulated Lighthouse LCP high when observed LCP is fast?

Lantern simulation counts every script in flight at paint time, so simulated text LCP tracks total initial JS bytes. Once observed LCP is at first paint, only cutting initial JS moves the simulated number, and framework floors can cap the score regardless of real-world performance.

Can deferring text-splitting work to near-viewport cause CLS?

Yes. If splitting changes section heights, deferring it past first paint shifts everything below and produces large CLS. Verify splitting is layout-neutral before deferring; otherwise run all splits in the hydration commit and reduce instance count instead.

When should I not use this performance audit playbook?

Do not use it as the primary guide for implementing lazy hydration or animation craft, which belong to dedicated skills. Also avoid chasing simulated-only localhost scores past a documented lantern floor or mechanically fixing design decisions like target sizes and decorative contrast.