Fix Markdown Lint
Documentsfix-markdown-lintFix Markdown Lint is an Agent Skill for documents published in the multigres/multigres repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Fix markdown linting and prettier formatting issues in markdown files
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/multigres/multigres/blob/HEAD/.claude/skills/fix-markdown-lint/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fix-markdown-lint, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Fix Markdown Lint
Fix markdown lint errors and prettier formatting issues so CI passes.
Usage
/fix-markdown [file ...]
If no files are specified, auto-detect changed .md files:
git diff --name-only HEAD upstream/main -- '*.md'
Instructions
1. Identify errors
Run markdownlint with the repo config to see all errors:
markdownlint-cli2 --config .github/linters/.markdownlint.json <files>
Read each file that has errors before fixing.
2. Fix errors
Apply fixes for each error type:
MD013 — Line length (max 120 chars, code blocks and tables exempt):
- Break long lines at sentence boundaries
- Keep related phrases together when possible
- Do not break URLs or inline code spans
MD040 — Fenced code block language:
- Add a language identifier after the opening triple backticks
- Use
textfor plain text, CLI output, or pseudo-code diagrams - Use the actual language (
bash,go,json,yaml,sql,markdown) when the content is code
MD060 — Table column style:
- Add spaces around pipes in separator rows:
| --- | --- |not|---|---| - Prettier will handle full table alignment afterward
Other rules:
- Read the markdownlint rule documentation if you encounter an unfamiliar rule
- Fix according to the rule's requirements
3. Run prettier
After fixing lint errors, run prettier to normalize formatting:
npx prettier --write <files>
Prettier will align tables, normalize spacing, and fix other formatting.
4. Verify
Re-run markdownlint to confirm all errors are resolved:
markdownlint-cli2 --config .github/linters/.markdownlint.json <files>
If errors remain, fix them and repeat until clean.
Config reference
- Markdownlint config:
.github/linters/.markdownlint.json- Line length: 120 (code blocks and tables exempt)
- Prettier: default config (no
.prettierrc) - CI runs both checks via super-linter