Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:48:47 +08:00
commit 36566db138
12 changed files with 1320 additions and 0 deletions

20
commands/fix-md.md Normal file
View File

@@ -0,0 +1,20 @@
---
description: Automatically fix markdown linting issues
argument-hint: [path]
allowed-tools: Bash(markdownlint-cli2:*)
model: haiku
---
Fix markdown files at path `$1` (defaults to current directory if not provided).
Run `markdownlint-cli2 --fix` to automatically correct markdown formatting issues according to the markdown-quality skill rules.
## Usage examples
- `/fix-md` - Fix all markdown files in current directory
- `/fix-md docs/` - Fix markdown files in the docs folder
- `/fix-md README.md` - Fix a specific markdown file
After fixing, the tool will report which files were processed and any issues that couldn't be auto-fixed.
For details on the linting rules and configuration, see the markdown-quality skill.

22
commands/lint-md.md Normal file
View File

@@ -0,0 +1,22 @@
---
description: Lint markdown files and report issues with line numbers
argument-hint: [path]
allowed-tools: Bash(markdownlint-cli2:*)
model: haiku
---
Run `markdownlint-cli2` to check markdown files for formatting issues.
Usage examples:
- `/lint-md` - Lint all markdown files in current directory
- `/lint-md docs/` - Lint files in the docs directory
- `/lint-md guides/getting-started.md` - Lint a specific file
The command reports:
- Which files have issues
- Line numbers where issues occur
- Rule violations and descriptions
For guidance on rule interpretations and fixes, refer to the markdown-quality skill.
Do NOT automatically fix issues - this command is for inspection only. Use `/mr-sparkle:fix-md` to apply automatic fixes.