markdown-linter
Lint Markdown files for style issues, broken links, and formatting problems with auto-fix suggestions.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- description
- Lint Markdown files for style issues, broken links, and formatting problems with auto-fix suggestions.
02 资源文件 2
- 参考文档_meta.json282 B
- 参考文档README.md310 B
03 SKILL.md 正文
Markdown Linter
Check and improve Markdown file quality with style checks and auto-fix.
Use when linting markdown files, checking link validity, or fixing formatting.
Requirements
- Optional:
markdownlint-cli(npm install -g markdownlint-cli) - Works without external tools using text analysis
- No API keys needed
Instructions
-
Using markdownlint-cli (preferred if available):
# Lint a single file npx markdownlint README.md # Lint a directory npx markdownlint "docs/**/*.md" # Auto-fix issues npx markdownlint --fix README.md # With config file npx markdownlint -c .markdownlint.json README.md -
Manual analysis (when CLI unavailable) — check for:
Issue How to Detect Fix Skipped heading levels # → ###(skipped##)Add missing level Inconsistent list markers Mixed *,-,+Standardize to -Trailing whitespace Lines ending with spaces Trim trailing spaces Missing blank lines No blank line before/after headings Add blank lines Long lines Lines > 120 chars Wrap or restructure Broken relative links [text](./missing.md)Verify file exists Duplicate headings Multiple ## SetupsectionsMake headings unique Missing alt text Add descriptive alt text -
Link validation:
# Extract all links grep -oE '\[([^\]]*)\]\(([^)]+)\)' file.md # Check relative links exist grep -oE '\]\(\.\/[^)]+\)' file.md | sed 's/.*(\.\///' | sed 's/)//' | while read f; do [ ! -f "$f" ] && echo "BROKEN: $f" done -
TOC generation (on request):
# Extract headings and generate TOC grep -E '^#{1,3} ' file.md | sed 's/^## / - /; s/^### / - /; s/^# /- /' -
Output format:
## ? Markdown Lint Report — README.md | Line | Issue | Severity | |------|-------|----------| | 12 | Heading level skipped (h1 → h3) | ⚠️ Warning | | 25 | Trailing whitespace | ? Style | | 38 | Broken link: ./setup.md | ? Error | **Summary:** 1 error, 1 warning, 1 style issue **Auto-fixable:** 1 of 3 issues
Recommended .markdownlint.json
{
"MD013": { "line_length": 120 },
"MD033": false,
"MD041": false
}
Edge Cases
- MDX files: Some JSX syntax will trigger false positives. Use
MD033: falseto allow HTML. - Generated files: Skip auto-generated markdown (CHANGELOG.md, API docs).
- Frontmatter: Ensure linter is configured to ignore YAML frontmatter blocks.
- Tables: Long tables may trigger line-length warnings — consider disabling MD013 for those files.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.