athola/markdown-formatting
Enforces markdown line-wrap and structure rules for clean git diffs. Use when writing or editing any committed markdown documentation or skill file.
npx skills add https://github.com/athola/claude-night-market --skill markdown-formatting
their own formatting rules)
These conventions apply to all markdown documentation generated
or modified by any plugin. The goal: produce prose that creates
clean, reviewable git diffs and reads well on mobile devices.
When writing or editing markdown prose:
sentence/clause boundaries over arbitrary word breaks)
# Heading, never setext underlines)beyond 80 chars
Wrap these content types at 80 characters:
>)- or 1. )Never wrap or reflow these content types:
`) or indented content#--- or +++[id]: url reference lines!alt on their own lineFor each prose paragraph:
sentence boundary (. ! ? ) before column 80
boundary** (, ; : ) before column 80
(and but or ) before column 80
before column 80
See modules/wrapping-rules.md for the full algorithm with
examples.
WRONG:
Some text.
## Heading
More text.
RIGHT:
Some text.
## Heading
More text.
Exception: the first line of a file may be a heading without
a preceding blank line.
WRONG:
Heading
=======
WRONG:
Subheading
----------
RIGHT:
# Heading
RIGHT:
## Subheading
WRONG:
Some introductory text:
- Item one
- Item two
RIGHT:
Some introductory text:
- Item one
- Item two
When an inline link pushes a line beyond 80 characters, use
reference-style syntax:
WRONG (line too long):
See the [formatting guide](https://google.github.io/styleguide/docguide/style.html) for details.
RIGHT:
See the [formatting guide][fmt-guide] for details.
[fmt-guide]: https://google.github.io/styleguide/docguide/style.html
Place link definitions at the end of the current section or
at the end of the document. When the same URL appears multiple
times, use a single shared reference definition.
Short inline links that keep the line under 80 chars are fine:
OK:
See [the guide](https://example.com) for details.
fewer; verified with awk 'length>80' <file> returning no
matches on prose blocks (tables, code, headings, frontmatter
excluded)
the first line of a file); no setext-style underline headings
present
converted to reference-style syntax with the URL definition at
the end of the section or document
Take athola/markdown-formatting from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.