require-repository-instructions-file
Require repositories that define Copilot customization assets to also provide repository-level AI guidance in .github/copilot-instructions.md, .github/instructions/copilot-instructions.md, or a root AGENTS.md/CLAUDE.md/GEMINI.md file.
Rule catalog ID: R005
Targeted pattern scopeâ
.github/instructions/**/*.instructions.md.github/prompts/**/*.prompt.md.github/agents/**/*.agent.md.github/chatmodes/**/*.chatmode.mdAGENTS.mdCLAUDE.mdGEMINI.md
What this rule reportsâ
- Copilot customization assets in repositories that do not include
.github/copilot-instructions.md,.github/instructions/copilot-instructions.md, or a rootAGENTS.md/CLAUDE.md/GEMINI.md
Why this rule existsâ
Repository-level AI instructions provide the broadest customization surface and are widely supported. When a repository already defines prompts, custom agents, legacy chat modes, agent instructions, or path-specific instructions, a baseline top-level instructions file keeps overall guidance coherent across tools.
â Incorrectâ
.github/prompts/review.prompt.md
with none of these files in the repository:
.github/copilot-instructions.md.github/instructions/copilot-instructions.mdAGENTS.mdCLAUDE.mdGEMINI.md
â Correctâ
.github/copilot-instructions.md
.github/prompts/review.prompt.md
.github/instructions/copilot-instructions.md
.github/prompts/review.prompt.md
AGENTS.md
.github/prompts/review.prompt.md