Answer: Save the prompt file as explain-code.prompt.md in your .github/prompts folder, then in Visual Studio Code display the Copilot Chat view and enter /explain-code. Copilot will switch to agent mode if not already selected and prompt you to enter some code and an audience type. Status: Confirmed Entry: tool/github-copilot/features/test-prompt-file Revision: 3 Digest: sha256:05d0049b0ead51e5 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:34:18Z Last changed: 2026-11-19T13:10:18Z (command: — → /explain-code) Last verified: 2026-11-20T13:16:39Z Next check: 2026-11-21T13:16:39Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file name | explain-code.prompt.md | [1] | 2026-11-20 folder | .github/prompts | [1] | 2026-11-20 command | /explain-code | [1] | 2026-11-20 mode | agent mode | [1] | 2026-11-20 Sources: [1] GitHub. "Your first prompt file - GitHub Docs". https://docs.github.com/en/copilot/tutorials/customization-library/prompt-files/your-first-prompt-file Role: primary. Accessed: 2026-11-20T13:16:39Z Quote: "Save the prompt file above as explain-code.prompt.md in your .github/prompts folder." (Supports: file name, folder) Quote: "In Visual Studio Code, display the Copilot Chat view and enter /explain-code ." (Supports: command) Quote: "Copilot will switch to agent mode, if this is not already selected" (Supports: mode) Snapshot SHA-256: 17f1859d6e09e1b77fe49a614e97ef352021f8688e447b295f3c5d8f0a95e810 (captured 2026-11-18T13:13:20Z) 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:21Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:16:39Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:16:39Z Last attempt: 2026-11-20T13:16:39Z Notes and limitations: Extracted automatically from a single official source (section "Test it out"). Related: https://latestn.com/tool/github-copilot/features/trace-context-propagation How does trace context propagation work between the GitHub Copilot SDK and CLI? https://latestn.com/tool/github-copilot/features/translate-code-example-response What does a GitHub Copilot response look like when translating code between languages? https://latestn.com/tool/github-copilot/features/translate-code-prompt How do I use GitHub Copilot to translate code to a different programming language? https://latestn.com/tool/github-copilot/features/synthesize-research How can GitHub Copilot help synthesize research? https://latestn.com/tool/github-copilot/features/synthesize-research-prompt How do I use GitHub Copilot to synthesize research? https://latestn.com/tool/github-copilot/features/template-example-prompt What does an example GitHub Copilot template prompt and response look like? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:10:18Z | changed | command: — → /explain-code | [1] 2026-11-19T13:10:18Z | changed | file name: — → explain-code.prompt.md | [1] 2026-11-19T13:10:18Z | changed | command to enter: /explain-code → — | [1] 2026-11-19T13:10:18Z | changed | prompt file name: explain-code.prompt.md → — | [1] 2026-11-17T13:37:02Z | changed | mode: — → agent mode | [1] 2026-11-17T13:37:02Z | changed | command to enter: — → /explain-code | [1] 2026-11-17T13:37:02Z | changed | prompt file name: — → explain-code.prompt.md | [1] 2026-11-17T13:37:02Z | changed | command: /explain-code → — | [1] 2026-11-17T13:37:02Z | changed | file name: explain-code.prompt.md → — | [1] 2026-11-13T03:34:18Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/test-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/features/test-prompt-file POST: https://latestn.com/dispute/tool/github-copilot/features/test-prompt-file with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/test-prompt-file?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I test a GitHub Copilot prompt file after creating it? Revision 3, last verified 2026-11-20T13:16:39Z. https://latestn.com/tool/github-copilot/features/test-prompt-file (accessed 2026-11-21T09:53:10Z). @misc{LatestN_tool_github_copilot_features_test_prompt_file_r3, title = {How do I test a GitHub Copilot prompt file after creating it?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/test-prompt-file}}, note = {Revision 3; digest sha256:05d0049b0ead51e5; last verified 2026-11-20T13:16:39Z; accessed 2026-11-21T09:53:10Z} } 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/features/test-prompt-file