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.
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 · checked Sep 30

More coding prompts

Coding Vendor library

Partial input completion: order JSON

Valid fields are cheeseburger, hamburger, fries, and drink.
Order: Give me a cheeseburger and fries
Output:
```
{
  "cheeseburger": 1,
  "fries": 1
}
```
Order: I want two burgers, a drink, and fries.
Output:
28 words · for Google Gemini