hemsoft/public-skills/markdown

Claude Code and agent skill by hemsoft/public-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

V1.0 - Expert guidance for markdown linting with markdownlint-cli2, quality enforcement, and best practices. Use when enforcing markdown quality standards.

Install

npx vskill@latest install hemsoft/public-skills/markdown

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

Markdown Expert

Expert guidance for markdown linting, quality enforcement, and documentation best practices.

Markdownlint - Markdown Linter

What is markdownlint?

markdownlint is a static analysis tool that checks markdown files for:

  • Style consistency
  • Formatting issues
  • Common mistakes
  • Best practices violations
  • Accessibility concerns

Integrated with:

  • VS Code extension (real-time feedback)
  • Command line (markdownlint-cli2)
  • Git pre-commit hooks
  • CI/CD pipelines
Installation

markdownlint-cli2 (Node.js-based, recommended):

powershell
npm install -g markdownlint-cli2

Verify installation:

powershell
markdownlint-cli2 --version
Basic Usage

Lint a single file:

powershell
markdownlint-cli2 README.md

Lint all markdown files recursively:

powershell
markdownlint-cli2 "**/*.md"

Fix auto-fixable issues:

powershell
markdownlint-cli2 --fix "**/*.md"

Custom configuration:

powershell
markdownlint-cli2 --config .markdownlint.jsonc "**/*.md"
Common Rules
RuleDescriptionFixable
MD001Heading levels increment by oneNo
MD003Heading style (ATX/setext)Yes
MD004Unordered list styleYes
MD009Trailing spacesYes
MD010Hard tabsYes
MD012Multiple consecutive blank linesYes
MD013Line lengthNo
MD022Headings surrounded by blank linesYes
MD025Single top-level headingNo
MD031Fenced code blocks surrounded by blank linesYes
MD032Lists surrounded by blank linesYes
MD040Fenced code languageNo
MD046Code block styleYes
MD047File should end with newlineYes

Full rule list: <https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md>

Configuration

Create .markdownlint.jsonc in repository root:

jsonc
{
// Default state for all rules
"default": true,
// MD013/line-length - Line length (disabled for long URLs, tables, code)
"MD013": {
"line_length": 120,
"heading_line_length": 120,
"code_block_line_length": 120,
"code_blocks": false,
"tables": false,
"headings": true
},
// MD024/no-duplicate-heading - Multiple headings with same content
"MD024": {
"siblings_only": true // Allow same heading in different sections
},
// MD033/no-inline-html - Inline HTML (allow for specific tags)
"MD033": {
"allowed_elements": ["br", "details", "summary", "sup", "sub"]
},
// MD040/fenced-code-language - Fenced code blocks should have language
"MD040": true,
// MD046/code-block-style - Code block style (fenced preferred)
"MD046": {
"style": "fenced"
}
}
VS Code Integration

markdownlint extension provides real-time feedback.

Extension ID: DavidAnson.vscode-markdownlint

Install:

powershell
code --install-extension DavidAnson.vscode-markdownlint

Settings (settings.json):

json
{
"markdownlint.config": {
"default": true,
"MD013": false
}
}
Best Practices
  1. Use fenced code blocks with language specifiers

``markdown `powershell Get-Process ` ``

  1. Consistent heading hierarchy - Don't skip levels

``markdown # H1 ## H2 ### H3 ``

  1. Surround headings with blank lines

```markdown Previous paragraph.

## Heading

Next paragraph. ```

  1. End files with newline - Most rules expect this
  1. Use consistent list markers
  • Use - for unordered lists
  • Use 1. for ordered lists
  1. Add language to code blocks

```markdown `javascript console.log('Hello'); ` ```

Common Issues and Fixes

Issue: MD009 - Trailing spaces

powershell
# Fix automatically
markdownlint-cli2 --fix "**/*.md"

Issue: MD012 - Multiple consecutive blank lines

markdown
# ❌ Bad
Paragraph 1.
Paragraph 2.
# ✅ Good
Paragraph 1.
Paragraph 2.

Issue: MD040 - Fenced code language

`markdown
# ❌ Bad

code here

# ✅ Good

code here

Issue: MD047 - Files should end with newline

  • Most editors do this automatically
  • Configure your editor to add final newline
Ignoring Rules

In configuration (.markdownlint.jsonc):

jsonc
{
"MD013": false // Disable line length globally
}

In-file comments (use sparingly):

markdown
<!-- markdownlint-disable MD013 -->
This line can be really really long without triggering the line length rule.
<!-- markdownlint-enable MD013 -->

Note: Only disable rules with good reason. Fix the markdown instead.

Quick Fix Script

Run this to auto-fix common issues:

powershell
# Fix all markdown files in repository
markdownlint-cli2 --fix "**/*.md"
# Fix specific directory
markdownlint-cli2 --fix "docs/**/*.md"

Quality Standards

All markdown files should adhere to:

  • ✅ Consistent heading hierarchy (no skipped levels)
  • ✅ Fenced code blocks with language specifiers
  • ✅ Proper blank lines around headings, lists, and code blocks
  • ✅ No trailing spaces
  • ✅ Files end with newline
  • ✅ Line length limits (120 chars for content)
  • ✅ Consistent list markers

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationPassed, 85 of 100Effective. 1 run. Evaluated 8 months ago.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 6 May 2026, 6 months ago.

Extension points

  • hookPre/post lifecycle hooks
  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hemsoft/public-skills/markdown/badge)](https://verified-skill.com/skills/hemsoft/public-skills/markdown)

Something wrong with this skill or its page? Tell us.