require-skill-name-match-directory
Require Copilot skill name metadata to match the skill directory name.
Rule catalog ID: R050
Targeted pattern scopeâ
.github/skills/**/SKILL.md.claude/skills/**/SKILL.md
What this rule reportsâ
- explicit skill
namevalues that do not match the parent skill directory name
Why this rule existsâ
A mismatch between the skill directory and the declared skill name makes repositories harder to navigate and increases the chance that links, docs, or user expectations refer to the wrong identifier.
â Incorrectâ
.github/skills/review/SKILL.md
with frontmatter:
---
name: review-security
description: Review code changes.
---
â Correctâ
---
name: review
description: Review code changes.
---