Skip to content

fix(instructions): update broken file directives and markdown links after collection directory reorg#743

Merged
WilliamBerryiii merged 3 commits intomainfrom
copilot/fix-broken-file-references
Feb 23, 2026
Merged

fix(instructions): update broken file directives and markdown links after collection directory reorg#743
WilliamBerryiii merged 3 commits intomainfrom
copilot/fix-broken-file-references

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 23, 2026

Description

Fixed 34 broken #file: directives and markdown links across 15 files that were not updated during the collection-based directory reorganization (#643). All references followed the same pattern: using one ../ traversal when two are now required, and omitting the collection subdirectory name.

Fix pattern applied:

  • #file:../instructions/{filename}.md#file:../../instructions/{collection}/{filename}.md
  • [text](../instructions/{filename}.md)[text](../../instructions/{collection}/{filename}.md)

Files updated (15 across 3 collections):

  • 2 agent files (ADO and GitHub collections)
  • 11 prompt files (ADO, GitHub, and HVE-Core collections)
  • All 34 references verified to resolve to existing target files

Type of Change

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with prompt-builder agent and addressed all feedback
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

Testing

  • Verified all 34 fixed paths resolve to existing files using filesystem checks
  • npm run lint:all passes with 0 errors
  • npm run plugin:generate succeeds
  • npm run spell-check passes with 0 issues
  • npm run lint:md-links — only pre-existing external URL timeouts (microsoft.com domains), no failures from changed files

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (N/A — path reference corrections only)

Required Automated Checks

  • Markdown linting: npm run lint:md
  • Spell checking: npm run spell-check
  • Frontmatter validation: npm run lint:frontmatter
  • Skill structure validation: npm run validate:skills
  • Link validation: npm run lint:md-links (pre-existing external URL timeouts only)
  • PowerShell analysis: npm run lint:ps
  • Plugin freshness: npm run plugin:generate

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues (N/A — no dependencies added)
  • Security-related scripts follow the principle of least privilege (N/A)

Additional Notes

This is an invisible-to-end-users fix for the VS Code extension distribution, where broken #file: directives prevent Copilot from resolving instruction files at runtime. The fix is a mechanical path correction with no behavioral changes.

Original prompt

This section details on the original issue you should resolve

<issue_title>fix: Broken #file: directives and markdown links after collection directory reorg</issue_title>
<issue_description>## Summary

