Skillpedia
النشر والسحابة (DevOps)75k · #2975

performance-budget

ما الذي تفعله

تُعدّ هذه المهارة ميزانيات الأداء وتراجعها، وهي حدود ثابتة للحجم والسرعة تفشل البناء عند تجاوزها. وهي موجهة للفرق التي تريد إبقاء موقعها سريعًا مع نموه.

متى تستخدمها

  • ✓عندما تطلب من الوكيل إضافة حدود أداء إلى فحوصات البناء أو طلبات الدمج في مشروعك.
  • ✓عندما يزداد بطء تطبيقك لأن كل تغيير يضيف وزنًا صغيرًا.
  • ✓عندما تضيف اعتمادية جديدة وتريد التأكد من بقائها ضمن حدود الحجم.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك إعداد حدود للحجم والسرعة في مشروعي بحيث تُعلَّم التغييرات البطيئة قبل نشرها؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يضيف الوكيل حدود حجم الحزمة باستخدام size-limit وتأكيدات Lighthouse CI إلى خط التكامل المستمر. ويضبط العتبات للحجم والسرعة، ويُفشل الفحص عندما يتجاوز التغيير هذه العتبات.

المحتوى التقني (ملف 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.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2975
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة