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

SKILL.md

name:
docs-link-check
description:
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.

Docs link check

Offline checker for the internal links of a Markdown documentation tree. It needs only Python 3.10+ and the standard library, makes no network requests and does not run any project code.

When to use

  • The user asks whether the links in a README or a docs/ folder still work.
  • After moving, renaming or deleting files or headings in documentation.
  • Before publishing docs, to catch links that work on a case-insensitive laptop but break on Linux.

Steps

  1. Choose the documentation root (the repository root or a docs/ folder). Links are resolved relative to each file and the root is the boundary.

  2. Run the checker:

    python scripts/check_links.py docs
    python scripts/check_links.py . --json

    Use --include 'docs/**/*.md' (repeatable) to limit which files are read.

  3. Read each problem line as file:line:column: code target. The codes are explained in rules.

  4. External http:// and https:// URLs are only listed under "External URLs, not checked". Show them to the user for manual review; never fetch them.

  5. Report the problems grouped by file. Suggest corrections (fix the case, update the moved path, use the current heading slug) and edit files only when the user asks.

Exit codes

0 no problems, 1 at least one problem, 2 usage error or invalid root directory. External URLs never change the exit code.

Scope

Markdown files only (**/*.md by default): inline links, images, reference definitions and autolinks, outside fenced code blocks and inline code spans. Anchors use GitHub-style heading slugs for ATX headings (# Title). Links with other schemes such as mailto: are ignored. Files over 5 MiB are reported as file_too_large; more than 10,000 matching files stops with exit code 2.

SKILL.md

tile.json