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: 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.
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…