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.
97%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
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.
docs/ folder still work.Choose the documentation root (the repository root or a docs/ folder). Links are resolved relative to each file and the root is the boundary.
Run the checker:
python scripts/check_links.py docs
python scripts/check_links.py . --jsonUse --include 'docs/**/*.md' (repeatable) to limit which files are read.
Read each problem line as file:line:column: code target. The codes are explained in rules.
External http:// and https:// URLs are only listed under "External URLs, not checked". Show them to the user for manual review; never fetch them.
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.
0 no problems, 1 at least one problem, 2 usage error or invalid root directory. External URLs never change the exit code.
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.
repository in the plugin manifest, or publish from a GitHub Action to verify it.