AGENT SKILL

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

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

  1. 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
    
  2. 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 ## Setup sections Make headings unique
    Missing alt text ![](image.png) Add descriptive alt text
  3. 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
    
  4. TOC generation (on request):

    # Extract headings and generate TOC
    grep -E '^#{1,3} ' file.md | sed 's/^## /  - /; s/^### /    - /; s/^# /- /'
    
  5. 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: false to 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

kbarbel640-del
kbarbel640-del/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.

内容创作者
★ 1
kbarbel640-del
kbarbel640-del/skills

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).

Skill与智能体开发
★ 1
kbarbel640-del
kbarbel640-del/skills

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.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

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.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

git-summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

★ 1
kbarbel640-del
kbarbel640-del/skills

agent-constitution

Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.

律师与法务Skill与智能体开发
★ 1