markdown-formatter
Format and beautify markdown documents with configurable styles. Preserve structure, fix formatting, ensure consistency.
Why use this skill?
Professionalize your documentation with the OpenClaw markdown-formatter. Standardize style, fix syntax, and beautify files automatically.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/michael-laffin/markdown-formatterWhat This Skill Does
The markdown-formatter skill is a robust utility for OpenClaw users designed to standardize, clean, and beautify markdown documentation. Whether you are maintaining a technical project, drafting blog posts, or managing complex documentation files, this tool ensures that your markdown adheres to professional standards. It operates as a highly configurable engine that supports multiple style guides, including CommonMark and GitHub Flavored Markdown (GFM). Beyond simple aesthetic adjustments, it handles critical tasks like normalizing line endings, fixing inconsistent list markers, removing redundant whitespace, and verifying overall syntax validity. By automating the cleanup process, it allows developers and content creators to focus on the substance of their writing rather than the minutiae of formatting.
Installation
To integrate the markdown-formatter into your OpenClaw environment, ensure you have access to the package manager and execute the following command in your terminal:
clawhub install markdown-formatter
Once installed, the tool becomes immediately available to your agent workflows, providing programmatic access to the formatMarkdown, formatBatch, and lintMarkdown functions.
Use Cases
- Standardizing Documentation: Apply a consistent style guide across large repositories to ensure all documentation files share a uniform look and feel.
- Cleanup for CI/CD Pipelines: Integrate the formatter into automated build processes to catch syntax errors or poor formatting before documentation is published to live sites.
- Content Migration: Use the tool to sanitize messy markdown exports from other platforms, ensuring the content is clean and compliant with current project standards.
- Batch Beautification: Quickly process hundreds of README files or technical guides simultaneously to maintain high quality across an entire codebase.
Example Prompts
- "Format the file at ./docs/api-reference.md using GitHub Flavored Markdown style and set the max line width to 100 characters."
- "Please lint the following markdown string for syntax errors and suggest improvements for the list structure: [INSERT_MARKDOWN_HERE]."
- "Run a batch format on all .md files in the current directory and report back any persistent warnings or linting errors found."
Tips & Limitations
- Tip: Always back up your files before running batch operations if you are working on a critical codebase, as reformatting can drastically change the physical file structure.
- Tip: Use the 'custom' style option if your team has specific requirements regarding header depths or table layouts that standard guides do not support.
- Limitation: While the tool is excellent at formatting, it cannot rewrite prose or correct grammatical errors; it is strictly a syntactical and structural assistant.
- Limitation: Ensure your environment has sufficient read/write permissions for the target directories, as the formatter will attempt to overwrite the original files during fix operations.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-michael-laffin-markdown-formatter": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
seo-article-gen
SEO-optimized article generator with automatic affiliate link integration. Generate high-ranking content with keyword research, structured data, and monetization built-in.
price-tracker
Monitor product prices across Amazon, eBay, Walmart, and Best Buy to identify arbitrage opportunities and profit margins. Use when finding products to flip, monitoring competitor pricing, tracking price history, identifying arbitrage opportunities, or setting automated price alerts.
affiliate-master
Full-stack affiliate marketing automation for OpenClaw agents. Generate, track, and optimize affiliate links with FTC-compliant disclosures and multi-network support.
product-description-generator
Generate SEO-optimized product descriptions for e-commerce platforms (Amazon, Shopify, eBay, Etsy). Create compelling, conversion-focused copy with keywords, features, benefits, and calls-to-action. Use when creating product listings, optimizing existing descriptions, or generating bulk product copy.
review-summarizer
Scrape, analyze, and summarize product reviews from multiple platforms (Amazon, Google, Yelp, TripAdvisor). Extract key insights, sentiment analysis, pros/cons, and recommendations. Use when researching products for arbitrage, creating affiliate content, or making purchasing decisions.