Skills DirectoryCurated open-source Skills from GitHub

performance-budgetcommit 4b0ddb9SKILL.md · Performance

Enforce Performance Budgets in CI

Sets bundle-size and Lighthouse thresholds in CI and fails builds over budget, so regressions surface at PR time.

npx skills add thedaviddias/Front-End-Checklist --skill performance-budget
Permissions
  • read-repo
  • write-files
  • shell
  • network
Compatible with
Any SKILL.md agent
GitHub
74.6k
Source
Community · David Dias
Status
Scan passed
License
MIT
Category
Performance

Core rule

Distinguish bundle-size budgets from runtime budgets such as Lighthouse or Core Web Vitals, and enforce both.

Execution Phases

  1. Phase 01Check

    Look in package.json and CI config for size or Lighthouse thresholds.

  2. Phase 02Set thresholds

    Define max bundle size, min Lighthouse score and max LCP; start loose and tighten as you optimize.

  3. Phase 03Enforce in CI

    Use size-limit and Lighthouse CI assertions on pull requests and fail the build when budgets are exceeded.

  4. Phase 04Monitor after release

    Wire production RUM and alerting so regressions are caught after deploy, not only in CI.

Permissions (summarised from SKILL.md)

CapabilityNeededDetails
File writesRequiredEdits CI workflows, package.json, and size-limit and Lighthouse CI config.
Command executionLimitedInstalls and runs budget tools such as size-limit and Lighthouse CI.
Network outboundLimitedUsed only to install development dependencies.

SKILL.md frontmatter (YAML)

SKILL.md frontmatter (YAML)commit 4b0ddb9
---
name: performance-budget
description: "Use when reviewing CI configuration, bundle analysis workflows, or pull requests that add dependencies and assets. Distinguish bundle-size budgets from runtime budgets such as Lighthouse or Core Web Vitals so teams can enforce both."
metadata:
  category: testing
  priority: medium
  difficulty: intermediate
  estimatedTime: "25"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/testing/performance-budget
---

Related skills

A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.