loopx-performance-diagnosis
ما الذي تفعله
تساعد هذه المهارة على معرفة سبب السلوك البطيء أو الثقيل لبرنامج في عملية تملكها. وهي مناسبة للمطوّرين الذين يلاحظون تباطؤًا واضحًا ويريدون دليلًا قبل تغيير الكود.
متى تستخدمها
- ✓عندما يكون أمر أو برنامج أو عملية أبطأ أو أثقل من المتوقع بوضوح.
- ✓عندما تحتاج إلى قياس المعالج أو الذاكرة أو الإدخال والإخراج للملفات في برنامج تملكه.
- ✓عندما يظهر تباطؤ بعد تعديل وتحتاج إلى أدلة من التحليل قبل الإصلاح.
رابط المهارة
https://github.com/loopx-project/loopx/blob/main/skills/loopx-performance-diagnosis/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“سكربت Python الخاص بي يحتاج 30 ثانية حتى يبدأ، ساعدني في معرفة السبب.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
توجّه المهارة الوكيل إلى تحديد العملية الحقيقية والنتيجة المتوقعة، وقياسها بأدوات تحليل مناسبة على نسخة آمنة، وتلخيص الأدلة دون كشف المسارات أو البيانات الخاصة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
LoopX performance diagnosis
First identify the question. For a LoopX-managed benchmark's outcome quality, score growth, useful progress per time/token, or agent trajectory, use loopx-benchmark. A flatter score curve, repeated reads or more tokens alone do not establish a process-performance regression. Keep that analysis with the benchmark owner; use this skill as a focused subtask only when evidence identifies a slow owned command or resource cost. Do not require a profiler before analyzing effectiveness or interaction overhead.
Read the current Goal/Todo contract and repository optimization evidence rules. State the real user operation, observed failure and owning acceptance. Preserve the exact source, runtime/interpreter, backend/history, inputs and concurrency. Use an owned disposable target for writes. Do not attach to a production process, elevate privileges, weaken OS policy, or start paid/remote workloads without the existing authorization. Raw stacks, paths, arguments and profiles stay ignored and local-private; public summaries contain only generalized evidence.
Read loopx/capabilities/performance_diagnosis/README.md for tool selection and
blind spots. On installed copies use loopx capability show performance-diagnosis
to locate its canonical documentation. Python waits/startup: Pyinstrument; Python
threads/native on Linux: py-spy; allocations: Memray; Node/TS: V8 CPU/heap.
Go/JVM/kernel costs need their native tools. Research official sources when the
installed runtime or missing evidence makes the documented choice uncertain.
Do not choose a tool from popularity or claim one profiler covers every layer.
- Run the uninstrumented target and record ordinary elapsed time. Use repeated controlled samples for comparisons; profiling time is not a baseline or p95.
- Verify the optional tool version locally. Preserve the selected interpreter; install optional tools in an isolated environment when authorized. Do not silently install them into product dependencies or fall back on permissions.
- Write the exact target argv to an ignored JSON array. Run
loopx performance-diagnosis plan --tool TOOL --command-json FILE --output-directory FRESH_IGNORED_DIRECTORY --format json. Read the whole plan. A plan has not executed or verified tool readiness. - Execute
profile_argvthrough the Host executor as an argv array without shell interpolation. Capture only the owned process; record failures and coverage gaps. Profile a separate Node worker instead of inferring its CPU from Python transport waits. Do not collect locals or automatically profile unrelated children. - Require actual successful target exit and nonempty artifact. Read Speedscope
or V8 CPU using
loopx performance-diagnosis inspect --profile-json FILE --format json; Memray/heap use their own reporters. Keep threads independent and self/inclusive time distinct. Never sum inclusive rows to obtain latency. - Turn the hotspot into a falsifiable hypothesis. Use a controlled intervention to distinguish caller/transport, shared semantics and backend cost. Reuse the owning contract; do not skip freshness, authority checks or decision inputs.
- Repeat the original uninstrumented workload and semantic checks after a fix. Preserve passed, failed and untested results and update the existing checkpoint. Readback of a stack does not prove root cause, improvement or provider admission.
Do not add a new receipt/approval requirement or automatically mutate scheduling, Goal state or telemetry. Stop invoking the workflow to disable it; remove optional tools/captures from their owned local environment when no longer needed.
الأسئلة الشائعة
هل تقيس هذه المهارة هل يجيب النموذج جيدًا؟
لا. جودة المقاييس وكفاءة الوكيل تغطيهما مهارة قياس منفصلة.
هل يمكن تحليل خادم إنتاج يعمل حاليًا؟
لا. تنص المهارة على عدم الارتباط بعمليات الإنتاج أو رفع الصلاحيات.
ما الأدوات التي تستخدمها؟
تختار المهارة أداة التحليل حسب اللغة، مثل Pyinstrument لتحليل بدء تشغيل Python وفترات الانتظار.
التفاصيل
الوصف الأصلي من المؤلف
Diagnose demonstrated CPU, command latency, allocation or IO regressions in an owned process with controlled measurements and language-appropriate profilers. Route benchmark effectiveness, score growth and trajectory efficiency to loopx-benchmark; profiling does not qualify a budget or grant execution authority.
repo: loopx-project/loopx
الشعبية
- نجوم GitHub
- 6.5k
- الترتيب
- #13875
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
loopx
6.5kيعلّم وكيلك إعداد LoopX وتشغيله، وهي أداة محلية تحافظ على الأهداف الطويلة والمهام والأدلة عبر جلسات المحادثة.
loopx-change-quality
6.5kيرشد وكيلك إلى مراجعة التغيير البرمجي النهائي لهدف LoopX، والتحقق من جودته قبل الدمج، وكتابة إيصال جودة يوثّق المراجعة.
loopx-doc-registry
6.5kيعلّم وكيلك تسجيل المواد الدائمة للمشروع، مثل مستندات التصميم وملاحظات البحث، وفهرستها حتى يجدها الوكلاء لاحقًا.
loopx-material
6.5kيرشد وكيلك في إدارة مخزن مواد البحث الدائمة للمشروع، وتشمل الجرد ونقل العناصر بين المراحل والترتيب والتغييرات التي يوافق عليها المالك.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.