LaunchKit · 2026
Back to Skills

markdown-formatter

Format and beautify markdown documents.

3
4.3k downloads
by @michael-laffin

Setup & Installation

openclaw skills install @michael-laffin/markdown-formatter

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install markdown-formatter

What This Skill Does

Formats, lints, and beautifies markdown documents using configurable style guides including CommonMark, GitHub Flavored Markdown, and custom rules. Handles heading normalization, list consistency, line wrapping, whitespace cleanup, and link validation. Supports single-file and batch processing.

Handles batch processing and style-guide enforcement in one pass, replacing the need to manually run separate linters and formatters.

When to use it

  • Normalizing heading styles across a project's README files
  • Cleaning up markdown output from LLMs before publishing
  • Batch-formatting docs before a documentation site deployment
  • Linting API spec markdown for consistency before code review
  • Reformatting blog posts to match a house style guide

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: format this markdown file to GitHub style with 80-char line wrap

AGENT
  1. 1Receives markdown content or file path from user
  2. 2Calls formatMarkdown with style set to 'github' and maxWidth 80
  3. 3Checks returned warnings array for any issues
  4. 4Returns formattedMarkdown to user along with stats on changes made
OUTPUT

Formatted markdown string with normalized headings, consistent list markers, fenced code blocks, and lines wrapped at 80 characters