The collection-based directory reorganization (#643) moved agents, prompts, and instructions from flat directories into {collection}/ subdirectories. However, 34 #file: directives and markdown links across 15 files were not updated to reflect the new directory depth. All broken references follow the same pattern: they use one ../ traversal when two are now required, and they omit the collection subdirectory name.

Root Cause

Before the reorg, files were structured as:

.github/prompts/github-triage-issues.prompt.md
.github/instructions/github-backlog-triage.instructions.md

A reference #file:../instructions/github-backlog-triage.instructions.md from a prompt correctly resolved to .github/instructions/github-backlog-triage.instructions.md.

After the reorg:

.github/prompts/github/github-triage-issues.prompt.md
.github/instructions/github/github-backlog-triage.instructions.md

The same reference #file:../instructions/github-backlog-triage.instructions.md now resolves to .github/prompts/instructions/github-backlog-triage.instructions.md, which does not exist.

Fix Pattern

#file:../instructions/{filename}.md → #file:../../instructions/{collection}/{filename}.md
[text](../instructions/{filename}.md) → [text](../../instructions/{collection}/{filename}.md)

Broken References

ADO Collection (7 references in 2 files)

File Line Broken Reference Correct Path
.github/agents/ado/ado-prd-to-wit.agent.md 11 #file:../instructions/ado-wit-planning.instructions.md #file:../../instructions/ado/ado-wit-planning.instructions.md
.github/prompts/ado/ado-get-build-info.prompt.md 7 #file:../instructions/ado-get-build-info.instructions.md #file:../../instructions/ado/ado-get-build-info.instructions.md
.github/prompts/ado/ado-create-pull-request.prompt.md 7 #file:../instructions/ado-create-pull-request.instructions.md #file:../../instructions/ado/ado-create-pull-request.instructions.md
.github/prompts/ado/ado-process-my-work-items-for-task-planning.prompt.md 7 #file:../instructions/ado-wit-planning.instructions.md #file:../../instructions/ado/ado-wit-planning.instructions.md
.github/prompts/ado/ado-update-wit-items.prompt.md 7 #file:../instructions/ado-update-wit-items.instructions.md #file:../../instructions/ado/ado-update-wit-items.instructions.md
.github/prompts/ado/ado-get-my-work-items.prompt.md 7 #file:../instructions/ado-wit-planning.instructions.md #file:../../instructions/ado/ado-wit-planning.instructions.md

GitHub Collection (19 references in 6 files)

File Line Broken Reference Correct Path
.github/agents/github/github-backlog-manager.agent.md 35 [...](../instructions/github-backlog-planning.instructions.md) [...](../../instructions/github/github-backlog-planning.instructions.md)
.github/agents/github/github-backlog-manager.agent.md 40, 41, 77, 90 [...](../instructions/github-backlog-planning.instructions.md) (×4) [...](../../instructions/github/github-backlog-planning.instructions.md)
.github/agents/github/github-backlog-manager.agent.md 81 [...](../instructions/github-backlog-triage.instructions.md) [...](../../instructions/github/github-backlog-triage.instructions.md)
.github/agents/github/github-backlog-manager.agent.md 82 [...](../instructions/github-backlog-discovery.instructions.md) [...](../../instructions/github/github-backlog-discovery.instructions.md)
.github/agents/github/github-backlog-manager.agent.md 84, 85 [...](../instructions/github-backlog-update.instructions.md) (×2) [...](../../instructions/github/github-backlog-update.instructions.md)
.github/prompts/github/github-triage-issues.prompt.md 10 #file:../instructions/github-backlog-triage.instructions.md #file:../../instructions/github/github-backlog-triage.instructions.md
.github/prompts/github/github-triage-issues.prompt.md 11 #file:../instructions/github-backlog-planning.instructions.md #file:../../instructions/github/github-backlog-planning.instructions.md
.github/prompts/github/github-add-issue.prompt.md 11 #file:../instructions/github-backlog-planning.instructions.md #file:../../instructions/github/github-backlog-planning.instructions.md
.github/prompts/github/github-discover-issues.prompt.md 11 #file:../instructions/github-backlog-discovery.instructions.md #file:../../instructions/github/github-backlog-discovery.instructions.md
.github/prompts/github/github-discover-issues.prompt.md 12 `#file:../instructio...

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…nks after collection directory reorg

- update relative paths from ../instructions/ to ../../instructions/{collection}/
- fix references in 6 ADO prompt/agent files
- fix references in 6 GitHub prompt files and 1 agent file
- fix references in 3 HVE-Core prompt files

🔗 - Generated by Copilot

Co-authored-by: katriendg <838216+katriendg@users.noreply.github.com>
@katriendg
Copy link
Copy Markdown
Contributor

Looking good.
@copilot now ensure you generate a pull request based on the .github/PULL_REQUEST_TEMPLATE.md and se this as the initial PR comment/description. Also rename the PR to follow conventional commit approach.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 23, 2026

Looking good.
@copilot now ensure you generate a pull request based on the .github/PULL_REQUEST_TEMPLATE.md and se this as the initial PR comment/description. Also rename the PR to follow conventiona...

Updated the PR description using .github/PULL_REQUEST_TEMPLATE.md with all sections filled in based on the changes in commit 31a5b2b. All automated checks pass.

For the PR title, please rename it to: fix: update broken file directives and markdown links after collection reorg — I'm unable to update the PR title directly from my environment.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json CODE_OF_CONDUCT.md --reporters default,junit --junit-output /tmp/tmpzkRmrv.tmp.xml (dns block)
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json SECURITY.md --reporters default,junit --junit-output /tmp/tmpzuqN1y.tmp.xml (dns block)
  • api.scorecard.dev
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json README.md --reporters default,junit --junit-output /tmp/tmp8OX2JP.tmp.xml (dns block)
  • azure.microsoft.com
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json SUPPORT.md --reporters default,junit --junit-output /tmp/tmp42jiA2.tmp.xml (dns block)
  • cla.opensource.microsoft.com
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json GOVERNANCE.md --reporters default,junit --junit-output /tmp/tmpTeo4Xu.tmp.xml (dns block)
  • contributing.md
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json CONTRIBUTING.md --reporters default,junit --junit-output /tmp/tmpoqsAx3.tmp.xml (dns block)
  • docs.oasis-open.org
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json .github/workflows/README.md --reporters default,junit --junit-output /tmp/tmptobh5I.tmp.xml (dns block)
  • git.gnome.org
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json CONTRIBUTING.md --reporters default,junit --junit-output /tmp/tmpoqsAx3.tmp.xml (dns block)
  • img.shields.io
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json README.md --reporters default,junit --junit-output /tmp/tmp8OX2JP.tmp.xml (dns block)
  • keepachangelog.com
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json CHANGELOG.md --reporters default,junit --junit-output /tmp/tmpQGJDYu.tmp.xml (dns block)
  • marketplace.visualstudio.com
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json README.md --reporters default,junit --junit-output /tmp/tmp8OX2JP.tmp.xml (dns block)
  • msrc.microsoft.com
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json SUPPORT.md --reporters default,junit --junit-output /tmp/tmp42jiA2.tmp.xml (dns block)
  • opensource.microsoft.com
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json CODE_OF_CONDUCT.md --reporters default,junit --junit-output /tmp/tmpzkRmrv.tmp.xml (dns block)
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json SUPPORT.md --reporters default,junit --junit-output /tmp/tmp42jiA2.tmp.xml (dns block)
  • scorecard.dev
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json README.md --reporters default,junit --junit-output /tmp/tmp8OX2JP.tmp.xml (dns block)
  • semver.org
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json CHANGELOG.md --reporters default,junit --junit-output /tmp/tmpQGJDYu.tmp.xml (dns block)
  • www.bestpractices.dev
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json GOVERNANCE.md --reporters default,junit --junit-output /tmp/tmpTeo4Xu.tmp.xml (dns block)
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json README.md --reporters default,junit --junit-output /tmp/tmp8OX2JP.tmp.xml (dns block)
  • www.cockos.com
    • Triggering command: /opt/hostedtoolcache/node/20.20.0/x64/bin/node node /home/REDACTED/work/hve-core/hve-core/node_modules/.bin/markdown-link-check -c /home/REDACTED/work/hve-core/hve-core/scripts/linting/markdown-link-check.config.json CONTRIBUTING.md --reporters default,junit --junit-output /tmp/tmpoqsAx3.tmp.xml (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Fix broken #file: directives and markdown links after reorg fix(instructions): update broken file directives and markdown links after collection directory reorg Feb 23, 2026
@katriendg katriendg marked this pull request as ready for review February 23, 2026 11:23
@katriendg katriendg requested a review from a team as a code owner February 23, 2026 11:23
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 23, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown
Contributor

@katriendg katriendg left a comment

Choose a reason for hiding this comment

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

Looks very good, but will ask for additional reviewer besides me (as the originator)

@katriendg katriendg requested a review from a team February 23, 2026 12:31
@WilliamBerryiii WilliamBerryiii merged commit fc3c967 into main Feb 23, 2026
21 checks passed
WilliamBerryiii pushed a commit that referenced this pull request Feb 28, 2026
## Pre-Release 3.1.44

### ✨ Features

- add Docusaurus 3 documentation site with GitHub Pages deployment
(#680)
- add workflow permissions validation for OpenSSF Scorecard compliance
(#759)
- add DT coach return path handoff to task-researcher (#591) (#758)
- add DT subagent handoff workflow instructions (#592) (#757)
- create dt-method-06-deep.instructions.md (#602) (#748)
- create dt-method-05-deep.instructions.md (#747)
- add DT-aware task-implementor context instructions (#755)
- extract embedded PowerShell from workflows into testable scripts
(#738)
- add gitleaks binary-based secret scanning as PR gate (#734)
- add SBOM generation, attestation, and diff tooling to release pipeline
(#730)
- add dt-learning-tutor agent for DT education (#662)
- add DT image prompt generation guidance for Method 5 (#726)
- add DT-aware task-reviewer review context (#714)
- add dt-method-next routing prompt (#713)
- create dt-method-04-deep.instructions.md (#709)
- add Implementation Space exit handoff prompt for DT workflows (#708)
- add Write-CIStepSummary markdown table to Test-SHAStaleness github
output (#660)
- add dt-handoff-solution-space prompt for Solution Spac… (#707)

### 🐛 Bug Fixes

- update sidebar link color to meet WCAG AA contrast requirements (#814)
- harden even/odd versioning against regression and syntax errors (#816)
- replace even/odd versioning with SemVer -rc.N suffixes (#811)
- ensure prerelease label exists before PR creation (#806)
- replace Docusaurus favicons with Microsoft logo (#808)
- add missing subagents and shared instructions to collection manifests
(#804)
- standardize file path conventions for copilot-tracking output (#784)
- enforce project-scoped artifact isolation across DT files (#766)
- add top-level permissions to copilot-setup-steps.yml (#760)
- update broken file directives and markdown links after collection
directory reorg (#743)
- add pre-release companion pipeline with even/odd versioning (#735)
- exclude auto-generated CHANGELOG.md from spell check (#756)
- add job-level permissions to extension-publish.yml (#729)
- resolve handoff dependencies using display names (#727)
- add job-level permissions to validate-version in
extension-publish-prerelease (#731)
- replace parent-directory VS Code settings paths with per-subdirectory
enumeration (#732)

### 📚 Documentation

- add Design Thinking documentation and DT-to-RPI handoff (#789)
- add customization guides for HVE Core artifacts (#772)
- reconcile documentation against implementation (#771)
- document accepted Token-Permissions risks and add
lint:dependency-pinning (#763)
- add Design Thinking section to hve-core-all collection description
(#762)

### ♻️ Refactoring

- move collection scripts from plugins to collections (#728)
- remove duplicate git diff logic in frontmatter validator (#473)

### 🔧 Maintenance

- bump basic-ftp from 5.0.5 to 5.2.0 (#780)
- standardize script path references in SKILL.md files (#768)
- bump the github-actions group across 1 directory with 2 updates (#752)

---
*Managed automatically by pre-release workflow.*

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
WilliamBerryiii pushed a commit that referenced this pull request Feb 28, 2026
## Pre-Release 3.1.46

### ✨ Features

- add Docusaurus 3 documentation site with GitHub Pages deployment
(#680)
- add workflow permissions validation for OpenSSF Scorecard compliance
(#759)
- add DT coach return path handoff to task-researcher (#591) (#758)
- add DT subagent handoff workflow instructions (#592) (#757)
- create dt-method-06-deep.instructions.md (#602) (#748)
- create dt-method-05-deep.instructions.md (#747)
- add DT-aware task-implementor context instructions (#755)
- extract embedded PowerShell from workflows into testable scripts
(#738)
- add gitleaks binary-based secret scanning as PR gate (#734)
- add SBOM generation, attestation, and diff tooling to release pipeline
(#730)
- add dt-learning-tutor agent for DT education (#662)
- add DT image prompt generation guidance for Method 5 (#726)
- add DT-aware task-reviewer review context (#714)
- add dt-method-next routing prompt (#713)
- create dt-method-04-deep.instructions.md (#709)
- add Implementation Space exit handoff prompt for DT workflows (#708)
- add Write-CIStepSummary markdown table to Test-SHAStaleness github
output (#660)
- add dt-handoff-solution-space prompt for Solution Spac… (#707)

### 🐛 Bug Fixes

- update prerelease publish to use even/odd convention (#822)
- update sidebar link color to meet WCAG AA contrast requirements (#814)
- harden even/odd versioning against regression and syntax errors (#816)
- replace even/odd versioning with SemVer -rc.N suffixes (#811)
- ensure prerelease label exists before PR creation (#806)
- replace Docusaurus favicons with Microsoft logo (#808)
- add missing subagents and shared instructions to collection manifests
(#804)
- standardize file path conventions for copilot-tracking output (#784)
- enforce project-scoped artifact isolation across DT files (#766)
- add top-level permissions to copilot-setup-steps.yml (#760)
- update broken file directives and markdown links after collection
directory reorg (#743)
- add pre-release companion pipeline with even/odd versioning (#735)
- exclude auto-generated CHANGELOG.md from spell check (#756)
- add job-level permissions to extension-publish.yml (#729)
- resolve handoff dependencies using display names (#727)
- add job-level permissions to validate-version in
extension-publish-prerelease (#731)
- replace parent-directory VS Code settings paths with per-subdirectory
enumeration (#732)

### 📚 Documentation

- add Design Thinking documentation and DT-to-RPI handoff (#789)
- add customization guides for HVE Core artifacts (#772)
- reconcile documentation against implementation (#771)
- document accepted Token-Permissions risks and add
lint:dependency-pinning (#763)
- add Design Thinking section to hve-core-all collection description
(#762)

### ♻️ Refactoring

- move collection scripts from plugins to collections (#728)
- remove duplicate git diff logic in frontmatter validator (#473)

### 🔧 Maintenance

- pre-release 3.1.44 (#819)
- bump basic-ftp from 5.0.5 to 5.2.0 (#780)
- standardize script path references in SKILL.md files (#768)
- bump the github-actions group across 1 directory with 2 updates (#752)

---
*Managed automatically by pre-release workflow.*

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Broken #file: directives and markdown links after collection directory reorg

3 participants