markdown-line-length-120
Skill1 starsChanged 29 days agoApache-2.0View on GitHub
Apply Markdown drafting rules an autofixer cannot fix — wrap body lines at 120 chars (MD013), one H1 per document (MD025), named links instead of bare URLs (MD034), language tag on every fenced code block (MD040). Use when editing `*.md` in a repository that pins markdownlint `MD013.line_length` to 120.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/apm-authoring.mdcCursor rule
- .cursor/rules/change-description-authoring.mdcCursor rule
- .cursor/rules/docs-page-authoring.mdcCursor rule
- .cursor/rules/english-developer-style.mdcCursor rule
- .cursor/rules/markdown-line-length-120.mdcCursor rule
- .cursor/rules/qubership-repo-essentials.mdcCursor rule
- .cursor/rules/qubership-workflow-hub-usage.mdcCursor rule
- apm-authoringSkill
- change-description-authoringSkill
- docs-page-authoringSkill
- english-developer-styleSkill
- markdown-line-length-120Skill
- qubership-actions-guideSkill
- qubership-templates-guideSkill
- qubership-workflow-conventionsSkill
- apm-authoringSkill
- change-description-authoringSkill
- docs-page-authoringSkill
- english-developer-styleSkill
- qubership-actions-guideSkill
- qubership-templates-guideSkill
- qubership-workflow-conventionsSkill
The file
Files
Markdown drafting rules an autofixer cannot fix
Build every .md file with these four rules in mind from the first draft.
They are not autofixable, so pasting in a long paragraph and rewrapping it
afterwards is wasted work. Run markdownlint-cli2 --fix before commit for
the rest (MD022, MD032, MD060, MD029, MD026, MD047, ...).
Wrap body lines at 120 characters (MD013)
Plan the sentence around the wrap, not the other way round. Break at word
boundaries; never split `inline code` or a [link](url) span across
lines. List-item continuations indent by two spaces to line up with the
bullet content. Exempt from the limit: YAML frontmatter, fenced code blocks,
and pipe tables — do not reformat them to fit 120.
One H1 per document (MD025)
The first heading is the title (#). All later sections are ## or deeper.
A section break never gets promoted back to #, even when the document is
long.
Named links, not bare URLs (MD034)
Write [the SDK reference](https://example.com/sdk), not
https://example.com/sdk on its own. When the URL really is the link text
(citations, release notes), wrap it in angle brackets:
<https://example.com/sdk>.
Language tag on every fenced code block (MD040)
```yaml, ```bash, ```text, ```diff — always pick
one. Use text for plain output, directory listings, ASCII diagrams, or
fixtures with no syntax to highlight.
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.

