auto-format-doc
Installation
SKILL.md
Auto Format
Coding agents should not format files by hand. Instead, after creating or modifying a file, run the appropriate external formatter. This keeps formatting consistent across the project and avoids drift between human-written and agent-written files.
Currently supported: Markdown (.md) via Prettier.
When to run
After every Write or Edit operation that produces or modifies a .md file,
run the format command on that file. This includes:
- Creating a new Markdown file
- Editing an existing Markdown file
- Renaming or moving a Markdown file (format the new path)