P

GitHub Copilot Prompt to Generate a Revision Plan

GitHub Copilot is not limited to code completion: it's an assistant capable of structuring complete revision plans for your software projects. Whether you are preparing a code review before a deployment, a major refactoring, or a security audit, a well-formulated prompt allows Copilot to produce a methodical plan covering every critical aspect. The challenge is to provide enough context on your codebase, your goals, and your constraints so that the generated plan is actionable and not generic. A good revision plan identifies risk areas, prioritizes checks, and proposes clear acceptance criteria. By using Copilot Chat in your IDE, you can quickly iterate on this plan by confronting it directly with the source code open in your editor. This approach transforms an often neglected task — structured revision planning — into a fast and reproducible process that improves overall code quality and reduces production regressions.

The prompt

GitHub Copilot

Act as a senior lead developer specialized in code review. Generate a structured and comprehensive revision plan for the following project:

Project Context: [describe the project, its technical stack and architecture]
Review Scope: [specify the files, modules or features concerned]
Main Objective: [e.g., pre-deployment, refactoring, security audit, onboarding]
Constraints: [deadline, reviewer experience level, internal standards]

The plan should include:

  1. A checklist prioritized by criticality (blocker / important / minor)
  2. Identified risk areas with justification
  3. Specific checks per layer (business logic, API, database, UI)
  4. Measurable acceptance criteria for each point
  5. Time estimate per section
  6. Recommended tools or commands to automate certain checks

Format the plan in Markdown with tables for the checklist and clearly separated sections.

Personalize this prompt with Léa

Answer 3 questions and Léa tailors the prompt to your situation.

Why it works

This prompt works thanks to the assignment of an expert role that frames the response register, combined with contextual variables in square brackets that force the user to provide discriminating information. The numbered six-point structure acts as a format constraint that prevents Copilot from producing a vague response, while the request for prioritization by criticality leverages the model's ability to classify and prioritize information.

Expected result

You will obtain a structured Markdown document containing a review checklist sorted by criticality level, with for each point a precise acceptance criterion and a time estimate. The plan will also include an analysis of the risk zones specific to your architecture, as well as concrete commands (linters, tests, SQL verification queries) to automate repetitive checks.

Variants by level

FAQ

How to adapt this prompt for a project with a very large codebase?
For large codebases, break down the review by module or business domain rather than including everything. Specify in the prompt the specific files or directories concerned, and ask Copilot to generate a plan per batch. You can also open the target files in your IDE before using Copilot Chat: it will take into account the context of the open files to produce a more relevant plan. Remember to mention dependencies between modules so that the plan reflects the optimal review order.
Can Copilot automatically detect risk areas in my code?
Copilot Chat can analyze the code open in your editor and identify problematic patterns (non-parameterized SQL queries, missing error handling, outdated dependencies). However, it does not replace a dedicated static analysis tool like SonarQube or Semgrep. The recommended approach is to use the plan generated by Copilot as a structure, then supplement it with the results of SAST tools for automatable checks. The advanced prompt even includes recommendations for complementary tooling.
What is the difference between using this prompt in Copilot Chat and in a classic editor?
In Copilot Chat integrated into the IDE (VS Code, JetBrains), the model has access to the context of your open files and workspace, making the revision plan much more specific. In an external chat without code context, the plan will remain more generic. For optimal results, open the key files of the review scope before launching the prompt, and use the @workspace command so that Copilot takes the entire project into account.

Related prompts

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More prompts to explore

GitHub Copilot Prompt to Generate Brand Names

GitHub Copilot, GitHub's AI-powered code assistant, is not limited to code generation. Thanks to its advanced natural language understanding...

GitHub Copilot Prompt to Generate JavaScript Code

GitHub Copilot, the AI-powered programming assistant developed by GitHub and OpenAI, has transformed the way developers write JavaScript code.

GitHub Copilot Prompt to Generate Python Code

GitHub Copilot, AI-powered programming assistant by OpenAI integrated directly into your code editor, revolutionizes the way developers write Python. Whether you're building a REST API, an automation script, or a data pipeline, the quality of generated code depends directly on the precision of your instructions. A well-structured prompt transforms Copilot from a simple autocomplete tool into a true pair programmer capable of producing idiomatic, typed, and tested Python code. In this guide, you'll discover optimized prompts to fully leverage GitHub Copilot's capabilities in your Python projects. Each prompt is designed to guide Copilot toward precise answers by specifying technical context, quality constraints, and expected output format. The goal is to reduce iterations and obtain production-ready code from the first generation, respecting PEP 8 conventions and modern Python ecosystem best practices.

GitHub Copilot Prompt to Generate SQL Queries

GitHub Copilot radically transforms how developers write SQL queries daily. Integrated directly into your code editor, this AI assistant understands your project context — table schemas, entity relationships, naming conventions — to generate precise and optimized SQL queries. Whether you work with PostgreSQL, MySQL, SQL Server or SQLite, Copilot adapts to your database engine's specific syntax. The challenge is not merely to generate functional SQL, but to obtain performant, readable, and maintainable queries. A well-structured prompt enables Copilot to produce complex joins, correlated subqueries, window functions, and aggregation queries that follow best practices. By providing your table schema, expected output, and performance constraints, you get production-ready queries rather than drafts to rework. This guide offers an optimized main prompt as well as variants adapted to your skill level, to fully leverage Copilot in generating reliable and performant SQL queries.

GitHub Copilot Prompt to Generate Unit Tests

GitHub Copilot has become an indispensable ally for developers looking to speed up writing unit tests. Thanks to its direct integration into the code editor, it analyzes the context of your source files to suggest relevant tests covering edge cases. However, the quality of generated tests heavily depends on the precision of the prompt used. A vague prompt will produce superficial tests, while a structured prompt will guide Copilot toward exhaustive coverage including normal cases, expected errors, and boundary behaviors. In this guide, we offer an optimized prompt to generate robust unit tests with GitHub Copilot, regardless of your tech stack. You'll discover how to formulate your instructions to obtain tests that respect your project's conventions, use the right test framework, and cover critical scenarios you might forget. Whether you work with JavaScript using Jest, Python with pytest, or Java with JUnit, these prompts adapt to your development environment.

GitHub Copilot Prompt to Optimize a Conversion Rate

GitHub Copilot, the AI-powered coding assistant, is not limited to classic code generation. In the context of conversion rate optimization...

Go further

Get new prompts every week

Join our newsletter.