perf-budget
Skill1 starsChanged 2 months agoMITView on GitHub
Set and enforce performance budgets on real user metrics — LCP, INP, CLS, TTFB, bundle size — and detect regressions in CI. Use when asked about performance, slow pages, Core Web Vitals, Lighthouse scores, or bundle size.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Univers42/harness42their own version, first seen Nov 1, 2026
- vindreshsingh/engineering-skillstheir own version, first seen Oct 20, 2026
- mattbutlerengineering/mattbutlerengineeringtheir own version, first seen Oct 13, 2026
- Univers42/claude-deal-with-the-deviltheir own version, first seen Oct 4, 2026
- AlpayC/claude-skill-settheir own version, first seen Sep 14, 2026
- nfeuer/project-foundation-kittheir own version, first seen Jul 5, 2026
Used with
Projects with it also use doc-sync.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JetBrainsSkilldoc-sync
Keeps IdeaVim documentation in sync with code changes. Use this skill when you need to verify documentation accuracy after code changes, or when checking if documentation (in doc/, README.md, CONTRIBUTING.md) matches the current codebase. The skill can work bidirectionally - from docs to code verification, or from code changes to documentation updates.
Also in 3 projects that use this
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- Univers42/claude-deal-with-the-devil★ 4same name
- Univers42/harness42★ 4same name
- mattbutlerengineering/mattbutlerengineering★ 3same name
- AlpayC/claude-skill-set★ 0same name
- nfeuer/project-foundation-kit★ 0same name
- vindreshsingh/engineering-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- a11y-auditSkill
- api-contract-testingSkill
- autonomous-explorationSkill
- bug-reproSkill
- chaos-resilienceSkill
- ci-wiringSkill
- contract-testing-pactSkill
- coverage-ratchetSkill
- database-testingSkill
- e2e-authoringSkill
- environment-paritySkill
- exploratory-chartersSkill
- false-positive-hunterSkill
- flake-forensicsSkill
- i18n-l10n-testingSkill
- load-and-stressSkill
- mutation-proofSkill
- never-break-prodSkill
- payment-testingSkill
- qa-triageSkill
- regression-curationSkill
- release-gateSkill
- responsive-mobile-testingSkill
- risk-mapSkill
- root-cause-protocolSkill
- security-regressionSkill
- smoke-and-sanitySkill
- state-machine-testingSkill
- test-data-managementSkill
- test-strategySkill
- tracking-testingSkill
- transactional-email-testingSkill
- unit-test-authoringSkill
- visual-regressionSkill
The file
Files
Performance Budgets
A performance test without a budget is a number nobody acts on. Budgets turn performance into a pass/fail gate like any other test.
Default budgets (tighten per product, never loosen silently)
| Metric | Good | Budget | Why it matters |
| LCP | < 2.5s | 2.5s | when the page feels loaded |
| INP | < 200ms | 200ms | responsiveness to real interaction |
| CLS | < 0.1 | 0.1 | layout jumping under the user's finger |
| TTFB | < 800ms | 800ms | server + network before anything renders |
| JS transferred | — | 300KB gz | the single biggest lever on low-end devices |
| Requests on load | — | 50 | latency compounding |
Measure
node runner/bin/qa-supreme.mjs perf --url https://app.example.com # every crawled state, against budgets
npx lighthouse https://app.example.com --preset=desktop --output=json --output-path=lh.json
npx unlighthouse --site https://app.example.com # whole-site sweepLab numbers are a signal, not the truth. Throttle to a mid-tier device (4x CPU slowdown, Fast 3G) — measuring on your laptop over fiber measures your laptop. Where you have field data (CrUX/RUM), the p75 field number wins any argument with a lab number.
Enforce in CI
Fail the build on regression, not on absolute beauty: compare against the base branch and block
when LCP degrades by more than 10% or the JS bundle grows past its budget. size-limit,
bundlesize, or Lighthouse CI assertions all do this; the tool matters less than the block.
Load and stress
Front-end budgets say nothing about the backend under load. See load-and-stress for k6
thresholds. Both are required for a launch: a page that renders in 1s when nobody is using it is
not a performance result.
Diagnosing a breach
- LCP high -> what is the LCP element? Image without priority, font blocking, server slow, or a client-side render waiting on a waterfall.
- CLS high -> images without dimensions, injected banners, late-loading fonts.
- INP high -> long tasks on the main thread; profile and break them up.
- TTFB high -> backend or cold start; front-end optimization will not save it.
Report the metric, the budget, the delta and the specific cause. A perf report without a named cause is a chart.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

