require-existing-relative-agent-links
Require relative Markdown links in Copilot custom agents to resolve to existing workspace targets.
Rule catalog ID: R031
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- relative custom-agent links whose resolved workspace target does not exist
Why this rule existsâ
Custom agents often depend on linked checklists, architecture notes, and scripts. A relative link that points nowhere can make an agent look well-documented while silently depriving it of the referenced context.
â Incorrectâ
---
description: Release coordinator
---
See [release runbook](../../docs/release-runbook.md).
when ../../docs/release-runbook.md does not exist from the agent file.
â Correctâ
---
description: Release coordinator
---
See [release runbook](../../docs/runbooks/release-runbook.md).