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-budgetCommand selected. Copy it manually.
- 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
Phase 01Check
Look in package.json and CI config for size or Lighthouse thresholds.
Phase 02Set thresholds
Define max bundle size, min Lighthouse score and max LCP; start loose and tighten as you optimize.
Phase 03Enforce in CI
Use size-limit and Lighthouse CI assertions on pull requests and fail the build when budgets are exceeded.
Phase 04Monitor after release
Wire production RUM and alerting so regressions are caught after deploy, not only in CI.
Permissions (summarised from SKILL.md)
| Capability | Needed | Details |
|---|---|---|
| File writes | Required | Edits CI workflows, package.json, and size-limit and Lighthouse CI config. |
| Command execution | Limited | Installs and runs budget tools such as size-limit and Lighthouse CI. |
| Network outbound | Limited | Used only to install development dependencies. |
SKILL.md frontmatter (YAML)
---
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.