شعار Code Review

Code Review

المجتمع
kazdenc
code-review

Perform a structured code review covering correctness, readability, performance, security, and maintainability. Use when user says "review this code", "code review", "check this PR", "review my changes", "is this code good", or needs expert feedback on code quality.

نظرة عامة

الناشرkazdenc
المستودعbuilder-skills
اسم المهارةcode-review
النجوم
46
التفريعات
5
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها kazdenc على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Code Review في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/code-review
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kazdenc/builder-skills.git /tmp/builder-skills
mkdir -p .claude/skills
cp -r /tmp/builder-skills/.claude/skills/dev/review/code-review .claude/skills/code-review
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Code Review في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Code Review تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Code Review بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Review code across five dimensions and produce a prioritized list of findings. Suggest improvements; don't demand them. Praise good patterns alongside issues.

Step 1: Read the Code

Understand intent before judging implementation. Before writing a single finding:

  • Identify the purpose of the change (feature, fix, refactor, test).
  • Note the architectural context (framework, patterns, conventions in use).
  • Read related tests and documentation if available.
  • If reviewing a PR, read the description and linked issues first.

Step 2: Review Across Five Dimensions

Evaluate the code against each dimension using the specific checks below.

Correctness

CheckWhat to look for
Logic errorsIncorrect conditionals, wrong operator precedence, inverted boolean logic
Off-by-oneFence-post errors in loops, slices, pagination, boundary conditions
Null / undefined handlingMissing optional chaining, unchecked nullable returns, empty-array assumptions
Race conditionsShared mutable state, unguarded async sequences, stale closures
Error pathsSwallowed exceptions, missing try/catch, unhelpful error messages, no fallback
Edge casesEmpty inputs, very large inputs, unicode, negative numbers, timezone boundaries

Readability

CheckWhat to look for
NamingAmbiguous variable names, misleading function names, inconsistent conventions
Function lengthFunctions doing more than one thing, > 40 lines is a smell
Nesting depthMore than 3 levels of nesting; consider early returns or extraction
CommentsMissing "why" comments on non-obvious logic; remove comments that restate code
ConsistencyStyle deviations from the rest of the codebase
Cognitive loadComplex ternaries, implicit type coercion, magic numbers or strings

Performance

CheckWhat to look for
Unnecessary re-rendersMissing memoization, inline object/function creation in render path
N+1 queriesDatabase calls inside loops, unbatched API requests
Missing memoizationExpensive computations recalculated on every render or call
Large bundlesHeavy imports that could be lazy-loaded or replaced with lighter alternatives
Algorithmic complexityO(n^2) or worse where O(n) or O(n log n) is achievable
Memory leaksUncleared intervals/timeouts, missing event listener cleanup, growing caches

Security

CheckWhat to look for
InjectionUnsanitized user input in SQL, shell commands, templates, or regex
XSSUnescaped output, dangerouslySetInnerHTML, innerHTML without sanitization
Auth bypassMissing authorization checks, client-side-only access control
Secrets in codeAPI keys, tokens, passwords committed or logged
Unsafe deserializationParsing untrusted JSON/YAML without validation, eval of user input
CSRF / CORSMissing CSRF tokens, overly permissive CORS configuration

Maintainability

CheckWhat to look for
CouplingComponents tightly bound to implementation details of other modules
DuplicationSame logic repeated in multiple places; candidate for extraction
Test coverageUntested happy paths, missing edge-case tests, brittle test setup
Dead codeUnused exports, commented-out blocks, unreachable branches
Unclear abstractionsOver-abstraction (unnecessary indirection) or under-abstraction (god functions)
Upgrade pathDeprecated APIs, framework-version-specific hacks, pinned dependencies

Step 3: Output as a Prioritized Finding List

Organize every finding by severity using the classification table below.

Severity Classification

SeverityQualifies when...Examples
CriticalCauses data loss, security breach, or crash in productionSQL injection, unhandled null on critical path, race condition corrupting state
HighBreaks functionality or significantly degrades UXLogic error in business rule, missing error handling on API call, auth check skipped
MediumImpacts quality but doesn't break thingsN+1 query on secondary page, moderate duplication, missing test for edge case
LowMinor improvement opportunitySlightly better naming, small refactor for clarity, non-critical performance tweak
NitStylistic or trivial; optional to addressExtra whitespace, import order, comment wording, personal preference

Finding Format

For each finding, include:

  • Severity: Critical / High / Medium / Low / Nit
  • Dimension: Which of the five dimensions it falls under
  • Location: File path and line number (or range)
  • Issue: What the problem is (one sentence)
  • Suggestion: How to improve it (concrete, with code snippet when helpful)
  • Why it matters: Impact on users, developers, or the system

Summary Section

After all findings, include:

  • Total count by severity
  • Top 3 priorities to address first
  • Positive patterns observed (what the code does well)
  • Overall assessment (one paragraph)

Tone Guidance

  • Use "Consider X" not "You should X."
  • Use "This could Y" not "This will Y" unless certain.
  • Praise good patterns: "Nice use of early returns here" or "Good separation of concerns."
  • Explain the "why" for every suggestion; reviewees learn more from reasoning than rules.
  • Acknowledge trade-offs: "This adds complexity but improves testability."
  • When uncertain, say so: "I'm not sure about the intent here — if Z is the goal, then consider W."

NEVER:

  • Nitpick style when there are critical issues (prioritize ruthlessly)
  • Flag something without a concrete suggestion for improvement
  • Assume malice or carelessness — the author may have context you don't
  • Rewrite entire functions in suggestions — keep diffs small and focused

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Code Review؟

Perform a structured code review covering correctness, readability, performance, security, and maintainability. Use when user says "review this code", "code review", "check this PR", "review my changes", "is this code good", or needs expert feedback on code quality.

لماذا تستخدم Code Review على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Code Review عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Code Review في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/code-review. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Code Review؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Code Review؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Code Review معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Code Review مجانية؟

نعم. نشرها kazdenc على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