Check markdown files for style and formatting issues
Checks markdown files for style and formatting issues using markdownlint.
/plugin marketplace add AgathonicAI/Claude-MarkdownLint/plugin install agathonicai-markdownlint@AgathonicAI/Claude-MarkdownLint[--scope changed|all] [--files file1.md file2.md]Check markdown files for issues using markdownlint.
Parse any arguments provided from the user's command:
--scope changed (default): Lint files changed in git--scope all: Lint all markdown files--files <paths>: Lint specific filesArgument Parsing:
/lint-markdown --scope all → use scope: "all"/lint-markdown --files README.md docs/guide.md → use files: ["README.md", "docs/guide.md"]/lint-markdown with no args → use scope: "changed" (default)--files flag takes precedence over --scopeCall the lint_markdown MCP tool with the parsed parameters:
{ "scope": "changed" } or { "scope": "all" }{ "files": ["path1.md", "path2.md"] }Present results to the user:
/markdownlint:fix-markdown if issues were foundWhen issues are found:
Found 3 issues in 2 files:
**README.md**
- Line 12: MD022 - Headings should be surrounded by blank lines
- Line 45: MD031 - Fenced code blocks should be surrounded by blank lines
**docs/guide.md**
- Line 8: MD001 - Heading levels should only increment by one level at a time
2 issues are auto-fixable. Run `/markdownlint:fix-markdown` to fix them.
When no issues:
All markdown files pass linting.