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.
npx agentmods add rules/cdbattags/ai/markdownlint-compliancegit clone --depth 1 https://github.com/cdbattags/aiWrote 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.
[](https://agentmods.dev/rules/cdbattags/ai/markdownlint-compliance)<a href="https://agentmods.dev/rules/cdbattags/ai/markdownlint-compliance"><img src="https://agentmods.dev/badge/rules/cdbattags/ai/markdownlint-compliance.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00534 |
| Opus 5 | $0.00000 | $0.00267 |
| Sonnet 5 | $0.00000 | $0.00107 |
| Haiku 4.5 | $0.00000 | $0.00053 |
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 4d 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.
What it actually says
Markdownlint Compliance
When creating or editing Markdown files (.md, .mdc, .mdx), follow the markdownlint
default rules unless a workspace .markdownlint.json / .markdownlint.jsonc /
.markdownlint.yaml overrides them.
Before Writing Markdown
Check for a workspace config:
.markdownlint.jsonor.markdownlint.jsoncin the workspace rootmarkdownlint.configin.vscode/settings.json
If one exists, follow its overrides. If not, use defaults.
Rules the AI Commonly Violates
| Rule | What | Fix |
|---|---|---|
| MD031 | Fences need blank lines | Blank line above/below fences |
| MD032 | Lists need blank lines | Blank line above/below lists |
| MD040 | Fences need language tag | Add bash, json, etc. |
| MD034 | No bare URLs in prose | Wrap in <url> or [text](url) |
Quick Reference
<!-- ✅ GOOD: blank lines around fences and lists -->
Some text.
- Item one
- Item two
More text.
```bash
echo "has a language tag"
```
<!-- ❌ BAD: missing blank lines, no language tag -->
Some text.
- Item one
- Item two
More text.
```
echo "no language tag"
```
Auto-Fix
Most whitespace-related violations can be fixed automatically:
npx markdownlint-cli2 "path/to/file.md" --fix
Auto-fixable rules: MD009, MD010, MD012, MD022, MD023, MD027, MD030, MD031, MD032, MD047.
Not auto-fixable (must fix manually): MD013 (line length), MD036 (emphasis as heading), MD040 (code fence language), MD034 (bare URLs).
For bulk fixes across a directory:
npx markdownlint-cli2 "docs/**/*.md" --fix
After Editing Markdown
- Run auto-fix:
npx markdownlint-cli2 "path/to/file.md" --fix - Run
ReadLintson the file to catch remaining violations - Manually fix anything
--fixcouldn't resolve
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.
- 4d ago First seen · 81 lines · 0 tokens per session scan A 9e469d43c1aa
markdownlint-compliance is a cursor rule published in the GitHub repository cdbattags/ai (4 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 534 tokens. 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.
Other cursor rules, from other repositories
10-feature-development
Feature implementation workflow and engineering mindset.
11-template-conventions
Reusable building blocks shipped with this template - use them instead of writing new ones.
03-ui
UI, layout, theming and localization standards.
12-new-project
Workflow for starting a new app from this template - rebranding, identity, cleanup and first feature.
13-updating-project
Workflow for updating an existing project - dependency and SDK upgrades, migrations, refactors, bug fixes.
01-tech-stack
Android tech stack and project standards.