require-valid-agent-name
Require Copilot custom-agent name metadata to be a non-empty scalar when present.
Rule catalog ID: R042
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- blank custom-agent
namevalues - malformed non-scalar
namevalues in supported frontmatter
Why this rule existsâ
Custom agents can declare a friendly name in frontmatter. When present, that field should be an actual scalar string so the agent has a stable human-facing identity instead of an empty placeholder.
â Incorrectâ
---
description: Review implementation quality
name:
---
Review the implementation carefully.
â Correctâ
---
description: Review implementation quality
name: reviewer
---
Review the implementation carefully.