Skip to content

Fail CI on broken links, and check agent skill links separately - #3095

Merged
ElliotFriend merged 4 commits into
mainfrom
gate-link-check
Nov 12, 2026
Merged

ElliotFriend merged 4 commits into
mainfrom
gate-link-check

Conversation

@ElliotFriend

@ElliotFriend ElliotFriend commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Splits pnpm check:links into two checks, adds it to pnpm check, and drops continue-on-error from CI, so a broken link fails the build.
    • check:site-links runs mint broken-links (anchors, redirects, and snippets) on site content only: docs/, meetings/, snippets/, launch/, index.mdx, and sds-preview.mdx.
    • check:skill-links runs a new scripts/check-skill-links.mjs, which checks .mintlify/skills/ links the way agents use them: #anchor against GitHub-style heading slugs, and /.well-known/agent-skills/<name>/skill.md against existing skills and their headings.
  • CONTRIBUTING and README describe the new checks.

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-links doesn't know the /.well-known/ routes Mintlify serves, and those files use GitHub's anchor slugs, not Mintlify's.

Known limitations

  • A new top-level content folder has to be added to check:site-links by hand, because mint broken-links has no exclude option.
  • External links stay unchecked, as before.

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

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]>
@mintlify

mintlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
stellar-docs 🟢 Ready View Preview Nov 12, 2026, 4:23 PM

@ElliotFriend

Copy link
Copy Markdown
Contributor Author

/triage

@stellar-doxie

stellar-doxie Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

🤖 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 checks job fails only on the three anchors #3092 fixes, so merge #3092 first.

This PR changes .github/workflows/mintlify-checks.yml, so the security gate keeps it with a human. @kaankacar @ElliotFriend

@stellar-doxie stellar-doxie Bot added the bot:blocked-security Security-surface change; a human must review and merge label Nov 10, 2026
@stellar-doxie

stellar-doxie Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🤖 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 checks job now passes the gated link check: no broken site links, and 0 of 135 skill links broken. The PR diff is unchanged.

This PR changes .github/workflows/mintlify-checks.yml, so the security gate keeps it with a human. @kaankacar @ElliotFriend

@ElliotFriend
ElliotFriend merged commit 93dd3ba into main Nov 12, 2026
8 checks passed
@ElliotFriend
ElliotFriend deleted the gate-link-check branch November 12, 2026 16:24
@stellar-doxie

stellar-doxie Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

🤖 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.

This branch was successfully deployed

1 active deployment
staging — 15b04ab6 Deployed Nov 12, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:blocked-security Security-surface change; a human must review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants