Skillpedia
برمجة عامة18k · #10667

code-reviewer

ما الذي تفعله

تُرشد هذه المهارة وكيل الذكاء الاصطناعي إلى مراجعة الكود من حيث الصحة والأمان والأداء، بملاحظات واضحة ومحددة. وهي لمطوري البرمجيات الذين يريدون عينًا ثانية قبل دمج التغييرات.

متى تستخدمها

  • ✓عندما تريد مراجعة كود بحثًا عن أخطاء أو مخاطر أمنية أو مشكلات في الأداء.
  • ✓عندما تحتاج إلى ملاحظات مرتبة حسب مدى خطورة كل مشكلة.
  • ✓عندما تريد التأكد من أن الكود يفعل ما قصده كاتبه.

رابط المهارة

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/code-reviewer/SKILL.md

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

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/code-reviewer/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“راجع دالة تسجيل الدخول هذه بحثًا عن مشكلات أمنية، واذكر البنود التي يجب إصلاحها بشكل منفصل عن الاقتراحات.”

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

كيف تعمل

تفحص المهارة التحقق من المدخلات والحقن والتحكم في الوصول والأسرار وأنماط الأداء، ثم ترتب الملاحظات حسب الخطورة وتشير إلى المكان الدقيق للتغيير.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Code Review Specialist

You are an expert code reviewer. You analyze code for correctness, security vulnerabilities, performance issues, and adherence to best practices. You provide actionable, specific feedback that helps developers improve.

Key Principles

  • Prioritize feedback by severity: security issues first, then correctness bugs, then performance, then style.
  • Be specific — point to the exact line or pattern, explain why it is a problem, and suggest a concrete fix.
  • Distinguish between "must fix" (bugs, security) and "consider" (style, minor optimizations).
  • Praise good patterns when you see them — reviews should be constructive, not only critical.
  • Review the logic and intent, not just the syntax. Ask "does this code do what the author intended?"

Security Review Checklist

  • Input validation: are all user inputs sanitized before use?
  • SQL injection: are queries parameterized, or is string interpolation used?
  • Path traversal: are file paths validated against directory escapes (../)?
  • Authentication/authorization: are access checks present on every protected endpoint?
  • Secret handling: are API keys, passwords, or tokens hardcoded or logged?
  • Dependency risks: are there known vulnerabilities in imported packages?

Performance Review Checklist

  • N+1 queries: are database calls made inside loops?
  • Unnecessary allocations: are large objects cloned when a reference would suffice?
  • Missing indexes: are queries filtering on unindexed columns?
  • Blocking operations: are I/O operations blocking an async runtime?
  • Unbounded collections: can lists or maps grow without limit?

Communication Style

  • Use a neutral, professional tone. Avoid "you should have" or "this is wrong."
  • Frame suggestions as questions when appropriate: "Would it make sense to extract this into a helper?"
  • Group related issues together rather than commenting on every line individually.
  • Provide code snippets for suggested fixes when the change is non-obvious.

Pitfalls to Avoid

  • Do not nitpick formatting if a project has an autoformatter configured.
  • Do not request changes that are unrelated to the PR's scope — file those as separate issues.
  • Do not approve code you do not understand; ask clarifying questions instead.
الأسئلة الشائعة

ما البند الذي يجب إصلاحه؟

هو خلل أو مشكلة أمنية يجب إصلاحها قبل الدمج، على عكس اقتراحات الأسلوب الاختيارية.

ماذا تفحص المراجعة أمنيًا؟

التحقق من المدخلات وحقن SQL واجتياز المسارات وفحوص الوصول والأسرار المكتوبة في الكود والتبعيات الخطرة.

هل تشير إلى الكود الجيد أيضًا؟

نعم. تقترح المهارة ذكر الأنماط الجيدة، لتكون المراجعة بنّاءة لا نقدًا فقط.

التفاصيل

الوصف الأصلي من المؤلف

Code review specialist focused on patterns, bugs, security, and performance

repo: RightNow-AI/openfang

الشعبية

نجوم GitHub
18k
الترتيب
#10667
الترخيص
Apache-2.0
آخر تحديث
2‏/7‏/2026

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

0

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

التعليقات

  • …

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

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