markdown-lint
Installation
SKILL.md
Markdown Lint
为仓库配置 markdown 格式检查(markdownlint + 水平线禁止)和 pre-commit hook。
Prerequisites
| Tool | Type | Required | Install |
|---|---|---|---|
| Node.js | cli | Yes | brew install node or nodejs.org |
| markdownlint-cli2 | cli | Yes | npx markdownlint-cli2 (no install needed) |
| pre-commit | cli | No | uv tool install pre-commit --with pre-commit-uv or pipx install pre-commit or brew install pre-commit |
Do NOT proactively verify these tools on skill load. If a command fails due to a missing tool, directly guide the user through installation and configuration step by step.
When to Use
- 新仓库初始化:第一次为仓库添加 markdown 格式标准
- 检查/修复:运行格式检查或批量修复现有文件
- 迁移:将格式标准复制到另一个仓库
Related skills