Markdown Linter
Lint Markdown files for style issues, broken links, and formatting problems with auto-fix suggestions.
Why use this skill?
Improve your project documentation with the OpenClaw Markdown Linter. Automatically detect broken links, formatting issues, and style errors to keep your repo clean.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sa9saq/markdown-linterWhat This Skill Does
The Markdown Linter skill for OpenClaw is a robust diagnostic and maintenance tool designed to ensure your Markdown documentation adheres to industry-standard formatting, accessibility, and style guidelines. Whether you are managing technical documentation, project README files, or complex MDX files, this agent automates the tedious process of manual review. It identifies structural inconsistencies, validates relative file paths to prevent broken documentation links, and provides actionable auto-fix suggestions. By utilizing the markdownlint-cli library for structured environments or fallback text analysis for ad-hoc checks, the skill helps maintain professional, readable, and error-free repository documentation.
Installation
To integrate the Markdown Linter into your environment, use the OpenClaw command-line interface: clawhub install openclaw/skills/skills/sa9saq/markdown-linter. While the skill operates out-of-the-box using built-in heuristic analysis, installing markdownlint-cli via npm install -g markdownlint-cli is strongly recommended for enhanced performance and advanced configuration support, such as the use of custom .markdownlint.json files for project-specific rules.
Use Cases
- Quality Assurance: Standardizing formatting across multiple contributors in a repository to ensure consistent list markers and indentation.
- Link Integrity: Automatically auditing relative file links to ensure that project documentation doesn't lead to 404 errors when navigating through a file tree.
- Accessibility Compliance: Scanning for missing alt text on images and ensuring logical heading hierarchies to make documentation accessible for assistive technology users.
- Technical Refactoring: Cleaning up legacy markdown files by removing trailing whitespace, enforcing line lengths, and fixing skipped heading levels to ensure compatibility with static site generators like Jekyll, Hugo, or Docusaurus.
Example Prompts
- "Run a full linting check on the ./docs folder and provide a summary report of any broken links or style issues found."
- "Review README.md for formatting errors, fix all auto-fixable issues, and generate a Table of Contents based on the current heading structure."
- "Check if there are any skipped heading levels in the API specification file and suggest improvements for better readability."
Tips & Limitations
- Edge Case Handling: When working with MDX (React-based Markdown), ensure you set
MD033: falsein your configuration to avoid false positives caused by JSX syntax. - Automated Skipping: Always exclude machine-generated files like
CHANGELOG.mdfrom linting to avoid unnecessary churn in your diffs. - Performance: For massive documentation sets, run the linter in subdirectories rather than the root to maintain speed.
- Limitations: The text-based fallback analysis is heuristic; for complex scientific or multi-language documents, the CLI version is significantly more reliable and should be prioritized whenever possible.
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-sa9saq-markdown-linter": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
threat-model
Threat modeling and attack scenario design. Identify risks before they become vulnerabilities. STRIDE, attack trees, risk matrix.
Sns Auto Poster
Schedule and automate social media posts to X/Twitter with cron-based queue management.
security-review
Comprehensive security review for code, configs, and operations. OWASP, prompt injection, crypto security. Auto-triggers on security-related changes.
Process Monitor
Monitor system processes, identify top CPU/memory consumers, and alert on resource thresholds.
Readme Generator
Auto-generate comprehensive README.md files by analyzing project structure and configuration.