Answer: You can create a repository-wide custom instructions file by creating a file named .github/copilot-instructions.md in the root of your repository (creating the .github directory if needed) and adding natural language instructions in Markdown format. Alternatively, you can ask Copilot cloud agent to generate one for you. Status: Confirmed Entry: tool/github-copilot/memory-and-context/create-repository-wide-instructions-2 Revision: 2 Digest: sha256:8a26d7cad7cbd7ac (changes whenever the content changes) Timeline: Created: 2026-11-13T03:26:25Z Last changed: 2026-11-17T13:23:12Z (alternative method: — → Copilot cloud agent) Last verified: 2026-11-20T13:05:59Z Next check: 2026-11-21T13:05:59Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file path | .github/copilot-instructions.md | [1] | 2026-11-20 directory to create | .github | [1] | 2026-11-20 instruction format | Markdown | [1] | 2026-11-20 alternative method | Copilot cloud agent | [1] | 2026-11-20 agents page URL | github.com/copilot/agents | [1] | 2026-11-20 Sources: [1] GitHub. "Adding repository custom instructions for GitHub Copilot - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions Role: primary. Accessed: 2026-11-20T13:05:59Z Quote: "In the root of your repository, create a file named .github/copilot-instructions.md ." (Supports: file path) Quote: "Create the .github directory if it does not already exist." (Supports: directory to create) Quote: "Add natural language instructions to the file, in Markdown format." (Supports: instruction format) Quote: "Alternatively, you can ask Copilot cloud agent to generate one for you." (Supports: alternative method) Quote: "Go to the agents tab at github.com/copilot/agents ." (Supports: agents page URL) Snapshot SHA-256: 3d250b6d895ed857a28915ffb43f814b0c7a012043fe7b43c8287ba34336e432 (captured 2026-11-18T13:00:46Z) 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:00:46Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:05:59Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:05:59Z Last attempt: 2026-11-20T13:05:59Z Notes and limitations: Extracted automatically from a single official source (section "Creating repository-wide custom instructions"). Related: https://latestn.com/tool/github-copilot/memory-and-context/custom-instruction-types What types of custom instructions can I use with GitHub Copilot? https://latestn.com/tool/github-copilot/memory-and-context/custom-instruction-types-2 What types of custom instructions does GitHub Copilot CLI support? https://latestn.com/tool/github-copilot/memory-and-context/custom-instructions-examples Where can I find more examples of GitHub Copilot custom instructions for specific languages? https://latestn.com/tool/github-copilot/memory-and-context/create-path-specific-instructions How do I create path-specific custom instructions for GitHub Copilot? https://latestn.com/tool/github-copilot/memory-and-context/create-repository-wide-custom-instructions How do I create repository-wide custom instructions for GitHub Copilot CLI? https://latestn.com/tool/github-copilot/memory-and-context/create-repository-wide-instructions How do I create repository-wide custom instructions for GitHub Copilot in my IDE? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T13:23:12Z | changed | alternative method: — → Copilot cloud agent | [1] 2026-11-13T03:26:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/memory-and-context/create-repository-wide-instructions-2/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/memory-and-context/create-repository-wide-instructions-2 POST: https://latestn.com/dispute/tool/github-copilot/memory-and-context/create-repository-wide-instructions-2 with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/memory-and-context/create-repository-wide-instructions-2?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create repository-wide custom instructions for GitHub Copilot? Revision 2, last verified 2026-11-20T13:05:59Z. https://latestn.com/tool/github-copilot/memory-and-context/create-repository-wide-instructions-2 (accessed 2026-11-21T09:57:03Z). @misc{LatestN_tool_github_copilot_memory_and_context_create_repository_wide_instructions_2_r2, title = {How do I create repository-wide custom instructions for GitHub Copilot?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/memory-and-context/create-repository-wide-instructions-2}}, note = {Revision 2; digest sha256:8a26d7cad7cbd7ac; last verified 2026-11-20T13:05:59Z; accessed 2026-11-21T09:57:03Z} } 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/memory-and-context/create-repository-wide-instructions-2