Answer: Save the content as review-code.prompt.md in your .github/prompts folder, open the code file you want to review, then in Visual Studio Code display the Copilot Chat view and enter /review-code to trigger the custom review. You can optionally specify a focus by typing focus=security, for example. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/use-code-review-prompt-file Revision: 2 Digest: sha256:f7143a5dd1a1ca1a (changes whenever the content changes) Timeline: Created: 2026-11-13T03:34:17Z Last changed: 2026-11-17T13:36:59Z (folder: — → .github/prompts) Last verified: 2026-11-20T13:16:37Z Next check: 2026-11-21T13:16:37Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file name | review-code.prompt.md | [1] | 2026-11-20 folder | .github/prompts | [1] | 2026-11-20 trigger command | /review-code | [1] | 2026-11-20 optional focus example | focus=security | [1] | 2026-11-20 Sources: [1] GitHub. "Review code - GitHub Docs". https://docs.github.com/en/copilot/tutorials/customization-library/prompt-files/review-code Role: primary. Accessed: 2026-11-20T13:16:37Z Quote: "Save the above content as review-code.prompt.md in your .github/prompts folder." (Supports: file name, folder) Quote: "enter /review-code to trigger the custom review using this prompt file" (Supports: trigger command) Quote: "you can also specify what you want the review to focus on by typing focus=security" (Supports: optional focus example) Snapshot SHA-256: d80658da0cd9e13ea20fc64af226b15dbdfe2795feaf6b8a1447051be204c71d (captured 2026-11-18T13:13:19Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:13:18Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:16:37Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:16:37Z Last attempt: 2026-11-20T13:16:37Z Notes and limitations: Extracted automatically from a single official source (section "How to use this prompt file"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/use-copilot-chat-agent-mode How do I use GitHub Copilot Chat in agent mode for a task? https://latestn.com/tool/github-copilot/agents-and-automation/use-custom-agent-cli How do I use a custom agent in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/agents-and-automation/use-custom-agents How do I use custom agents with GitHub Copilot cloud agent? https://latestn.com/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent How do I use the Cleanup specialist custom agent in GitHub Copilot? https://latestn.com/tool/github-copilot/agents-and-automation/use-cli-in-script How do I use GitHub Copilot CLI in a script to automate tasks? https://latestn.com/tool/github-copilot/agents-and-automation/use-cloud-agent-in-ide How do I use the GitHub Copilot cloud agent from my IDE? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T13:36:59Z | changed | folder: — → .github/prompts | [1] 2026-11-17T13:36:59Z | changed | file name: — → review-code.prompt.md | [1] 2026-11-17T13:36:59Z | changed | prompt folder: .github/prompts → — | [1] 2026-11-17T13:36:59Z | changed | prompt file name: review-code.prompt.md → — | [1] 2026-11-13T03:34:17Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/use-code-review-prompt-file/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/use-code-review-prompt-file POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/use-code-review-prompt-file with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/use-code-review-prompt-file?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use the GitHub Copilot code review prompt file? Revision 2, last verified 2026-11-20T13:16:37Z. https://latestn.com/tool/github-copilot/agents-and-automation/use-code-review-prompt-file (accessed 2026-11-21T10:01:36Z). @misc{LatestN_tool_github_copilot_agents_and_automation_use_code_review_prompt_file_r2, title = {How do I use the GitHub Copilot code review prompt file?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/use-code-review-prompt-file}}, note = {Revision 2; digest sha256:f7143a5dd1a1ca1a; last verified 2026-11-20T13:16:37Z; accessed 2026-11-21T10:01:36Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/agents-and-automation/use-code-review-prompt-file