CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/docs-link-check

Check Markdown docs offline for broken relative links, case-sensitive path mismatches, missing heading anchors and links that escape the root. Use when the user asks to check, audit or fix links in README or docs files.

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

rules.mdreferences/

Link rules

Problem codes

CodeMeaning
missing_fileThe relative path does not exist. Each path segment is compared with exact case, so Docs/Guide.md does not match docs/guide.md.
missing_anchorThe #fragment does not match any heading anchor in the target Markdown file (or in the same file for #fragment links).
outside_rootThe path resolves above the scanned root through ...
file_too_largeA Markdown file over 5 MiB was skipped.

What is extracted

  • Inline links [text](target) and images ![alt](target), with optional titles and <angle> targets.
  • Reference definitions [label]: target at the start of a line.
  • Autolinks <scheme://...>.
  • Nothing inside fenced code blocks (``` or ~~~) or inline code spans.

Target handling

  • http:// and https:// targets: collected as external URLs and listed, never requested.
  • #fragment: checked against the headings of the same file.
  • Other schemes (mailto:, tel:, ftp:): ignored.
  • Relative paths: percent-decoded once, resolved against the folder of the file, then checked segment by segment with exact case. A #fragment after a .md path is checked against that file's headings; fragments on other file types are not checked.
  • An empty path ([x]()) is ignored.

Heading anchors

GitHub-style slugs for ATX headings (# to ######, up to three leading spaces):

  1. Remove backticks and asterisks; replace [text](url) by text.
  2. Lower-case; keep letters, marks, digits, -, _ and spaces; drop other characters.
  3. Replace spaces with -.
  4. For repeated slugs in one file, the first keeps the plain slug and later ones get -1, -2, ...

Example: # Install & Run gives install--run; ## API (v2) gives api-v2. Setext headings (underlined with === or ---) and HTML anchors are not recognized.

Limits

  • Default: 10,000 Markdown files, 5 MiB per file, UTF-8 text; unreadable or non-UTF-8 files are skipped silently.
  • Only the links written in the Markdown are checked; generated sites may use different slugs.

references

SKILL.md

tile.json