# Markdownlint Cli2

> Use this skill when the user wants to lint Markdown files, fix Markdown formatting, check MD syntax, or enforce Markdown style rules.

- Skill: `javimosch/markdownlint-cli2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/markdownlint-cli2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/markdownlint-cli2/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/markdownlint-cli2

---


# markdownlint-cli2 Plugin

Markdown linter with rule configuration and fix support.

## Commands

### Lint
- `markdownlint-cli2 lint run` — Lint Markdown files
- `markdownlint-cli2 lint fix` — Lint and auto-fix Markdown files

## Usage Examples
- "Check all Markdown files for issues"
- "Fix formatting in my README.md"
- "Lint the docs directory"
- "Auto-fix markdown issues"

## Installation

```bash
npm install -g markdownlint-cli2
```

## Examples

```bash
# Lint all markdown files
markdownlint-cli2 "*.md"

# Lint with fix
markdownlint-cli2 --fix "*.md"

# Lint specific directory
markdownlint-cli2 "docs/**/*.md"

# With config
markdownlint-cli2 --config .markdownlint-cli2.jsonc "*.md"
```

