markdownlint
Installation
SKILL.md
Markdownlint CLI2 Enforcer
Prerequisite Check
Run this before proposing lint or fix commands:
command -v markdownlint-cli2 >/dev/null 2>&1 || command -v markdownlint >/dev/null 2>&1
If no markdownlint binary is available, surface that first and either run scripts/install.sh or scripts/install.ps1, or use the documented npx --yes markdownlint-cli2 fallback when networked package execution is acceptable.
Quick Start
- Confirm a runner exists:
markdownlint-cli2 --versionornpx --yes markdownlint-cli2 --version - Resolve the config before linting anything
- Run a check without
--fixfirst - Apply
--fixonly when the task requires edits - Re-run the check and report the final status