Skip to content
Skillpedia
Deploy & cloud (DevOps)75k · #2975

performance-budget

What it does

This skill sets up and reviews performance budgets, which are fixed limits for file size and speed that fail a build when they are exceeded. It is for teams that want to keep their site fast as it grows.

When to use it

  • ✓When you ask the agent to add performance limits to your project's build or pull request checks.
  • ✓When your app keeps getting slower because each change adds a little more weight.
  • ✓When you add a new dependency and want to confirm it stays within the size limits.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you set up size and speed limits in my project so slow changes are flagged before they go live?”

5 new skills a week. 1 minute to read.

How it works

The agent adds bundle size limits with size-limit and Lighthouse CI assertions to your continuous integration pipeline. It sets thresholds for size and speed, and fails the check when a change goes over them.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Enforce performance budgets in CI

Without automated enforcement, performance degrades gradually — each PR adds a small library, each feature adds a few KB, and within months the app that loaded in 2 seconds now takes 5. Performance budgets make regressions visible at PR time rather than after user complaints. Catching 'this PR added 200KB to the bundle' in review is far cheaper than debugging a slow production site.

Quick Reference

  • Define specific thresholds: max bundle size, min Lighthouse score, max LCP time
  • Fail CI when budgets are exceeded to prevent performance regressions
  • Size budgets catch accidental heavy dependencies; Lighthouse budgets catch runtime regressions
  • Start with loose budgets and tighten them as you optimize
  • Monitor production RUM so regressions are caught after deploy, not only in CI

Check

Does this project have performance budgets defined? Check package.json and CI configuration for size or Lighthouse thresholds.

Fix

Set up bundle size limits with size-limit and Lighthouse CI assertions in the CI pipeline.

Explain

Explain performance budgets, how to choose appropriate thresholds, and how to enforce them with size-limit and Lighthouse CI.

Code Review

Inspect CI workflows, package.json, and Lighthouse or bundle-size config for explicit thresholds. Flag repos where budgets are missing, too loose to catch regressions, or unenforced on pull requests. Check whether production RUM and alerting are wired to detect regressions after release.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/testing/performance-budget

FAQ

What is the difference between size and runtime budgets?

The skill says size budgets catch heavy dependencies, while Lighthouse budgets catch slower runtime behavior.

Should the limits start strict?

The skill suggests starting with loose budgets and tightening them as the site is optimized.

Do budgets replace monitoring after launch?

No. The skill recommends also monitoring real user data, so regressions are caught after a deploy.

Details

Original description by the author

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.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2975
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills