code-review-specialist
ما الذي تفعله
يرشد وكيلك إلى مراجعة الكود بحثًا عن مخاطر الأمان والكود البطيء ومشكلات الجودة، والإبلاغ عن كل ملاحظة بوضوح. وهو مناسب للمطورين الذين يريدون نظرة ثانية دقيقة على كودهم أو على طلب الدمج الخاص بهم.
متى تستخدمها
- ✓عندما تريد مراجعة كود أو طلب دمج بحثًا عن مشكلات أمنية.
- ✓عندما تريد إيجاد الكود البطيء أو مشكلات الأداء قبل الإصدار.
- ✓عندما تريد فحص جودة الكود، مثل التسمية والبنية وتغطية الاختبارات.
رابط المهارة
https://github.com/luongnv89/claude-howto/blob/main/03-skills/code-review-specialist/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك مراجعة وحدة تسجيل الدخول هذه بحثًا عن مشكلات أمنية، وأخبرني كيف أصلح أسوأها؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقرأ الوكيل قائمة تحقق للمراجعة وقالبًا للنتائج، ثم يفحص الكود حسب الفئة. ويكتب كل ملاحظة مع درجة خطورتها وموقعها وأثرها، ويستطيع تشغيل سكربت قياس على الكود.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Code Review Skill
This skill provides comprehensive code review capabilities focusing on:
Security Analysis
- Authentication/authorization issues
- Data exposure risks
- Injection vulnerabilities
- Cryptographic weaknesses
- Sensitive data logging
Performance Review
- Algorithm efficiency (Big O analysis)
- Memory optimization
- Database query optimization
- Caching opportunities
- Concurrency issues
Code Quality
- SOLID principles
- Design patterns
- Naming conventions
- Documentation
- Test coverage
Maintainability
- Code readability
- Function size (should be < 50 lines)
- Cyclomatic complexity
- Dependency management
- Type safety
Reference Files
This skill includes supporting files that you should read when performing reviews:
templates/review-checklist.md— Structured checklist covering security, performance, quality, and testing. Read this file and use it as a guide to ensure no category is missed during review.templates/finding-template.md— Standard template for documenting individual findings with severity, location, code examples, and impact analysis. Read this file and use its format when reporting issues.scripts/analyze-metrics.py— Python script that calculates code metrics (function count, class count, average line length, complexity score). Run this on the file under review to gather quantitative data.scripts/compare-complexity.py— Python script that compares cyclomatic and cognitive complexity between two versions of a file. Run this with the before and after versions when reviewing refactoring changes.
Review Template
For each piece of code reviewed, provide:
Summary
- Overall quality assessment (1-5)
- Key findings count
- Recommended priority areas
Critical Issues (if any)
- Issue: Clear description
- Location: File and line number
- Impact: Why this matters
- Severity: Critical/High/Medium
- Fix: Code example
Findings by Category
Security (if issues found)
List security vulnerabilities with examples
Performance (if issues found)
List performance problems with complexity analysis
Quality (if issues found)
List code quality issues with refactoring suggestions
Maintainability (if issues found)
List maintainability problems with improvements
Version History
- v1.0.0 (2024-12-10): Initial release with security, performance, quality, and maintainability analysis
Last Updated: August 4, 2026 Claude Code Version: 2.1.220 Sources:
- https://code.claude.com/docs/en/skills Compatible Models: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
الأسئلة الشائعة
ما المجالات التي تفحصها؟
الأمان والأداء وجودة الكود وقابلية الصيانة، بما فيها تغطية الاختبارات.
كيف تُعرض الملاحظات؟
تتبع كل ملاحظة قالبًا موحدًا يتضمن الخطورة والموقع وأمثلة من الكود والأثر.
هل تحتاج إلى أداة خاصة؟
تستخدم سكربت قياس بلغة Python مرفقًا بالمهارة، لذلك يجب أن تكون Python متاحة.
التفاصيل
الوصف الأصلي من المؤلف
Comprehensive code review with security, performance, and quality analysis. Use when users ask to review code, analyze code quality, evaluate pull requests, or mention code review, security analysis, or performance optimization.
repo: luongnv89/claude-howto
الشعبية
- نجوم GitHub
- 46k
- الترتيب
- #6322
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
lesson-quiz
46kيختبرك في درس واحد من دروس Claude Code بعشرة أسئلة، ويحسب درجتك، ويشير إلى الموضوعات التي تحتاج إلى مراجعة.
self-assessment
46kيعطيك اختبارًا في 10 مجالات من ميزات Claude Code، ثم درجة حسب الموضوع ومسارًا تعليميًا لما يجب دراسته بعد ذلك.
blog-draft
46kيرشد وكيلك خطوة بخطوة في كتابة مسودة مدونة من أفكارك ومصادرك، مع تتبع النسخ أثناء التقدم.
claude-md
46kيساعد وكيلك على إنشاء ملف CLAUDE.md أو تحسينه، وهو دليل المشروع الذي يعرّف الوكيل الذكي بقاعدة الكود.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.