Skip to content

docs: fix the broken relative links in copilot-instructions.md - #46672

Open
Dhairya-007 wants to merge 1 commit into
apache:masterfrom
Dhairya-007:docs/fix-copilot-instructions-links
Open

Dhairya-007 wants to merge 1 commit into
apache:masterfrom
Dhairya-007:docs/fix-copilot-instructions-links

Conversation

@Dhairya-007

Copy link
Copy Markdown

SUMMARY

Every relative link in .github/copilot-instructions.md is written as though the file sat at the repository root, but GitHub resolves relative links against the directory containing the file. All six therefore 404:

Link text Resolves to
SECURITY.md (×4) .github/SECURITY.md
CLAUDE.md .github/CLAUDE.md
GEMINI.md .github/GEMINI.md
GPT.md .github/GPT.md
.cursor/rules/dev-standard.mdc .github/.cursor/rules/dev-standard.mdc
.github/copilot-instructions.md .github/.github/copilot-instructions.md

The same links are correct in AGENTS.md, which does live at the root — this file is the copy whose paths were never repointed. The four at the bottom are the ones the document itself offers as the way to reach the sibling agent guides, so the broken links defeat the purpose of that section.

Root-level targets get a ../ prefix; the self-reference points at the file itself.

TESTING INSTRUCTIONS

Resolve each target relative to the file's directory:

cd .github
for l in ../SECURITY.md ../CLAUDE.md copilot-instructions.md ../GEMINI.md ../GPT.md ../.cursor/rules/dev-standard.mdc; do
  [ -e "$l" ] && echo "ok   $l" || echo "FAIL $l"
done

All six print ok on this branch; the originals all fail the same check. Rendering the file on GitHub is the other way to confirm — the links are clickable in the diff view.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
  • Introduces new feature or API
  • Removes existing feature or API

Documentation only.

Claude Code assisted in writing this patch; I verified the link resolution locally and reviewed the change.

Every relative link in `.github/copilot-instructions.md` is written as if the
file sat at the repository root, but GitHub resolves relative links against the
directory containing the file. `SECURITY.md` therefore points at
`.github/SECURITY.md`, and the platform-instruction list at the bottom points
at `.github/CLAUDE.md`, `.github/GEMINI.md`, `.github/GPT.md` and
`.github/.cursor/...` - all six targets 404, including the four links that the
file offers as the way to reach the sibling agent guides.

The same links are correct in `AGENTS.md`, which lives at the root; this file
is the copy that was never repointed. Prefix the root-level targets with `../`
and make the self-reference point at the file itself.
@Dhairya-007
Dhairya-007 force-pushed the docs/fix-copilot-instructions-links branch from e34ef02 to e0d4d14 Compare November 28, 2026 08:24
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; no actionable issues were identified in the review.

Assessed commit: e0d4d14efa97

@hainenber hainenber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will break root-symlinked AGENTS.md

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants