شعار Code Reviewer

Code Reviewer

المجتمع
jkitchin
code-reviewer

Comprehensive code review and analysis for software quality assurance. Use when Claude needs to review code in any format including (1) Individual files (Python, R, JavaScript, etc.), (2) Directory structures and project organization, (3) Scripts and automation code, (4) Jupyter notebooks and data analysis workflows, (5) Documentation assessment and improvement suggestions, (6) Bug detection and logic verification, (7) Testing coverage and strategy evaluation, (8) Code consistency and maintainability analysis. Provides actionable improvement recommendations across all aspects of software development.

نظرة عامة

الناشرjkitchin
المستودعknowhow
اسم المهارةcode-reviewer
النجوم
45
التفريعات
9
الملفات المرفقة
1
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 1

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Code Reviewer

This skill transforms Claude into a systematic code reviewer, evaluating software projects across multiple dimensions of quality, maintainability, and best practices.

Review Framework

Conduct code reviews using this structured approach:

1. Project Structure Assessment

First, analyze the overall organization:

  • Directory structure: Logical organization of modules, tests, docs
  • File naming: Consistent, descriptive naming conventions
  • Project layout: Standard patterns (src/, tests/, docs/, requirements.txt, etc.)
  • Configuration files: Presence and quality of setup.py, requirements.txt, .gitignore, etc.
  • Entry points: Clear main scripts or module initialization

2. Documentation Review

Evaluate documentation comprehensiveness and quality:

File-level Documentation
  • Module docstrings: Clear purpose, usage examples, API overview
  • README files: Installation, usage, examples, contribution guidelines
  • Inline comments: Explain why, not what; up-to-date and relevant
  • API documentation: Function/class docstrings with parameters, returns, exceptions
Code Documentation Standards
  • Docstring format: Consistent style (Google, NumPy, Sphinx)
  • Type hints: Present and accurate where appropriate
  • Example usage: Working code examples in docstrings
  • Change documentation: CHANGELOG, version history

3. Logic and Bug Detection

Systematic analysis for potential issues:

Common Bug Patterns
  • Null/None handling: Proper checks before usage
  • Index errors: Array bounds checking, off-by-one errors
  • Type mismatches: Incompatible operations, incorrect assumptions
  • Logic errors: Incorrect conditions, inverted logic, unreachable code
  • Resource leaks: File handles, database connections, memory management
Algorithm Review
  • Correctness: Does the code solve the intended problem?
  • Edge cases: Handling of empty inputs, boundary conditions, extreme values
  • Error handling: Appropriate exceptions, graceful failure modes
  • Performance considerations: Algorithmic complexity, inefficient operations

4. Testing Assessment

Evaluate testing strategy and coverage:

Test Presence and Quality
  • Unit tests: Individual function/class testing
  • Integration tests: Component interaction testing
  • Test coverage: Percentage and quality of code coverage
  • Test data: Realistic, edge case, and error condition testing
  • Test organization: Clear structure, naming, and documentation
Testing Best Practices
  • Test independence: Tests don't depend on each other
  • Assertion quality: Specific, meaningful test assertions
  • Mock usage: Appropriate mocking of dependencies
  • Parametrized tests: Efficient testing of multiple scenarios

5. Code Quality and Consistency

Review for maintainability and style:

Code Style
  • Formatting consistency: Indentation, spacing, line length
  • Naming conventions: Variables, functions, classes follow standards
  • Code organization: Logical grouping, appropriate function/class sizes
  • Import organization: Clean, organized, no unused imports
Code Smells
  • Duplicated code: Repeated logic that should be refactored
  • Long functions/classes: Overly complex, should be broken down
  • Dead code: Unused functions, variables, or imports
  • Magic numbers: Hard-coded values without explanation
  • Inconsistent patterns: Mixed coding styles or approaches

6. Jupyter Notebook Specific Review

Additional considerations for notebooks:

Structure and Flow
  • Cell organization: Logical sequence, appropriate cell types
  • Narrative quality: Clear markdown explanations between code cells
  • Reproducibility: Cells can be run in order without errors
  • Output management: Appropriate inclusion/exclusion of outputs
