GitHub Copilot prompts

10 prompts

Prompts for GitHub Copilot in your editor and on GitHub. They suit Copilot Chat and agent mode: explaining code, writing tests, reviewing a pull request or carrying out a change across several files.

10 results

  • Coding Agent Task Brief with Guardrails, Test Plan, and Rollback Steps

    Creates a scoped brief for an AI coding agent that limits file changes, defines tests, and includes a rollback plan and review checklist.

  • Pre-PR Self-Review and Pull Request Description from a Git Diff

    Has GitHub Copilot review your branch diff against the base branch, flag defects and missing tests, and draft a PR description with evidence. Use it to decide whether to open the PR or fix issues first.

  • Implement a Scoped Feature in Copilot Agent Mode with Repo Discovery and Tests

    Guides GitHub Copilot agent mode to inspect the repository, state assumptions, plan a minimal change, implement it, and add tests. It ends with a verification report you can use to decide whether to open a PR.

  • Edge-Case Test Suite for One Function in Your Existing Test Framework

    Writes tests for a single function that cover normal inputs, boundaries, bad input and error paths, in the test framework your project already uses.

  • Plain-English Question to a Correct SQL Query for Your Schema

    Writes a SQL query from a plain-English question using your real table definitions, explains each part, checks it for common mistakes and suggests indexes if it will be slow.

  • Regex Builder With Match and No-Match Test Cases

    Builds a regular expression from a plain-English description and example strings, explains each part, and proves it against strings that should and should not match.

  • Rewrite a Vague Issue into a Copilot Coding Agent-Ready Issue

    Turns a vague GitHub issue into a self-contained task with context, testable acceptance criteria, files to touch, and tests to add, so the Copilot coding agent can finish it.

  • Conventional Commit and PR Description from a Diff and Ticket

    Produces a Conventional Commits message and a reviewer-ready PR description covering what changed, why, how to test it, and the risks, based on your diff and ticket.

  • GitHub Copilot Pull Request Description Written From the Diff

    Turns the changes in a branch into a clear pull request description: what changed and why, how to test it, risks and screenshots to add, in your repo's template if it has one.

  • Codex Writes an AGENTS.md for This Repository From the Real Setup

    Has Codex inspect your repository and write a short, accurate AGENTS.md with the real build, test and lint commands, conventions and boundaries, checked by actually running them.

About GitHub Copilot prompts

Where do I use these prompts in Copilot?

In Copilot Chat in VS Code, Visual Studio or a JetBrains IDE, or in agent mode for changes across files. Some also work on GitHub.com, for example when you ask Copilot about a pull request.

Can I share standing instructions with my team?

Yes. Put them in .github/copilot-instructions.md in the repository and Copilot adds them to every chat there. Keep one-off task prompts like these in the chat itself.

How do I point Copilot at the right code?

Open or select the relevant files, or reference them with # in Copilot Chat, before you paste the prompt. The blanks in each prompt name the context it needs.