md-lint-fix
Skill0 starsChanged 2 months agoMITView on GitHub
Detecta y auto-corrige errores de markdownlint-cli2 en archivos .md modificados antes de commit/push. Resuelve MD024 con contexto del heading padre, MD040 infiriendo idioma del bloque, y MD031/32/34/28/27/22/26/29/30/09/12/047 vía --fix. Reporta los que requieren criterio humano (MD025, MD042, MD051). Úsalo cuando el usuario diga "arregla el lint MD", "corrige los markdown", "limpia los .md", "fix markdownlint", o proactivamente después de editar archivos .md. Trabaja sobre Path.cwd() — funciona en cualquier repo.
- Installs packages
- Commits and pushes
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- vladimiracunadev-create/claude-skills-toolkitedited, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- bitcoin-custody-auditSkill
- docker-cleanupSkill
- docker-compose-doctorSkill
- functional-user-flow-testerSkill
- md-to-docSkill
- pre-commit-guardSkill
- preliminary-product-testerSkill
- pre-push-guardSkill
- python-deps-pinningSkill
- python-lint-guardSkill
- python-version-controlSkill
- release-evidence-auditorSkill
- repo-coherence-auditSkill
- security-auditSkill
- software-resilience-state-testerSkill
- nombre-del-skillSkill
- version-bumpSkill
- web-snapSkill
- yaml-controlSkill
The file
Files
md-lint-fix
Detecta, auto-corrige y reporta errores markdownlint en archivos .md
modificados — antes de cualquier git commit o git push.
IMPORTANTE — Cómo funciona desde cualquier repositorio
El script vive en ~/.agents/skills/md-lint-fix/fix-md-lint.py pero usa
Path.cwd() como raíz de trabajo. Esto significa que trabaja siempre
en el directorio donde estás parado, no en portfolio-pages.
Desde cualquier repo, el comando es:
# Archivos .md modificados según git (uso normal pre-push)
python ~/.agents/skills/md-lint-fix/fix-md-lint.py
# Todos los .md del repo actual
python ~/.agents/skills/md-lint-fix/fix-md-lint.py --all
# Solo diagnóstico sin modificar nada
python ~/.agents/skills/md-lint-fix/fix-md-lint.py --dry-runEl script detecta el repo actual desde Path.cwd() — no importa desde
qué carpeta se llame el script.
Cuándo usar este skill
- El usuario menciona errores MD031, MD034, MD040, MD032, MD024, MD028
- Antes de hacer commit/push con archivos
.mdmodificados - Después de crear o editar skills, docs o cualquier archivo markdown
- El usuario dice "arregla el lint", "corrige los markdown", "limpia los MD"
Errores que resuelve automáticamente
| Código | Descripción | Solución |
| MD024 | Duplicate headings | Script propio — añade contexto del heading padre |
| MD040 | Fenced code block without language | Script propio — infiere lenguaje por contenido |
| MD031 | Blank lines around fenced code blocks | Auto-fix (--fix) |
| MD032 | Lists surrounded by blank lines | Auto-fix (--fix) |
| MD034 | Bare URL used | Auto-fix (--fix) — envuelve en <> |
| MD028 | Blank line inside blockquote | Auto-fix (--fix) |
| MD027 | Multiple spaces after blockquote | Auto-fix (--fix) |
| MD022 | Headings not surrounded by blank lines | Auto-fix (--fix) |
| MD026 | Trailing punctuation in heading | Auto-fix (--fix) |
| MD029 | Ordered list item prefix | Auto-fix (--fix) |
| MD030 | Spaces after list markers | Auto-fix (--fix) |
| MD009 | Trailing spaces | Auto-fix (--fix) |
| MD012 | Multiple consecutive blank lines | Auto-fix (--fix) |
| MD047 | Single trailing newline | Auto-fix (--fix) |
No resuelve automáticamente (requieren criterio humano):
- MD025 — múltiples headings H1 (implica reestructura)
- MD014 —
$antes de comandos shell (decisión de estilo) - MD042 — enlaces vacíos (requiere URL real)
- MD051 — fragmentos de enlace rotos (requiere verificar ancla)
- MD013 — line length (desactivado en la mayoría de proyectos)
- MD033 — inline HTML (depende de config del proyecto)
Requisito en el repo destino
El repo donde se ejecute debe tener markdownlint-cli2 disponible.
Recomendado: pnpm (postinstall bloqueado por defecto + cuarentena de 24 h sobre versiones nuevas — ver docs/supply-chain-security.md).
# Verificar si está instalado
pnpm exec markdownlint-cli2 --version
# Instalar en el repo (recomendado)
pnpm add -D markdownlint-cli2
Si el repo no tiene markdownlint-cli2, pnpm dlx markdownlint-cli2 permite una ejecución puntual. El script principal usa pnpm exec y no cae automáticamente a otros gestores.
Flujo de ejecución del script
- Detecta
.mden scope (modificados o todos según flag) - Escanea con
markdownlint-cli2y cuenta errores iniciales - Corrige MD024: añade contexto del heading padre para desambiguar
- Corrige MD040: infiere lenguaje del bloque (bash/python/json/yaml/hcl/etc.)
- Auto-fix con
markdownlint-cli2 --fix(14 reglas) - Verifica y reporta errores restantes agrupados por código de regla
Referencia de reglas
Documentación oficial: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

