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

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

Repository SourceNeeds Review
94.2K159.8K
anthropics
Coding

remotion-best-practices

Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge.

Repository SourceNeeds Review
2.1K147.6K
remotion-dev