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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2975
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.