markdown-link-check
Skill3 starsChanged 8 months agoMITView on GitHub
Check local Markdown links, images and heading anchors. Use for broken README links, Markdown link checks or 文件連結檢查.
In this repository18 other files it gives its agents.
- architecture-diagramSkill
- case-studySkill
- csv-to-chartSkill
- cv-optimizeSkill
- db-edaSkill
- demo-storytellingSkill
- disk-cleanupSkill
- drawioSkill
- generate-imageSkill
- gh-issue-to-specSkill
- json-validateSkill
- log-triageSkill
- pdf-to-summarySkill
- postmortemSkill
- product-positioningSkill
- proposal-reviewSkill
- roundtableSkill
- vendor-evalSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Use an available Markdown parser to collect inline links, image links and reference-style definitions/usages, excluding fenced/inline code …
- Distinctive: line 24
If only regex/manual inspection is available, disclose limited coverage.
- Distinctive: line 34
Verify existence and file/directory type with read-only checks.
- Distinctive: line 40
If asked to fix, change only verified broken targets or missing reference definitions, preserve link labels and recheck.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Check Markdown links
Workflow
- Establish the root and Markdown files to inspect; default to the supplied file, not the entire home directory. Read repository docs for the target renderer (GitHub, MkDocs, etc.). Do not follow symlinks outside the authorized root.
- Use an available Markdown parser to collect inline links, image links and reference-style definitions/usages, excluding fenced/inline code and comments. If only regex/manual inspection is available, disclose limited coverage; regex alone is not a complete Markdown parser. Do not auto-install a parser.
- Classify each target:
- relative path: resolve against the containing Markdown file, percent-decode once and preserve case; strip query and fragment before filesystem checks;
- same-document fragment: resolve against headings for the selected renderer;
- cross-document fragment: verify target file and then its heading;
- root-relative path: resolve only when the site root is known, otherwise mark unresolved; do not assume filesystem root or repository root;
- http(s), mailto, data, custom schemes: record but do not contact externally.
- Verify existence and file/directory type with read-only checks. Detect paths escaping the root before opening them. For anchors, respect duplicate headings, Unicode, punctuation, explicit IDs and renderer-specific slugging. If renderer behavior cannot be established, mark anchor unverified instead of broken.
- Report a table: source path/line, target, status (valid/broken/unverified/skipped), reason and proposed minimal correction. Summarize checked vs skipped coverage.
- If asked to fix, change only verified broken targets or missing reference definitions, preserve link labels and recheck. Do not create placeholder documents merely to make links pass.
Examples
- README.md links to
docs/setup.md#configuration: check the file and heading. [guide][setup]without a[setup]: ...definition: report missing reference.[example](missing.md)inside a code fence: skip as an example.- A network URL is skipped in this local-only workflow; it is not declared valid.
Quality Gates
- Links and images resolve relative to their source document.
- Code examples do not create false broken-link reports.
- Anchors are checked using the actual renderer, including duplicate headings.
- External and out-of-root targets are not fetched.
- Unsupported syntax/renderer behavior is unverified, never a silent pass.
- No source changes unless the user requested fixes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

