Dev Markdown Lint logo

Dev Markdown Lint

Community
Nebulavenus
dev-markdown-lint

Check and fix markdown formatting issues with markdownlint-cli2

Overview

PublisherNebulavenus
Repositoryforge-gpu
Skill namedev-markdown-lint
Stars
46
Forks
7
Bundled files
Instructions only
LicenseZlib
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Nebulavenus on GitHub. Read the source before you install it.

Installation

Install the Dev Markdown Lint AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-markdown-lint
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Nebulavenus/forge-gpu.git /tmp/forge-gpu
mkdir -p .claude/skills
cp -r /tmp/forge-gpu/.claude/skills/dev-markdown-lint .claude/skills/dev-markdown-lint
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Dev Markdown Lint in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Dev Markdown Lint on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Dev Markdown Lint is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Check markdown files for formatting and style issues using markdownlint-cli2.

When to use this skill:

  • Before committing changes to markdown files
  • After creating or updating lessons, READMEs, or documentation
  • When CI markdown linting checks fail
  • To ensure consistent markdown style across the project

AI auto-invocation:

The model should automatically invoke this skill:

  • After creating/updating markdown files — Run npx markdownlint-cli2 "**/*.md" to check
  • Before git commits touching markdown — Verify no linting errors
  • If errors found — Attempt auto-fix with --fix flag first, then fix remaining errors manually
  • Always verify after fixes — Re-run to ensure all errors resolved

Arguments

  • --fix (optional): Automatically fix auto-fixable issues

If no arguments provided, runs in check-only mode.

What it does

  1. Check mode (default): Reports errors without modifying files
  2. Fix mode (--fix): Automatically fixes issues like:
    • Missing blank lines around headings
    • Inconsistent list formatting
    • Trailing whitespace
    • Some language tag issues (if the content type is obvious)

Note: Not all errors are auto-fixable. Some require manual intervention (like choosing the right language tag for a code block).

Configuration

The project uses .markdownlint-cli2.jsonc for configuration:

Strict rules (must follow):

  • MD040: Code blocks MUST have language tags (```text, ```c, ```bash, etc.)
  • MD060: Tables must have consistent column alignment

Lenient rules:

  • Line length (MD013): Disabled — lessons need flexibility
  • Blank lines (MD031/MD032): Lenient — formatting varies by context
  • Duplicate headings (MD024): Allowed at different levels
  • HTML (MD033): Allowed when needed for formatting

CRITICAL — Configuration is non-negotiable:

  • NEVER disable or remove lint rules to make errors pass
  • NEVER relax existing rules (e.g., turning MD040 from error to warning)
  • NEVER modify .markdownlint-cli2.jsonc to bypass validation
  • NEVER remove or disable the CI workflow (.github/workflows/markdown-lint.yml)

If linting fails, fix the markdown — do not weaken the linter. Quality checks protect learning quality for all users.

Common errors and fixes

MD040: Missing language tag on code block

Error:

text
README.md:45 MD040/fenced-code-language Fenced code blocks should have a language specified

Problem: Code block missing language identifier:

text
```
some code here
```

Fix: Add appropriate language tag:

text
```c
some code here
```

Common tags:

  • bash — Shell commands, scripts
  • c — C code
  • text — Plain text, output, diagrams, directory trees
  • markdown — Markdown examples
  • cmake — CMake files
  • hlsl — Shader code

Nested code blocks: When showing a code block inside a code block (like in documentation), use 4 backticks for the outer fence:

text
````markdown
# Example
```c
code here
```
````

MD060: Table columns should have consistent alignment

Error:

text
README.md:80 MD060/table-column-count Table row column count

Problem: Table rows have different numbers of columns, or alignment is inconsistent.

Fix: Ensure all rows have the same number of columns:

markdown
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1   | Cell 2   | Cell 3   |
| Cell 4   | Cell 5   | Cell 6   |

Running the skill

Check for errors

bash
/dev-markdown-lint

Or manually:

bash
npx markdownlint-cli2 "**/*.md"

Auto-fix issues

bash
/dev-markdown-lint --fix

Or manually:

bash
npx markdownlint-cli2 --fix "**/*.md"

Workflow

Before committing

Always run markdown linting before creating a commit with markdown changes:

bash
npx markdownlint-cli2 "**/*.md"

If errors are found:

  1. Try auto-fix: npx markdownlint-cli2 --fix "**/*.md"
  2. Review remaining errors and fix manually
  3. Re-run to verify: npx markdownlint-cli2 "**/*.md"

In CI

The .github/workflows/markdown-lint.yml workflow runs automatically on:

  • Pull requests touching markdown files
  • Pushes to main with markdown changes

If CI fails, run the linter locally to see the errors.

Implementation

When this skill is invoked:

  1. Parse arguments:

    • Check if --fix flag is present
    • Default to check-only mode
  2. Run markdownlint-cli2:

    bash
    npx markdownlint-cli2 [--fix] "**/*.md"
  3. Interpret results:

    • Exit code 0: All files pass ✓
    • Exit code 1: Errors found
  4. Report to user:

    • If errors found: List them with file:line and error code
    • Suggest fixes for common errors (MD040, MD060)
    • If --fix was used, report what was auto-fixed
    • Show command to re-run manually if needed
  5. Next steps:

    • If errors remain after auto-fix, guide user to fix manually
    • Suggest running the skill again to verify fixes

Tips

  • Always add language tags to code blocks — it improves readability and syntax highlighting
  • Use text for non-code blocks like output, diagrams, directory trees
  • Nested code blocks require different fence lengths (outer uses 4+ backticks)
  • Run before committing to catch issues early
  • Auto-fix first then handle remaining errors manually
  • Check the config (.markdownlint-cli2.jsonc) to understand which rules are enabled

Example output

All files pass:

text
markdownlint-cli2 v0.20.0 (markdownlint v0.40.0)
Finding: **/*.md
Linting: 20 file(s)
Summary: 0 error(s)

Errors found:

text
markdownlint-cli2 v0.20.0 (markdownlint v0.40.0)
Finding: **/*.md
Linting: 20 file(s)
README.md:45 MD040/fenced-code-language Fenced code blocks should have a language specified
lessons/math/01-vectors/README.md:180 MD040/fenced-code-language Fenced code blocks should have a language specified
common/math/DESIGN.md:85 MD040/fenced-code-language Fenced code blocks should have a language specified
Summary: 3 error(s)

Related documentation

  • markdownlint rules
  • Project config: .markdownlint-cli2.jsonc
  • CI workflow: .github/workflows/markdown-lint.yml
  • CLAUDE.md section on markdown linting

Frequently asked questions

What does the Dev Markdown Lint AI skill do?

Check and fix markdown formatting issues with markdownlint-cli2

Why use Dev Markdown Lint on TypingMind?

Because you install it once and use it with any model. Dev Markdown Lint is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Dev Markdown Lint in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-markdown-lint. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Dev Markdown Lint?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Dev Markdown Lint?

As many as you like. As long as a model supports skills, you can use Dev Markdown Lint with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Dev Markdown Lint AI skill free?

Yes. It is published on GitHub by Nebulavenus under the Zlib license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