In short.
This GitHub documentation guide helps developers, repository teams and organization owners configure recurring Copilot guidance, but client support varies and compliance is not guaranteed. It describes instruction scopes, repository file locations, GitHub.com Chat precedence and organization restrictions. It is useful for understanding the feature and planning a small configuration; exact client compatibility, complete setup procedures, prices and measured effectiveness are not established by this page.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected documentation page at [https://docs.github.com/api/article/body?pathname=/en/copilot/concepts/prompting-and-context/custom-instructions], including its examples, compatibility notices, precedence rules and warnings about inconsistent adherence. Linked pages are excluded, including the support reference, feature matrix and detailed configuration guides. No installation, configuration, Copilot session, code review or benchmark was executed. Runtime effectiveness, exact version compatibility, prices and reuse permissions remain unknown where the page does not establish them.
The overview
Resource identity
Custom instructions for GitHub Copilot is an official GitHub Docs guide about supplying recurring preferences and project context to Copilot. The selected resource is the documentation page, rather than a downloadable instruction package or standalone tool. Source: [https://docs.github.com/api/article/body?pathname=/en/copilot/concepts/prompting-and-context/custom-instructions].
Practical assessment
The guide is useful when you repeatedly explain the same coding conventions, project architecture or response preferences to Copilot. Its strongest practical contribution is distinguishing personal, repository and organization scopes, then explaining where repository instructions belong.
It provides a conceptual starting point rather than a complete configuration manual for every client. The page explicitly warns that AI responses can vary and that instructions do not guarantee policy compliance. No runtime behavior or response quality was tested.
Who it helps
Individual Copilot users can use personal instructions for language, explanation depth or response structure. Repository contributors and maintainers can document shared architecture, tools, coding standards and testing conventions. Organization owners can provide broader language, security, compliance or support guidance where organization instructions are supported.
Beginners get an explanation of instruction scopes and examples. Experienced developers get file locations, client-dependent precedence rules and the important detail that pull request review uses instructions from the branch containing the proposed changes.
What the guide covers
Custom instructions can provide recurring context about a project's purpose, architecture, languages, framework versions, formatting, testing, error handling and review priorities. Personal instructions can shape response language or detail, while organization instructions can communicate shared requirements.
For repository guidance, the page distinguishes repository-wide instructions, instructions limited to matching file paths, and agent instruction files. It also clarifies that AGENTS.md and similar instruction files differ from specialized agent definitions stored in .github/agents.
Using it
Requirements and compatibility
You need a Copilot client and feature that support the instruction type you intend to use. Support can differ between chatting, cloud work and pull request review within the same environment. The page links to a support reference and feature matrix, but does not establish a complete list of supported IDE versions.
Personal instructions configured on GitHub.com apply to Copilot Chat on GitHub; other clients, including Copilot CLI, can use local files instead. Organization instructions require a Copilot Business or Copilot Enterprise organization and are configured by organization owners.
The page limits organization instruction support to sessions running on the GitHub website, in cloud sandboxes or on GitHub Actions, and to Copilot code review. Local client sessions do not support organization instructions. These instructions apply to organization members regardless of where their Copilot subscription comes from.
How instructions apply
Custom instructions supply recurring natural-language context with chat messages, reducing the need to repeat the same guidance in individual prompts. Repository-wide instructions cover requests in a repository context; path-specific instructions narrow guidance to matching files.
Most clients and surfaces, including Copilot CLI, Visual Studio Code and Visual Studio, combine applicable instruction files without defining a general precedence order. For Copilot Chat on GitHub.com, the documented order from highest to lowest is personal instructions, path-specific repository instructions, repository-wide instructions, agent instructions, then organization instructions. All relevant instructions are provided.
During pull request review, Copilot reads repository instructions, agent instructions and agent skills from the head branch containing the changes. This allows instruction changes to affect review before they are merged.
Getting started
Choose the scope that matches the guidance: personal preferences, shared repository conventions or organization requirements. For repository-wide guidance, use .github/copilot-instructions.md. For path-specific guidance, use files named NAME.instructions.md within .github/instructions or its subdirectories.
Supported agent instruction mechanisms use files such as AGENTS.md, CLAUDE.md or GEMINI.md. Recognition depends on the Copilot feature, so these names should not be assumed to work everywhere.
Write short, self-contained statements about the actual project and its conventions. Keep broadly applicable guidance in the repository-wide file and narrower guidance in path-specific files. This page does not provide complete client settings procedures or the metadata needed to define path matching.
A practical example
The page illustrates repository instructions for a task-management application using React, Node.js and MongoDB, with Tailwind CSS and Express also named. It combines project context with formatting, component and interface preferences. These technologies belong to the example; they are not requirements for using custom instructions.
For a small first configuration, describe your own project's purpose and tools in .github/copilot-instructions.md, then add one concrete convention such as a preference for early returns. Ask Copilot for a small change in that repository and inspect whether its response follows the guidance. This is an illustrative exercise, not a tested result.
Assessment & evidence
Important limitations
Copilot may follow the same instructions differently across responses. Instructions about security, testing or review provide context, but do not ensure that generated content meets a policy.
Client and feature differences limit portability. An instruction mechanism supported for chat may not be supported for another task, and the GitHub.com Chat precedence order should not be generalized to every client.
The guide warns that external-reference requirements and broad style or verbosity rules may cause problems in large, diverse repositories. Conflicting instructions can also reduce response quality. No benchmarks, adherence rates or repository-scale performance measurements are supplied.
Why it may fit your work
The practical case for this feature is strongest when the same context matters across many requests. A maintained repository instruction file can communicate shared conventions without requiring every contributor to repeat them. Path-specific files offer a way to keep specialized guidance out of unrelated requests.
This is an assessment of the documented design, not evidence of measured productivity gains. The feature is a plausible fit for reusable guidance when people still inspect the output; the evidence does not support treating it as a reliable enforcement mechanism.
Related options
Prompt files are the page's documented alternative for task-specific context. Users choose when to invoke them in chat, whereas custom instructions provide recurring guidance automatically. Their detailed setup and compatibility are not assessed here.
JetBrains IDEs and Xcode also have additional global, workspace or project instruction mechanisms that do not always correspond directly to GitHub's personal, repository and organization scopes. The page does not provide enough detail to compare their configuration or behavior.
Evidence and its limits
The evidence is the complete GitHub Docs page at [https://docs.github.com/api/article/body?pathname=/en/copilot/concepts/prompting-and-context/custom-instructions]. It supports descriptions of intended features, configuration locations and documented restrictions. It does not establish observed behavior in a running Copilot session.
The captured source revision is sha256:34dfe83c2e8388398ce733bec264bed596c771d964d54fde1210130ad43b5861. Linked support tables, setup articles, example collections and other resources were outside the assessed page. No software was executed.
Access & freshness
Costs
The page provides no prices, usage allowances or separate charge for custom instructions. Actual costs are unknown from this evidence.
The only explicit subscription condition is that organization instructions require a Copilot Business or Copilot Enterprise organization. That condition does not establish the price or entitlement requirements for every other instruction type.
Rights and reuse
The selected page does not state licensing or redistribution terms for its text or example instructions. Permission to redistribute them is unknown from this evidence.
It also does not establish ownership terms for generated code or how instruction contents are retained or used. Those questions cannot be resolved from this guide alone.
Freshness
The page snapshot was captured on 15 November 2026 at 00:01:46 UTC. Its publication and last-update dates are not stated in the evidence; the capture date does not establish when its guidance changed.
Client support and organization feature availability may change. Compatibility beyond the captured description, including exact IDE versions, remains unverified.
What to do next
Confirm support for your exact client, task and instruction type using the reference linked by the guide: [https://docs.github.com/en/copilot/reference/custom-instructions-support]. Then start with a small set of relevant instructions at the appropriate scope.
Check responses against the intended conventions, remove conflicting guidance and separate file-specific rules when needed. For pull request review, inspect instruction changes in the head branch because those instructions can affect the review. Continue checking generated code and policy requirements directly.
