Skip to main content

code-review

Use this skill when reviewing code for quality, security, and maintainability issues. Provides a structured checklist for thorough code reviews.

معلومات المصدر

المستودع
oracle/locus
آخر نشاط في المصدر
٢٢ أكتوبر ٢٠٢٦ في ١٨:٤٨
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٤
التفرعات
٠

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
code-review
description
Use this skill when reviewing code for quality, security, and maintainability issues. Provides a structured checklist for thorough code reviews.
allowed-tools
read_file search_code
metadata
{"author":"locus","version":"1.0"}
# Code Review Checklist ## 1. Security - Check for hardcoded secrets (API keys, passwords, tokens) - Validate all user inputs before use - Check for SQL injection, XSS, command injection - Ensure sensitive data is not logged ## 2. Error Handling - All external calls wrapped in try/except - Errors logged with context (not just swallowed) - User-facing errors are safe (no stack traces leaked) ## 3. Code Quality - Functions are under 50 lines - No duplicated logic (DRY principle) - Clear variable and function names - Type hints on public functions ## 4. Testing - New code has corresponding tests - Edge cases covered (empty input, None, large data) - Tests are independent (no shared mutable state) ## 5. Performance - No N+1 queries - Large collections use generators, not lists - Expensive operations are cached where appropriate ## Summary Format After reviewing, provide: 1. **Critical issues** (must fix before merge) 2. **Suggestions** (improve quality but not blocking) 3. **Positives** (what was done well)
عرض على GitHub