require-existing-relative-prompt-links
Require relative Markdown links in Copilot prompt files to resolve to existing workspace targets.
Rule catalog ID: R030
Targeted pattern scopeâ
.github/prompts/**/*.prompt.md
What this rule reportsâ
- relative links whose resolved workspace target does not exist
Why this rule existsâ
Relative links are only useful when they actually resolve. Broken prompt links can hide important context, examples, or runbooks from the people and tools invoking the prompt.
â Incorrectâ
---
description: Review a pull request
---
See [review guide](../docs/review-guide.md).
when ../docs/review-guide.md does not exist from the prompt file.
â Correctâ
---
description: Review a pull request
---
See [review guide](../../docs/review-guide.md).