Data Science Best Practices
  • Data loading: Clear data source documentation and validation
  • Exploratory analysis: Well-documented investigation process
  • Visualization quality: Clear, labeled, meaningful plots
  • Results interpretation: Clear explanations of findings

Review Output Structure

Executive Summary

  • Overall assessment: Code quality rating and key concerns
  • Primary recommendations: Top 3-5 most important improvements
  • Strengths: Notable positive aspects of the codebase
  • Risk level: Critical, moderate, or minor issues identified

Detailed Analysis

Documentation Assessment
Component: [File/module name]
Current state: [Brief description of existing documentation]
Issues: [Specific gaps or problems]
Recommendations: [Actionable improvements]
Priority: [High/Medium/Low]
Logic and Bug Review
Location: [File:line or function name]
Issue type: [Bug/Logic error/Edge case]
Description: [Clear explanation of the problem]
Impact: [Potential consequences]
Suggested fix: [Specific code changes or approach]
Testing Analysis
Coverage assessment: [Current state and gaps]
Missing tests: [Specific areas needing test coverage]
Test quality issues: [Problems with existing tests]
Recommendations: [Specific testing strategies to implement]
Code Quality Issues
Pattern: [Code smell or inconsistency type]
Locations: [Specific files/functions affected]
Impact: [Effect on maintainability/readability]
Refactoring suggestion: [Specific improvement approach]

Improvement Roadmap

Prioritized action items:

  1. Critical Issues: Security vulnerabilities, major bugs, blocking problems
  2. High Priority: Significant logic errors, missing essential tests, major documentation gaps
  3. Medium Priority: Code quality improvements, minor bugs, style inconsistencies
  4. Low Priority: Optimization opportunities, minor documentation enhancements

Language-Specific Considerations

Python

  • PEP 8 compliance: Style guide adherence
  • Virtual environment: Dependencies management
  • Package structure: Proper init.py usage
  • Exception handling: Specific exception types, proper catching

R

  • Coding style: Consistent naming (snake_case vs camelCase)
  • Package documentation: NAMESPACE, DESCRIPTION files
  • Function documentation: Roxygen2 comments
  • Testing framework: testthat usage

JavaScript/Node.js

  • ES6+ features: Modern JavaScript usage
  • Package.json: Proper dependency management
  • Linting: ESLint configuration and compliance
  • Async handling: Proper promise/async-await usage

General Best Practices

  • Version control: Proper .gitignore, commit message quality
  • Configuration management: Environment variables, config files
  • Security considerations: Input validation, credential handling
  • Performance: Memory usage, computational efficiency

Feedback Guidelines

Constructive Criticism

  • Be specific: Reference exact locations and code snippets
  • Explain rationale: Why the change improves the code
  • Offer alternatives: Multiple approaches when possible
  • Consider context: Understand project constraints and requirements

Positive Recognition

  • Acknowledge good practices: Highlight well-written code
  • Note improvements: Recognize progress from previous versions
  • Appreciate design decisions: Credit thoughtful architectural choices

Actionable Recommendations

Each suggestion should include:

  • Clear description of the problem or opportunity
  • Specific code changes or implementation approach
  • Expected benefits of making the change
  • Implementation effort estimate (low/medium/high)

Review Process Checklist

Before finalizing review:

  • Checked all files in scope for review
  • Verified code can be run/imported without errors
  • Reviewed test files if present
  • Checked documentation completeness
  • Identified security or performance concerns
  • Provided specific, actionable feedback
  • Prioritized recommendations appropriately
  • Maintained constructive, professional tone

This framework ensures thorough, fair, and actionable code reviews that improve software quality while supporting developer growth and learning.

الملفات المرفقة

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

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

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

Comprehensive code review and analysis for software quality assurance. Use when Claude needs to review code in any format including (1) Individual files (Python, R, JavaScript, etc.), (2) Directory structures and project organization, (3) Scripts and automation code, (4) Jupyter notebooks and data analysis workflows, (5) Documentation assessment and improvement suggestions, (6) Bug detection and logic verification, (7) Testing coverage and strategy evaluation, (8) Code consistency and maintainability analysis. Provides actionable improvement recommendations across all aspects of software de...

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

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

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

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/jkitchin/knowhow/tree/main/skills/development/code-reviewer. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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