no-duplicate-agent-names
Disallow duplicate effective custom-agent names across workspace custom-agent files.
Rule catalog ID: R039
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- agent files whose effective
namecollides with another agent file in.github/agents - collisions involving explicit
namefrontmatter and filename-derived default names
Why this rule existsâ
Custom agents are easier to select and reason about when each one has a unique effective name. Duplicate names make agent routing and documentation more confusing than necessary.
â Incorrectâ
.github/agents/reviewer.agent.md
.github/agents/other.agent.md # with frontmatter: name: reviewer
â Correctâ
.github/agents/reviewer.agent.md
.github/agents/other.agent.md # with frontmatter: name: reviewer-security