lint-markdown

Markdown Linting with markdownlint-cli2

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "lint-markdown" with this command: npx skills add bresends/skills/bresends-skills-lint-markdown

Markdown Linting with markdownlint-cli2

Workflow

  1. Run auto-fix first

markdownlint-cli2 --fix "<filepath>"

This resolves ~30 fixable rules automatically (white space, list style, blank lines, emphasis style, etc.).

  1. Re-lint to find remaining issues

markdownlint-cli2 "<filepath>" 2>&1

  • Exit code 0 = clean. Stop here.

  • Exit code 1 = errors remain. Continue to step 3.

Parse each error line: <file>:<line>[:<col>] <MDXXX>/<alias> <description>

  1. Manually fix remaining errors

Read the file, then apply fixes with the Edit tool. For rule-specific fix strategies, consult references/rules.md.

Common non-fixable issues and quick fixes:

  • MD040 (fenced-code-language): Add a language identifier after opening (e.g.,bash , ```json ). Use text if no language applies.

  • MD033 (no-inline-html): Replace HTML tags with Markdown equivalents. Remove tags with no Markdown equivalent if they are non-essential.

  • MD001 (heading-increment): Ensure headings increase by one level only (# then ## , never # then ### ).

  • MD045 (no-alt-text): Add descriptive alt text to images: description .

  1. Verify clean

markdownlint-cli2 "<filepath>" 2>&1

Repeat steps 3-4 until exit code is 0 .

Notes

  • Always quote file paths in commands to handle spaces.

  • If a .markdownlint-cli2.jsonc , .markdownlint.yaml , or similar config exists in the project, respect its rule overrides.

  • When linting multiple files, use globs: markdownlint-cli2 --fix "**/*.md" .

  • The --fix flag modifies files in place. It is safe to run repeatedly.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

git-commit

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Self Updater

⭐ OPEN SOURCE! GitHub: github.com/GhostDragon124/openclaw-self-updater ⭐ ONLY skill with Cron-aware + Idle detection! Auto-updates OpenClaw core & skills, an...

Registry SourceRecently Updated
1171Profile unavailable
Coding

ClawHub CLI Assistant

Use the ClawHub CLI to publish, inspect, version, update, sync, and troubleshoot OpenClaw skills from the terminal.

Registry SourceRecently Updated
1.9K2Profile unavailable
Coding

SkillTree Learning Progress Tracker

Track learning across topics like an RPG skill tree. Prerequisites, milestones, suggested next steps. Gamified learning path.

Registry SourceRecently Updated
900Profile unavailable