markdownlint-compliance

markdownlint-compliance is a skill for Claude Code, Codex from cdbattags/ai. It costs 48 tokens per session (2,184 once invoked), scanned A, original, MIT.

A set of rules for writing Markdown, MDX, and related documentation files that pass markdownlint without warnings. Markdownlint is a checker for common Markdown formatting problems.

In plain words
What is it for?
Creating or editing README files, documentation, Cursor rules, skills, and other Markdown-based files while following the workspace's formatting configuration.
Why use it?
It prevents avoidable documentation errors such as missing blank lines around lists or code blocks and explains how the project's lint configuration is selected.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Cursor.

Good fit Creating or editing README files, documentation, Cursor rules, skills, and other Markdown-based files while following the workspace's formatting configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cdbattags/ai/markdownlint-compliance
View source ↗ cdbattags/ai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cdbattags/ai --skill markdownlint-compliance
Clone the repo
git clone --depth 1 https://github.com/cdbattags/ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for markdownlint-compliance

README.md
[![agentmods](https://agentmods.dev/badge/skills/cdbattags/ai/markdownlint-compliance/github.svg)](https://agentmods.dev/skills/cdbattags/ai/markdownlint-compliance)
Your own site
<a href="https://agentmods.dev/skills/cdbattags/ai/markdownlint-compliance"><img src="https://agentmods.dev/badge/skills/cdbattags/ai/markdownlint-compliance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for markdownlint-compliance

Your own site · 80×15
<a href="https://agentmods.dev/skills/cdbattags/ai/markdownlint-compliance"><img src="https://agentmods.dev/badge/skills/cdbattags/ai/markdownlint-compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,184 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02184
Opus 5 $0.00024 $0.01092
Sonnet 5 $0.00010 $0.00437
Haiku 4.5 $0.00005 $0.00218

Measured 9d ago against content hash 83f243cd25e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

markdownlint-compliance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/markdownlint-compliance/SKILL.md · 273 lines

How it starts

The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Markdownlint Compliance

Config Resolution

markdownlint checks for config in this order (first match wins):

  1. markdownlint.config in VS Code / Cursor settings
  2. .markdownlint.jsonc in the workspace root
  3. .markdownlint.json in the workspace root
  4. .markdownlint.yaml / .markdownlint.yml in the workspace root
  5. Built-in defaults (all rules enabled)

Before writing markdown, check if a config exists:

ls .markdownlint* 2>/dev/null || echo "no config — using defaults"

If no config exists, all rules are enabled with their default settings.

Rules the AI Commonly Violates

These are the rules most frequently broken by AI-generated markdown, ordered by frequency:

MD031 — Blank lines around fenced code blocks

Fenced code blocks must have a blank line before the opening fence and after the closing fence.

<!-- ❌ BAD -->
Some text:
```bash
echo "hello"
```
More text.

<!-- ✅ GOOD -->
Some text:

```bash
echo "hello"
```

More text.

MD032 — Blank lines around lists

Lists need a blank line before the first item and after the last item.

<!-- ❌ BAD -->
Some text:
- Item one
- Item two
More text.

<!-- ✅ GOOD -->
Some text:

- Item one
- Item two

More text.

MD040 — Fenced code blocks should have a language specified

Every fenced code block needs a language identifier after the opening triple backticks.

Common language tags: bash, json, yaml, markdown, typescript, python, tsx, css, html, sql, nix, toml, diff, text, plaintext.

Use text or plaintext if no language applies. Use markdown for markdown examples.

MD034 — No bare URLs

URLs in prose must be wrapped — either as links or angle brackets.

<!-- ❌ BAD -->
See https://example.com for details.

<!-- ✅ GOOD -->
See <https://example.com> for details.
See [the docs](https://example.com) for details.

MD060 — Table column style

Table pipes must be consistently styled. Use the "compact" style (single space padding):

Read the full file on GitHub · 273 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 273 lines · 48 tokens per session scan A 83f243cd25e7

Subscribe to this mod's changes

markdownlint-compliance is a skill published in the GitHub repository cdbattags/ai (4 stars, last pushed 6mo ago), licensed MIT. It adds 48 tokens to every session and 2,184 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

implementation-loop

Disciplined plan-build-verify loop for implementing a feature or change. Use when building something new or modifying existing behavior, especially across multiple files.

KingEmma7/cursor-os · 33 tokens

debugging-loop

Systematic reproduce-isolate-fix-verify loop for bugs, test failures, and unexpected behavior. Use when something is broken and the cause is not yet known.

KingEmma7/cursor-os · 37 tokens

tw-migrate

Analyze a Tailwind CSS v3 project and generate a complete migration plan to v4. Scans config, CSS, and template files for v3 patterns and produces a prioritized checklist with exact find-and-replace commands.

RoninForge/roninforge-tailwind-v4 · 48 tokens

tw-component

Generate a UI component using correct Tailwind CSS v4 utility classes, CSS variable theming, and accessibility best practices. Prevents v3 syntax hallucination by grounding output in verified v4 patterns.

RoninForge/roninforge-tailwind-v4 · 43 tokens

tw-validate

Scan a Tailwind CSS project for v3/v4 version mixing, deprecated patterns, and common mistakes. Reports issues with exact file locations and suggested fixes.

RoninForge/roninforge-tailwind-v4 · 35 tokens

android-feature

Workflow for implementing a new Android feature, screen, fragment, activity, dialog, adapter, or enhancement in this XML/MVVM template. Use whenever the user asks to add, build, implement, or extend functionality — before writing any code. Covers planning, the MVVM/MVI skeleton, the Android configuration checklist…

orbitalsonic/AndroidPilot · 72 tokens