PromptsReviewed · GitHub

GitHub Copilot Review code prompt

GitHub Copilot’s Review code prompt is a reusable code review template for developers using Copilot Chat, with prompt-file support still in public preview and limited to supported IDEs. It requests a consolidated report covering security, performance, code quality, architecture, testing and documentation, with explanations and suggested fixes.

Researched 24 Nov 2026

In short.

GitHub Copilot’s Review code prompt is a reusable review template for developers who want explanatory feedback in Copilot Chat, with no demonstrated review accuracy in the supplied documentation. It asks for prioritized findings, line references, proposed code changes and reasons across five review areas. The page provides the complete prompt and VS Code setup instructions, but establishes neither pricing nor reliable issue detection. Prompt-file support is described as public preview and available only in VS Code, Visual Studio and JetBrains IDEs.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected documentation page at [https://docs.github.com/api/article/body?pathname=/en/copilot/tutorials/customization-library/prompt-files/review-code], including the full prompt, public-preview and IDE notice, usage instructions, feature comparison and further-reading references. Contents of linked pages and repositories are excluded. No prompt, code or commands were executed; review accuracy, generated fixes and actual IDE behavior were not assessed.

The overview

Identity

The resource is the copyable code review prompt on GitHub Docs’ Review code page. It is saved as review-code.prompt.md and invoked through Copilot Chat to request one consolidated review report with educational explanations.

Assessment

This is a useful starting template for developers who want a repeatable review request with explicit topics and feedback requirements. Its concrete value is the supplied prompt structure and invocation instructions.

The page calls the review comprehensive, but provides no completed review, accuracy measurements or comparisons demonstrating completeness. Whether it finds the important defects in a particular codebase is unknown.

Users

The prompt suits developers who use Copilot Chat and prefer a single written review. Beginners may benefit from its requested explanations, code examples and reasons for changes; experienced developers can use the focus input to emphasize a concern such as security.

It is less directly suited to someone seeking interactive feedback attached to individual lines, which the page associates with the separate Copilot code review feature.

Capabilities

The prompt requests five review areas: security; performance and efficiency; code quality; architecture and design; and testing and documentation. Specific checks include input validation, authorization, injection risks, algorithm complexity, memory use, database queries, duplication, dependencies, error handling and test quality.

It asks Copilot to group feedback into critical issues, suggestions and good practices. For each issue, it requests line references, an explanation, a suggested solution with a code example and the rationale for changing it. These are requested behaviors, not demonstrated results.

Using it

Requirements

Following the documented workflow requires Copilot Chat with prompt-file support and code open in the editor. The page lists VS Code, Visual Studio and JetBrains IDEs as the supported environments for prompt files.

Minimum IDE versions, account eligibility, model requirements and plan restrictions are not specified. Detailed invocation instructions are supplied for VS Code only.

Mechanism

The file contains frontmatter setting agent to 'agent' and a description, followed by natural-language instructions assigning Copilot the role of a senior software engineer. Those instructions define the review areas and response format.

The expression ${input:focus:Any specific areas to emphasize in the review?} supplies a customizable focus input. The page does not describe a separate analysis engine, automatic test execution or how review accuracy is verified.

Setup

Save the complete supplied prompt, including its frontmatter, as review-code.prompt.md inside the .github/prompts folder. Open the code file you want reviewed.

In VS Code, open Copilot Chat and enter /review-code. The page says an optional focus can be supplied using a value such as focus=security. It does not provide equivalent setup details for the other listed IDEs.

Example

For a security-focused review, open the target file, invoke /review-code in Copilot Chat and supply focus=security. The prompt then asks Copilot to emphasize concerns such as input validation, authentication, authorization, data exposure and injection risks while following its report format.

This illustrates the documented request. The page supplies no resulting review, and no prompt or software was executed for this report.

Assessment & evidence

Limitations

Prompt files are described as public preview and subject to change, with availability limited to the three listed IDE families. The documented workflow starts from an open code file and asks for analysis of selected code; repository-wide coverage is not established.

Correct issue detection, severity assignments, line references and proposed fixes are not demonstrated. Supported programming languages, context limits and the effect of different Copilot models are also unspecified.

Reasoning

The template’s practical appeal comes from making review expectations explicit: it names technical concerns, separates urgent findings from suggestions and asks for explanations alongside fixes. That structure could help readers understand and compare findings, but this is an inference from the prompt design rather than a measured benefit.

Because it specifies what Copilot should examine without demonstrating successful detection, its instructions alone do not establish that code is secure or ready to merge.

Alternatives

The page identifies Copilot code review in VS Code as an alternative. It describes that feature as providing interactive feedback with inline editor comments that can be applied directly, while this prompt produces a consolidated report with educational explanations.

The linked alternative is at [https://docs.github.com/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=vscode]. Its linked documentation is outside the supplied scope, so its requirements, costs and performance are unknown here.

Evidence

The source is the complete GitHub Docs Review code page captured from [https://docs.github.com/api/article/body?pathname=/en/copilot/tutorials/customization-library/prompt-files/review-code]. It supplies the prompt, availability notice, setup instructions and comparison with Copilot code review.

The captured source revision is sha256:b37b248ff69d29e77c9d828fbf38756b3814fa8c1c207991fdbb5631d6cc9225. The page supports describing the template and intended workflow, but supplies no execution results, benchmarks or validated example findings.

Access & freshness

Costs

The page states no price, included usage, request limits or eligible Copilot plans. The cost of using this prompt with a particular Copilot account is unknown from the supplied evidence.

Rights

The page presents the prompt as copyable text and explicitly instructs readers to save it locally. It does not state a licence or wider redistribution terms. Permission to repackage or redistribute the prompt or documentation is not established by this page.

Freshness

The page was captured on 24 November 2026 at 10:39:12.688 UTC. At capture, it described prompt files as public preview and subject to change.

No publication date, last-update date or prompt version is shown in the supplied text. Availability and syntax changes after capture are unknown.

Actions

Confirm prompt-file availability in your Copilot setup, then save the template and invoke it on a file whose behavior you can inspect. Supply a focus when you have a specific concern.

Before adopting a suggested change, check the cited code, assess the explanation against surrounding behavior and run relevant tests. Treat the report as review input; the supplied documentation establishes no guarantee of complete or correct findings.

Evidence for this report

selected-page.txtselected · checked 2026-11-24