Repository navigation
Fail CI on broken links, and check agent skill links separately - #3095
Conversation
mint broken-links reports every cross-skill and in-page link in .mintlify/skills/ as broken: Mintlify serves those files as raw Markdown at /.well-known/agent-skills/, and their anchors use GitHub's slugs. Run it on site content only, and check the skills with a script that resolves their links the way agents follow them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
/triage |
|
🤖 Automated message from the Stellar Triage Bot. Reviewing because @ElliotFriend asked with /triage. Verified: the skill-link script's slugs match the real headings, its coverage claim holds, and all 8 skill routes return 200. The This PR changes |
|
🤖 Automated message from the Stellar Triage Bot. Back on this because @ElliotFriend pushed a merge of main after asking with /triage. PR #3092 has merged. The This PR changes |
|
🤖 Automated message from the Stellar Triage Bot. Back on this because @ElliotFriend pushed after asking with /triage. @kaankacar approved and @ElliotFriend merged this at the final head. All checks passed at that head and on main after the merge. I closed the hold issue stellar/github-triage-bot#81. No linked issue to follow up. |
What
pnpm check:linksinto two checks, adds it topnpm check, and dropscontinue-on-errorfrom CI, so a broken link fails the build.check:site-linksrunsmint broken-links(anchors, redirects, and snippets) on site content only:docs/,meetings/,snippets/,launch/,index.mdx, andsds-preview.mdx.check:skill-linksruns a newscripts/check-skill-links.mjs, which checks.mintlify/skills/links the way agents use them:#anchoragainst GitHub-style heading slugs, and/.well-known/agent-skills/<name>/skill.mdagainst existing skills and their headings.Why
The old check reported 44 broken links, so CI ignored it, and nobody could tell when a PR added one. 41 of them were false positives in the skill files:
mint broken-linksdoesn't know the/.well-known/routes Mintlify serves, and those files use GitHub's anchor slugs, not Mintlify's.Known limitations
check:site-linksby hand, becausemint broken-linkshas no exclude option.With #3092 merged, both checks pass (0 of 135 skill links broken), and the script caught all five bad links planted in a test copy of the skills.
🤖 Generated with Claude Code