performance-goal
ما الذي تفعله
ترشد هذه المهارة الوكيل إلى جعل شيفرتك أسرع بطريقة مقاسة وموجهة بهدف. وهي موجهة للمطورين الذين يريدون دليلًا على أن كل تغيير يفيد فعلًا.
متى تستخدمها
- ✓عندما تريد خفض زمن بدء التشغيل أو زمن الاستجابة أو هدف سرعة آخر قابل للقياس.
- ✓عندما تحتاج إلى فحص كل تحسين بمعيار أداء أو اختبار قابل للتكرار.
- ✓عندما تريد حفظ تقدم هدف الأداء كسجل.
رابط المهارة
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/performance-goal/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“خفّض زمن بدء تشغيل واجهة الأوامر بنسبة 20 في المئة، وأثبت كل تغيير بمعيار الأداء.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحدد المهارة أمر مُقيِّم وقاعدة نجاح أو فشل قبل أي عمل. ثم تسجّل نقاط التفتيش مع الأدلة، ولا تعلن الهدف مكتملًا إلا بعد نتيجة ناجحة ومراجعة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Performance Goal Workflow
Use this skill when a user asks OMX to optimize performance and wants a goal-oriented loop rather than a one-off review.
Contract
- OMX owns durable workflow state under
.omx/goals/performance/<slug>/. - Codex goal mode owns only the active-thread focus/accounting primitive.
- Shell commands do not mutate hidden Codex goal state. They write artifacts and emit model-facing handoff text.
- No optimization work may start until an evaluator command and pass/fail contract exist.
- Do not call
update_goal({status: "complete"})until the evaluator has a passing checkpoint and a completion audit proves the objective is done; then callget_goalagain and pass that fresh snapshot toomx performance-goal complete --codex-goal-json.
CLI
Create the workflow and evaluator contract:
omx performance-goal create \
--objective "Reduce CLI startup latency by 20%" \
--evaluator-command "npm run perf:startup" \
--evaluator-contract "PASS when p95 latency improves by 20% and regression tests pass" \
--slug startup-latency
Emit the Codex goal handoff:
omx performance-goal start --slug startup-latency
Record evaluator evidence:
omx performance-goal checkpoint --slug startup-latency --status pass --evidence "benchmark + tests passed"
omx performance-goal checkpoint --slug startup-latency --status fail --evidence "benchmark regressed"
omx performance-goal checkpoint --slug startup-latency --status blocked --evidence "missing fixture"
Complete only after a passing checkpoint:
omx performance-goal complete --slug startup-latency --evidence "final evaluator evidence" --codex-goal-json <get_goal-json-or-path>
Agent Loop
- Run
omx performance-goal createif no workflow exists. - Run
omx performance-goal startand follow the handoff:- call
get_goal; - call
create_goalonly when no active goal exists and the objective is explicit; - work only against the evaluator contract;
- after evaluator pass and completion audit, call
update_goal({status: "complete"}), callget_goalagain, and pass that snapshot toomx performance-goal complete --codex-goal-json; - after
omx performance-goal completesucceeds, run/goal clearin the Codex UI before starting another goal in this same thread/session; OMX prints this terminal cleanup step but does not invoke hidden clear routes;
- call
- Optimize in small reversible patches.
- Run the evaluator and related regression tests.
- Record each pass/fail/blocker with
checkpoint. - Complete only when the pass artifact exists and no required work remains.
Completion Gate
A performance goal is incomplete unless .omx/goals/performance/<slug>/state.json contains a lastValidation.status of pass and omx performance-goal complete receives a matching complete Codex get_goal snapshot via --codex-goal-json. Passing ordinary tests alone is not sufficient unless they are the declared evaluator contract.
Lifecycle: create_goal starts the Codex thread goal, update_goal({status: "complete"}) marks terminal success after the evaluator and audit pass, and /goal clear removes the completed thread goal when another same-thread goal is needed. OMX shell commands and hooks reconcile snapshots and print the cleanup instruction; they must not mutate hidden Codex goal state.
الأسئلة الشائعة
هل تبدأ التحسين قبل وجود معيار أداء؟
لا. يجب أن يوجد أمر المُقيِّم وقاعدة النجاح أو الفشل قبل أي عمل تحسين.
أين يُحفظ التقدم؟
تُحفظ ملفاتها في مجلد هدف الأداء داخل المشروع.
هل هي مراجعة لمرة واحدة؟
لا. هي حلقة موجهة بهدف، تستمر حتى يؤكد المُقيِّم النتيجة.
التفاصيل
الوصف الأصلي من المؤلف
Run an evaluator-gated performance optimization workflow over Codex goal mode with durable OMX artifacts and safe goal handoffs.
repo: Yeachan-Heo/oh-my-codex
الشعبية
- نجوم GitHub
- 34k
- الترتيب
- #8422
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
ai-slop-cleaner
34kيساعد وكيلك على تنظيف الشيفرة المنفوخة أو المتكررة أو المولّدة بالذكاء الاصطناعي، بحذف الشيفرة الميتة والأغلفة غير الضرورية مع الحفاظ على السلوك.
analyze
34kيتيح لوكيلك الإجابة عن سؤال عن قاعدة شيفرة بقراءة الشيفرة ذات الصلة، وعرض تفسيرات مرتبة حسب الأدلة، دون إجراء أي تعديل.
ask
34kيتيح لوكيلك إرسال سؤال إلى أداة سطر أوامر محلية لـClaude أو Gemini للحصول على رأي ثانٍ أو مراجعة، ويحفظ الجواب كملف.
autopilot
34kيدير مشروعًا كاملًا بتدخل قليل منك، من الفكرة إلى التنفيذ، مرورًا بالمتطلبات والتخطيط، ويتوقف فقط عند عوائق حقيقية.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.