This repo contains my collection of GitHub Copilot prompts for my personal learning and reference. I'm making this repo public in the hope that it may be useful to others.
The way this repo is structured is by persona:
/app-dev
- contains prompts useful for application developers,/test-engineer
- contains prompts useful for test engineers,/infra-engineer
- contains prompts useful for infrastructure engineers,/ai-engineer
- contains prompts useful for AI/ML engineers,- and so on...
So that I can freely add prompts with minimal effort to update this readme, I will also make the file names as descriptive as possible. Each file will have a prefix:
editor-
- indicates that the prompt is typed directly in the code editor (also known as GitHub Copilot code completion). In most cases, these files will have the file extension of the programming language that the prompt is for (e.g..js
for Javascript,.py
for Python, etc.).chat-
- indicates that the prompt is used in GitHub Copilot Chat or CMD/CTRL+I. Since these prompts are for chat, the file extensions are in.txt
.sample-
- is not a prompt, but a file that other prompts might use.
Note
The prompts in this repo are mostly tested using VSCode with an GitHub Copilot Individual/Business license. I will indicate if there is a prompt that requires GitHub Enterprise.
The /copilot-instructions
folder contains sample .md
files to be used with GitHub Copilot specific features.
copilot-instructions.md
- contains a sample file to be used with GitHub Copilot Custom Instructions. This file should be placed in the.github
folder of your repo.coding-guidelines.md
- contains a sample file to be used with Github Copilot Code Review, for VS Code. This is my VSCode JSON settings configuration:{ ... "github.copilot.chat.reviewSelection.instructions": [ { "file": "../../../../../GitRepos/GH-Public/github-copilot-prompts/copilot-instructions/coding-guidelines.md" } ] ... }