Back to skills
SKILL.md
Markdown Validator
ASecurityValidates Markdown files for broken local links.
- 21 stars
- 0 votes
- 0 copies
- 3 views
- Added September 7, 2026
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill markdown-validator --agent claude-codeAre you the author of Markdown Validator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-markdown-validator)---
name: markdown-validator
description: Validates Markdown files for broken local links.
---
# Markdown Validator
Validates Markdown files for broken local links. Use this skill to check internal documentation consistency.
## Usage
```bash
# Validate current directory
openclaw exec node skills/markdown-validator/index.js .
# Validate specific file
openclaw exec node skills/markdown-validator/index.js README.md
```
## Features
- Scans recursively
- Checks relative links
- Ignores external URLs (http/https)
- Ignores anchors within the same file (#anchor)
- Outputs JSON report of broken links with line numbers
## Example Output
```json
[
{
"file": "/path/to/README.md",
"valid": false,
"brokenLinks": [
{
"text": "Link Text",
"url": "./broken-link.md",
"line": 10
}
]
}
]
```
Files in this skill
- SKILL.md
- index.js
- package.json
- scripts/test.js
Attribution
Related skills
View all in documentation →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.