review-agent
ما الذي تفعله
تجعل هذه المهارة الوكيل يقرأ مجموعة من تغييرات الكود، ويبلغ عن الأخطاء والمخاطر دون تغيير أي ملف. وهي موجهة إلى المطورين الذين يريدون نظرة ثانية حذرة قبل الدمج.
متى تستخدمها
- ✓عندما تريد رأياً ثانياً في تغييرات غير مُلتزم بها قبل أن تعمل commit.
- ✓عندما تحتاج إلى مراجعة فروقات فرع مقارنة بفرعه الأساسي.
- ✓عندما يطلب وكيل آخر أو زميل فحصاً للقراءة فقط لـ commit محدد.
رابط المهارة
https://github.com/HKUDS/DeepCode/blob/main/core/skills/builtin/review-agent/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“من فضلك راجع تغييراتي غير الملتزم بها، وأخبرني بأي مشكلات حقيقية دون تغيير الملفات.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقرأ وكيلك الفروقات والكود المحيط بها، ويفحص الاختبارات والاستدعاءات المرتبطة، ويبلغ فقط عن المشكلات التي يستطيع تأكيدها. ولا يعدّل شيئاً ولا يعمل commit ولا ينشر أي تعليق.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Review Agent
Inspect the requested target directly and return every finding that the author would likely fix. Do not modify files, create commits, push branches, post review comments, or delegate the review to another agent.
Review the change
- Read the applicable
AGENTS.mdinstructions. - Inspect the complete diff for the requested target and enough surrounding code to understand each changed path.
- Identify concrete regressions introduced by the change. Continue through the whole diff after finding the first issue.
- Check the relevant tests and call sites to confirm that each finding is real and actionable.
For a base-branch review, compare the changes that would actually merge rather than diffing
directly against the branch tip. Resolve the comparison ref to the branch's upstream when that
upstream exists and is ahead of the local branch; otherwise use the local branch. Run
git merge-base HEAD <comparison-ref>, then inspect git diff <merge-base-sha>. If the local
branch cannot be resolved, try its configured upstream explicitly before reporting that the target
is unavailable.
Flag an issue only when all of these are true:
- It affects correctness, security, performance, or maintainability in a meaningful way.
- It is discrete and actionable.
- It was introduced by the reviewed change.
- The affected scenario or call path can be demonstrated from the code.
- The author would probably fix it if they knew about it.
Do not flag speculative concerns, pre-existing problems, intentional behavior changes, or style nits that do not obscure the code.
Write the result
Present findings first, ordered by severity. Use one entry per issue in this form:
[P1] Imperative finding title — path/to/file.rs:line
Follow the title with one short paragraph explaining the affected scenario and why the behavior is wrong. Keep the cited range as small as possible and make sure it overlaps the reviewed diff.
Use these priorities:
P0: universal release blocker or critical failure.P1: urgent defect that should be fixed next.P2: ordinary defect that should be fixed.P3: low-impact issue that is still worth fixing.
If there are no qualifying findings, say No findings. Do not invent a finding to fill the result.
After the findings, add a brief overall assessment and mention any material test gaps or residual
risks.
الأسئلة الشائعة
هل سيغيّر كودي؟
لا. المراجعة للقراءة فقط، فلا تعدّل الملفات ولا تنشئ commits ولا تنشر تعليقات.
هل يبلغ عن الملاحظات الأسلوبية البسيطة؟
يركز على المشكلات المهمة والقابلة للتنفيذ التي تؤثر في الصحة أو الأمان أو الأداء أو سهولة الصيانة.
ما الذي يستطيع مراجعته؟
يستطيع مراجعة تغييرات غير مُلتزم بها، أو فرعاً مقارناً بأساسه، أو commit، أو تعليمات مخصصة تعطيها.
التفاصيل
الوصف الأصلي من المؤلف
Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.
repo: HKUDS/DeepCode
الشعبية
- نجوم GitHub
- 17k
- الترتيب
- #10798
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.