no-duplicate-prompt-names
Disallow duplicate effective prompt names across workspace prompt files.
Rule catalog ID: R038
Targeted pattern scopeâ
.github/prompts/**/*.prompt.md
What this rule reportsâ
- prompt files whose effective
namecollides with another prompt file in.github/prompts - collisions involving explicit
namefrontmatter and filename-derived default names
Why this rule existsâ
Prompt files share a slash-command namespace. Duplicate effective names make it ambiguous which prompt a caller intends to invoke and can create hard-to-diagnose behavior differences across tools.
â Incorrectâ
.github/prompts/review.prompt.md
.github/prompts/other.prompt.md # with frontmatter: name: review
â Correctâ
.github/prompts/review.prompt.md
.github/prompts/other.prompt.md # with frontmatter: name: review-security