Skip to content
Back to skills

Lighthouse Fix

ASecurity

Analyzes and fixes common Lighthouse performance score issues

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 1, 2026
ai-agentsbashapiperformance

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill lighthouse-fix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lighthouse Fix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lighthouse Fix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-lighthouse-fix/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-lighthouse-fix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lighthouse-fix
description: Analyzes and fixes common Lighthouse performance score issues
argument-hint: [page-url-or-file]
user-invocable: true
allowed-tools: Read Grep Glob Edit Bash
effort: medium
---

## Lighthouse Performance Fixes

Target: **$1**

Since we can't run Lighthouse directly, audit the code for common score killers:

### Performance (LCP, FID, CLS)

**Largest Contentful Paint (LCP):**
```bash
grep -rn "img\|Image\|hero\|banner" src/ --include="*.tsx" | head -10
```
- Hero images not preloaded (`<link rel="preload">` or `priority` prop)
- No explicit `width`/`height` on images (causes layout shift)
- Render-blocking scripts/fonts

**Cumulative Layout Shift (CLS):**
- Images without dimensions
- Dynamic content inserted above existing content
- Fonts causing FOUT (missing `font-display: swap`)

**First Input Delay (FID) / INP:**
- Long tasks on main thread
- Heavy JS in `<head>` without `defer`/`async`

### Accessibility Score
```bash
grep -rn "<img" src/ --include="*.tsx" | grep -v "alt=" | head -10
```
- Missing `alt` on images
- Low color contrast
- Missing form labels

### Best Practices
- Mixed content (HTTP resources on HTTPS page)
- Console errors
- Deprecated APIs

For each finding: show the fix and estimated score improvement.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…