跳到正文
TakoAPI
返回技能列表

markdown-linter

由 wanng-ide 提供

Web & Frontend Development
527下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Validates Markdown files in the workspace for broken local links, missing file references, and basic syntax issues.

描述

该技能的功能

Validates Markdown files in a workspace by scanning for broken local links, missing file references, and structural issues like header hierarchy and unlabeled code blocks. Outputs a structured JSON report with file locations and error details.

Catches broken internal links and structural issues in bulk across an entire workspace, rather than requiring manual inspection of each file.

何时使用

  • Checking MEMORY.md for broken file references before a commit
  • Validating SKILL.md links after reorganizing a project directory
  • Scanning a docs folder for missing image references
  • Verifying header hierarchy in a project README
  • Finding unlabeled code blocks across documentation files

示例工作流

输入

User asks: scan my workspace for broken links and syntax issues

智能体
  1. 1

    Calls linter.scan('.') on the workspace root

  2. 2

    Recursively traverses all .md files

  3. 3

    Checks each [link](path) reference against the local filesystem

  4. 4

    Validates header hierarchy and code block language tags

  5. 5

    Returns a structured JSON report listing broken links and syntax errors by file and line number

输出

JSON report showing totalFiles scanned, an array of brokenLinks with file path, line number, and error message, and any syntaxErrors found

安装

clawhub install wanng-ide/markdown-linter

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接