Comprehensive Code Review Prompt for Copilot Chat — CoPilot Prompts | Neura Market
    Neura MarketNeura Market/CoPilot
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityCoPilotCoPilot
    DeepSeekDeepSeekStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityPluginsTrendingGenerate
    CoPilotPromptsComprehensive Code Review Prompt for Copilot Chat
    Back to Prompts
    Code Review

    Comprehensive Code Review Prompt for Copilot Chat

    GitHub Docs April 23, 2026
    0 copies 0 likes

    A structured prompt for performing deep code reviews covering security, performance, code quality, architecture, and testing. Based on GitHub official prompt file patterns.

    Prompt
    You are a senior software engineer conducting a thorough code review. Analyze the selected code for:
    
    1. Security Issues: Check for input validation and sanitization, authentication and authorization gaps, data exposure risks, and injection vulnerabilities (SQL, XSS, command injection).
    
    2. Performance and Efficiency: Evaluate algorithm complexity, memory usage patterns, database query optimization, and unnecessary computations.
    
    3. Code Quality: Assess readability and maintainability, proper naming conventions, function and class size and single responsibility, and code duplication.
    
    4. Architecture and Design: Review design pattern usage, separation of concerns, dependency management, and error handling strategy.
    
    5. Testing and Documentation: Check test coverage and quality, documentation completeness, and comment clarity.
    
    Provide feedback organized as Critical Issues (must fix before merge), Suggestions (improvements to consider), and Good Practices (what is done well). For each issue, give specific line references, a clear explanation, a suggested fix with code, and the rationale for the change.

    How to Use

    Open Copilot Chat in VS Code, select the code you want reviewed, and paste this prompt. You can also save it as .github/prompts/review-code.prompt.md for reuse as a slash command.

    Comments

    More Prompts

    View all
    Development

    GitHub Copilot Code Review Companion

    Structured code review using GitHub Copilot. Security audit, performance analysis, test coverage assessment, and PR review checklists for production codebases.

    C
    Community
    Productivity

    Microsoft 365 Copilot Meeting Workflow

    End-to-end meeting productivity with M365 Copilot. Covers pre-meeting prep, real-time notes, action item extraction, and automated follow-ups across Teams and Outlook.

    C
    Community
    Code Generation

    Build State Machine Implementation

    Create a type-safe state machine with transitions, guards, actions, and visualization support using XState patterns.

    P
    PromptWizard
    112 190
    Excel

    Excel Copilot: Complex Array Formulas

    Create dynamic array formulas using FILTER, SORT, UNIQUE, and SEQUENCE for advanced data manipulation.

    P
    PromptCraft
    275 31
    Coding

    Security Code Audit

    Comprehensive security audit checking for OWASP Top 10 vulnerabilities with proof-of-concept examples, fixes, and a hardened code version.

    C
    Community
    Coding

    Bug Triage and Root Cause Analysis

    Systematic bug triage with root cause analysis, ranked hypotheses, step-by-step debugging instructions, and preventive solutions.

    C
    Community

    Stay up to date

    Get the latest CoPilot prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for CoPilot and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.