Coding Editorial example

GitHub Copilot prompt for Get AI completions and chat in VS Code, then delegate a task to the cloud agent

An editorial example for Get AI completions and chat in VS Code, then delegate a task to the cloud agent in GitHub Copilot, written for our guide and not tested against the vendor

For
GitHub Copilot
Source
AI Tool Atlas guide: GitHub Copilot
Checked
Sep 30, 2026

The prompt

Editorial example from our guide
Add input validation to the createUser handler in src/api/users.ts, write unit tests for the invalid cases, and open a pull request.

When to use this prompt

  • An editorial example for Get AI completions and chat in VS Code, then delegate a task to the cloud agent in GitHub Copilot, written for our guide and not tested against the vendor
  • Task type: Coding. Browse other prompts for the same task below.
  • Written for GitHub Copilot; other chat assistants usually accept it unchanged.
  • No variables to replace: paste it as is.
How to use this prompt: fill the variables, run it in GitHub Copilot, check the resultYOU FILL INReady to runPaste the prompt as isNo variables to replaceTHE PROMPTGitHub Copilot24 words · 1 linesource: editorial exampleYOU GETThe resultAn editorial example for Get AI c…check the result against the tipscopy, paste, run in GitHub Copilotfill → run → check · prompts are copied word for word from their source
How to use this prompt: what to fill in, where to run it, what comes back

How to check the result

  • Confirm suggestions appear and can be accepted
  • Check the usage dashboard in Copilot settings for AI credits consumed
  • Verify the cloud agent's commits and logs on the branch

This prompt was written as an example for our guide and has not been run against the tool. Expect to adapt it to your case. How we document tools.

Where to run it

GitHub Copilot

Web · Desktop · Mobile

No user reviews yet

AI coding assistant from GitHub offering code completions, chat and agent features in editors, the terminal and GitHub.

Free stops at: 2,000 completions per month, Limited chat and agent usage (allowance of GitHub AI Credits)

Listed Not yet reviewed

Verified github.com (opens GitHub Copilot website in a new tab)

Free · paid from $10/mo US · confirmed Sep 30

More coding prompts

Coding Vendor library

Developer message: snake case JavaScript assistant

You are coding assistant that helps enforce the use of snake case
variables in JavaScript code, and writing code that will run in
Internet Explorer version 6.
# Instructions
* When defining variables, use snake case names (e.g. my_variable…
86 words · for ChatGPT