Skip to content

docs(apm-guide): fix broken relative links in apm-usage skill - #5884

Open
Sihan Udayaratna (SihanUdayaratna03) wants to merge 2 commits into
microsoft:mainfrom
SihanUdayaratna03:fix/apm-usage-relative-links
Open

Sihan Udayaratna (SihanUdayaratna03) wants to merge 2 commits into
microsoft:mainfrom
SihanUdayaratna03:fix/apm-usage-relative-links

Conversation

@SihanUdayaratna03

@SihanUdayaratna03 Sihan Udayaratna (SihanUdayaratna03) commented Dec 5, 2026 •

Copy link
Copy Markdown

Description

Replaces the 14 repo-relative docs/ links in the apm-usage skill with absolute
links to the published docs site, so they resolve once the skill is installed
via apm install microsoft/apm/packages/apm-guide. Also fixes ../authentication/
in commands.md to ./authentication.md#install-validation-chain. Two links were
already stale (the Cursor hooks guide path and the #author-the-registry anchor),
so they now point at the current pages.

Issue and approved scope

Issue: Fixes #5848

Human scope-approval comment: Broken documentation links have standing preapproval
under CONTRIBUTING.md "Small corrections".

Does this PR complete the issue, or what remains?

Completes the issue. The optional CI check for relative links mentioned in the
issue is not included; it can be a separate follow-up. Also noticed
commands.md:810 uses a site-root link (/apm/enterprise/lifecycle-scripts/) with
the same problem after install; it is not in #5848's list, so it is left out of
this PR.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Verified that every changed link target exists: the docs pages load on the
published site with the referenced anchors (package-types, registry-http-api,
install-mcp-servers, manifest-schema, openapm-v01, write-primitives,
policy-schema, canvas, publish-to-a-marketplace, targets-matrix), and the
authentication.md#install-validation-chain anchor exists in the repo. A link
check over the skill folder went from 16 broken relative links to 1 (the
out-of-scope one noted above).

Changelog

  • One fragment per section, changelog.d/<pr>.<section>.md, holding
    one line: user-visible effect first, 25 words or fewer, ending with
    (#PR); breaking changes only under upgrade notes; no Highlights; no
    new lines under ## [Unreleased]. See changelog.d/README.md and
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Changelog fragment added: changelog.d/5884.fixed.md

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

Copilot AI 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.

🟡 Changes recommended

The surrounding text promises Cursor’s supported mappings and limitations, but the linked section only documents generic Claude and Copilot hooks. It omits Cursor event mappings, supported handler fields, and Claude-import coexistence guidance.

1 open issue
What changed in this PR

Fixes documentation links in the packaged apm-usage skill so they resolve outside the APM repository, addressing #5848.

Changes:

  • Replaces 14 repository-relative links with published documentation URLs.
  • Fixes the sibling authentication link and updates stale destinations.
File Description
packages/​apm-guide/​.apm/​skills/​apm-usage/​package-authoring.md Updates eight documentation links, including stale destinations.
packages/​apm-guide/​.apm/​skills/​apm-usage/​dependencies.md Converts six links to published documentation URLs.
packages/​apm-guide/​.apm/​skills/​apm-usage/​commands.md Links directly to the sibling authentication section.

Review effort: Balanced

@SihanUdayaratna03

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apm-guide: apm-usage skill has relative links that break once the package is installed

2 participants