no-blank-repository-instructions
Disallow empty repository-wide Copilot instructions files.
Rule catalog ID: R004
Targeted pattern scopeâ
.github/copilot-instructions.md.github/instructions/copilot-instructions.md
What this rule reportsâ
- repository-wide instructions files whose visible body content is blank after trimming comments and whitespace
Why this rule existsâ
GitHub Copilot repository instructions are the baseline customization surface for a repository. An empty .github/copilot-instructions.md or .github/instructions/copilot-instructions.md file communicates intent to customize Copilot, but it provides no usable guidance.
â Incorrectâ
<!-- placeholder -->
â Correctâ
# Repository guidance
- Prefer Flat Config for ESLint.
- Run `npm test` before proposing changes.
- Keep prompt files in `.github/prompts/` and path-specific instructions in `.github/instructions/`.