Back to list
mvillmow

doc-validate-markdown

by mvillmow

Training framework written in Mojo

11🍴 4📅 Jan 24, 2026

SKILL.md


Validate Markdown Skill

Validate markdown formatting and style compliance.

When to Use

  • Before committing documentation
  • Markdown linting errors in CI
  • Creating new documentation
  • Updating existing docs

Quick Reference

# Check all markdown
npx markdownlint-cli2 "**/*.md"

# Check specific file
npx markdownlint-cli2 README.md

# Fix auto-fixable issues
npx markdownlint-cli2 --fix "**/*.md"

Common Issues & Fixes

MD040: Code blocks need language

❌ Wrong - missing language:

code here

✅ Correct - has language:

code here

MD031: Blank lines around blocks

❌ Wrong - no blank lines between text and code block.

✅ Correct - add one blank line before the opening fence and one after the closing fence.

MD013: Line too long

Keep lines under 120 characters. Break long sentences at natural boundaries (clauses, lists).

Configuration

.markdownlint.yaml:

line-length:
  line_length: 120
  code_blocks: false
  tables: false

Validation Checklist

  • All code blocks have language specified (```python)
  • All code blocks have blank lines before and after
  • All lists have blank lines before and after
  • All headings have blank lines before and after
  • No lines exceed 120 characters
  • File ends with newline
  • No trailing whitespace

Error Handling

ErrorFix
MD040: Missing language tagAdd language: ```mojo
MD031: Missing blank linesAdd blank line before/after block
MD013: Line too longBreak line at 120 characters
MD022: Heading spacingAdd blank line before/after heading

Workflow

# 1. Validate your changes
npx markdownlint-cli2 "**/*.md"

# 2. If issues, fix auto-fixable ones
npx markdownlint-cli2 --fix "**/*.md"

# 3. Manually fix remaining issues

# 4. Verify no errors
npx markdownlint-cli2 "**/*.md"

# 5. Commit
git add .
git commit -m "docs: update documentation"

References

  • Related skill: quality-run-linters for complete linting
  • Configuration: .markdownlint.yaml
  • Markdown standards: CLAUDE.md

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon