require-relative-agent-links
Require Copilot custom agents to use relative Markdown links for workspace files.
Rule catalog ID: R028
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- root-relative links such as
/docs/runbook.md - file links that use other non-relative workspace-style paths instead of paths relative to the current agent file
Why this rule existsâ
Relative links make custom-agent instructions portable across forks, local clones, and different workspace roots. They also match how Copilot customization content typically references repository resources.
â Incorrectâ
---
description: Release coordinator
---
See [runbook](/docs/release-runbook.md).
â Correctâ
---
description: Release coordinator
---
See [runbook](../../docs/release-runbook.md).