no-blank-customization-body
Disallow blank bodies in Copilot customization files other than repository-wide instructions.
Rule catalog ID: R009
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 files whose body is empty after ignoring frontmatter, whitespace, and HTML comments
- files that only contain metadata without any meaningful Markdown instructions in the document body
Why this rule existsâ
Copilot customization files are instruction surfaces. A prompt, custom agent, or path-specific instructions file that only contains frontmatter does not give Copilot any actual guidance to apply. This rule catches metadata-only files before they silently become ineffective customization points.
Repository-wide .github/copilot-instructions.md and .github/instructions/copilot-instructions.md are intentionally excluded because they already have a dedicated blank-content rule.
â Incorrectâ
---
description: Review the repository
agent: ask
---
<!-- no actual prompt body -->
â Correctâ
---
description: Review the repository
agent: ask
---
Review the repository for configuration drift and summarize the biggest risks first.