performance-budget
यह क्या करती है
यह स्किल परफ़ॉर्मेंस बजट सेट करती और जाँचती है, जो फ़ाइल आकार और गति की तय सीमाएँ हैं और सीमा पार होने पर बिल्ड फ़ेल कर देती हैं। यह उन टीमों के लिए है जो साइट को बढ़ने के साथ भी तेज़ रखना चाहती हैं।
कब इस्तेमाल करें
- ✓जब आप एजेंट से अपने प्रोजेक्ट के बिल्ड या pull request जाँच में परफ़ॉर्मेंस सीमाएँ जुड़वाएँ।
- ✓जब आपका ऐप धीमा होता जाए क्योंकि हर बदलाव थोड़ा और वज़न जोड़ता है।
- ✓जब आप नई डिपेंडेंसी जोड़ें और पक्का करना चाहें कि वह आकार सीमा के भीतर रहे।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे प्रोजेक्ट में आकार और गति की सीमाएँ सेट कर सकते हैं, ताकि धीमे बदलाव लाइव होने से पहले पकड़े जाएँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट बंडल आकार की सीमाएँ size-limit और Lighthouse CI के assertions के साथ आपकी continuous integration पाइपलाइन में जोड़ता है। वह आकार और गति की सीमाएँ तय करता है, और कोई बदलाव उनसे आगे जाए तो जाँच फ़ेल कर देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
आकार बजट और रनटाइम बजट में क्या अंतर है?
स्किल कहती है कि आकार बजट भारी डिपेंडेंसी पकड़ते हैं, जबकि Lighthouse बजट धीमे रनटाइम व्यवहार पकड़ते हैं।
क्या सीमाएँ सख़्त से शुरू होनी चाहिए?
स्किल ढीली सीमाओं से शुरू करने और साइट ऑप्टिमाइज़ होने पर उन्हें कसने का सुझाव देती है।
क्या बजट लॉन्च के बाद की निगरानी की जगह ले लेते हैं?
नहीं। स्किल असली यूज़र डेटा की निगरानी भी करने की सलाह देती है, ताकि डिप्लॉय के बाद गिरावट पकड़ी जा सके।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2975
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।