# Lighthouse CI Automated Performance Gate

> Enforces Core Web Vitals, performance budgets, and PWA scores in CI/CD using Lighthouse CI (LHCI). Use when preventing performance regressions from degrading se

- Skill: `bishnucd/lighthouse-ci-automated-performance-gate` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/lighthouse-ci-automated-performance-gate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/lighthouse-ci-automated-performance-gate/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/bishnucd/lighthouse-ci-automated-performance-gate

---

---
name: lighthouse-ci-automated-performance-gate
description: Enforces Core Web Vitals, performance budgets, and PWA scores in CI/CD using Lighthouse CI (LHCI). Use when preventing performance regressions from degrading search engine rankings.
license: MIT
metadata:
  author: Community List Maintainers
  version: "1.0.0"
  source: "https://github.com/GoogleChrome/lighthouse-ci"
---
# Lighthouse Ci Automated Performance Gate

## Overview
Lighthouse CI runs headless browser audits on every pull request, measuring Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), and JavaScript bundle budgets against strict thresholds.

## Operational Workflow

1. **Configure .lighthouserc.json specifying target URLs, number of runs (min 3), and assertion rules.**:
   - Configure .lighthouserc.json specifying target URLs, number of runs (min 3), and assertion rules.

2. **Set performance budget assertions (e.g., categories**:
   - Set performance budget assertions (e.g., categories:performance >= 0.90, first-contentful-paint <= 1800).

3. **Execute lhci autorun inside GitHub Actions or GitLab CI runner.**:
   - Execute lhci autorun inside GitHub Actions or GitLab CI runner.

4. **Block pull request merges automatically if a new dependency introduces a performance regression.**:
   - Block pull request merges automatically if a new dependency introduces a performance regression.

## Recommended Tools & Environments
- Lighthouse CI
- Core Web Vitals
- Performance Budgets
- CI/CD Automation

## Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.

