require-valid-prompt-name
Require Copilot prompt-file name metadata to be a non-empty scalar when present.
Rule catalog ID: R040
Targeted pattern scopeâ
.github/prompts/**/*.prompt.md
What this rule reportsâ
- blank
namevalues - non-scalar
namevalues that do not parse as a single string in supported frontmatter
Why this rule existsâ
Prompt files can expose a slash-command name through frontmatter. When name is present, it should be a real string value instead of an empty placeholder so the prompt has a stable, intentional command name.
â Incorrectâ
---
description: Review a pull request
name:
---
Review the proposed changes.
â Correctâ
---
description: Review a pull request
name: review-pr
---
Review the proposed changes.