Skip to content
New this week26 prompts for Sora, Veo and Runway video workflows.
Explore video prompts→
AIPrompt123Prompt library

Search AIPrompt123

Search prompts, categories, platforms and repositories

Coding & builders3 prompts

GitHub Copilot prompts that produce usable first drafts

GitHub's coding assistant for inline completion, chat and pull request review. GitHub Copilot prompts work best as short, context-rich comments and chat instructions.

Inline completionPR reviewUnit test scaffoldingCLI explanations

What GitHub Copilot is good at

GitHub Copilot has three surfaces: inline completion while typing, chat in the IDE, and Copilot for pull requests and the CLI. Inline completion is steered by the surrounding code, so a precise comment above a function is often more effective than a long chat prompt. In chat, reference files and errors explicitly. For PR review, ask for specific categories of feedback: correctness, security, performance and tests. Copilot follows repository conventions when they are visible in the open files. Our GitHub Copilot prompts are short by design, with clear signatures, edge cases and test expectations.

Most-used GitHub Copilot prompts

See all →
Coding & Developer
Intermediate

Generate unit tests that fail before the fix

Generate unit tests that fail before the fix with a prompt built for Cursor and Claude. It supplies context, constraints and an output contract, then asks the model to surface assumptions and gaps. Copy it, fill the variables and treat the result as a structured draft, not a final answer.

CursorClaudeGitHub Copilot
4.7(77)695 copies

Review a pull request by severity

A coding prompt for review a pull request by severity. It gives Claude and Cursor a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

ClaudeCursorGitHub Copilot
4.7(20)534 copies

Write documentation for a public function

Write documentation for a public function with a prompt built for ChatGPT and Claude. It supplies context, constraints and an output contract, then asks the model to surface assumptions and gaps. Copy it, fill the variables and treat the result as a structured draft, not a final answer.

ChatGPTClaudeGitHub Copilot
4.9(61)435 copies

How to write better GitHub Copilot prompts

These are the platform-specific habits our editors apply before publishing a template for GitHub Copilot.

  • 1

    Write a comment with the signature, edge cases and expected return value.

  • 2

    Keep chat prompts focused on one file or one function.

  • 3

    For PR review, ask for a checklist grouped by severity.

  • 4

    Never let it commit secrets; review suggestions before accepting.

Verified Knowledge · FAQ

GitHub Copilot prompt FAQ

What this hub covers and how to get reliable output from GitHub Copilot.