Auto-fix markdown issues, with Claude assistance for non-fixable ones
Fixes markdown issues with auto-fix and offers Claude assistance for remaining problems.
/plugin marketplace add AgathonicAI/Claude-MarkdownLint/plugin install agathonicai-markdownlint@AgathonicAI/Claude-MarkdownLint[--auto-only] [--files file1.md file2.md]Fix markdown issues using markdownlint auto-fix, then offer Claude-assisted fixes for remaining issues.
Parse any arguments provided from the user's command:
--auto-only: Only apply markdownlint auto-fixes, don't offer Claude assistance--files <paths>: Fix specific files (default: changed files in git)Argument Parsing:
/fix-markdown --auto-only → use auto_only: true/fix-markdown --files README.md → use files: ["README.md"]/fix-markdown --auto-only --files docs/*.md → use both parameters/fix-markdown with no args → use defaults (changed files, with Claude assistance)Call the fix_markdown MCP tool with the parsed parameters:
{}{ "auto_only": true }{ "files": ["path1.md", "path2.md"] }{ "auto_only": true, "files": ["path1.md"] }Report auto-fix results:
For remaining issues (unless --auto-only):
decline_fix to remember their preference for this sessionWhen fixing issues manually:
Always:
Auto-fixed 2 issues.
1 issue remaining:
**README.md:8** - MD001: Heading levels should only increment by one level at a time
Current: ## Overview followed by #### Details
Would you like me to fix this? I'll change `#### Details` to `### Details`.
[User: yes]
Fixed. Re-running lint... All issues resolved.