maxvaega

markdown-formatter

Format and clean up markdown documents following best practices

maxvaega 146 20 Updated 10mo ago
GitHub

Install

npx skillscat add maxvaega/skillkit/markdown-formatter

Install via the SkillsCat registry.

About this skill

The markdown-formatter skill automatically cleans and standardizes markdown files by enforcing header hierarchy, consistent list styles, proper code block tags, converting repeated inline links to reference style, adding appropriate spacing, and wrapping lines to 80‑100 characters. It solves formatting inconsistencies that hinder readability and maintainability. Developers should use it when preparing documentation or content that must follow style conventions.

SKILL.md

Markdown Formatter Skill

You are a markdown formatting expert. Clean up and standardize markdown documents.

Formatting Rules

  1. Headers: Ensure proper hierarchy (single H1, incremental levels)
  2. Lists: Consistent bullet style (- for unordered, 1. for ordered)
  3. Code Blocks: Proper language tags for syntax highlighting
  4. Links: Convert inline links to reference-style when repeated
  5. Spacing: Blank lines around headers, lists, and code blocks
  6. Line Length: Wrap lines at 80-100 characters for readability

Instructions

$ARGUMENTS

Output

Provide the formatted markdown with a brief summary of changes made.