Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
athola avatar

Markdown Formatting

  • 82 installs
  • 325 repo stars
  • Updated August 2, 2026
  • athola/claude-night-market

Keep agent-written READMEs, specs, and markdown prose at ~80 columns with sentence- and clause-aware wraps for readable diffs.

About

Markdown Formatting is a cross-cutting agent skill from the Claude Night Market wrapping-rules module that teaches hybrid line wrapping for prose in markdown files. Solo and indie builders (and small teams) use it whenever an AI agent drafts README sections, implementation notes, ADRs, or skill documentation that would otherwise land as single 120+ character lines and noisy diffs. The skill encodes a three-priority algorithm: prefer sentence boundaries, then clause boundaries near column 80, then breaks before conjunctions. It does not replace markdown structure (headings, lists, code fences); it targets flowing prose paragraphs inside those documents. Because the trigger is “when writing prose markdown,” it applies across validate specs, build-time docs, ship-phase changelogs, and operate runbooks—not only one journey phase. Confidence is high for documentation-heavy repos; it is lightweight (~600 estimated tokens) with no external dependencies.

  • Wrap prose at 80 characters using semantic boundaries, not arbitrary word breaks
  • Priority 1: keep whole sentences on one line when they fit under 80 chars
  • Priority 2: break after commas, semicolons, or colons before column 80
  • Priority 3: break before conjunctions (and, but, or) when no clause boundary exists
  • Designed for cleaner git diffs while preserving readable paragraph structure

Markdown Formatting by the numbers

  • 82 all-time installs (skills.sh)
  • Ranked #683 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill markdown-formatting

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs82
repo stars325
Security audit3 / 3 scanners passed
Last updatedAugust 2, 2026
Repositoryathola/claude-night-market

What it does

Keep agent-written READMEs, specs, and markdown prose at ~80 columns with sentence- and clause-aware wraps for readable diffs.

Files

SKILL.mdMarkdownGitHub ↗

Markdown Formatting Conventions

When To Use

  • Writing or editing any markdown documentation
  • Reviewing prose for line-wrapping compliance
  • Generating markdown from plugins (scribe, sanctum, etc.)

When NOT To Use

  • Editing code blocks, tables, or frontmatter (these have

their own formatting rules)

  • Quick scratch notes that will not be committed

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.

Quick Reference

When writing or editing markdown prose:

1. Wrap prose at 80 chars using hybrid wrapping (prefer sentence/clause boundaries over arbitrary word breaks) 2. Blank line before and after every heading 3. ATX headings only (# Heading, never setext underlines) 4. Blank line before every list 5. Reference-style links when inline links push lines beyond 80 chars

What to Wrap

Wrap these content types at 80 characters:

  • Paragraphs (flowing prose text)
  • Blockquote text (the content after >)
  • List item descriptions (text after - or 1. )
  • Descriptions in definition lists

What NOT to Wrap

Never wrap or reflow these content types:

  • Tables: pipe-delimited rows stay on one line
  • Code blocks: fenced ( ` ) or indented content
  • Headings: lines starting with #
  • Frontmatter: YAML/TOML between --- or +++
  • HTML blocks: raw HTML elements
  • Link definitions: [id]: url reference lines
  • Image references: ![alt](url) on their own line
  • Single-line list items: short bullets that fit on one line

Wrapping Algorithm (Summary)

For each prose paragraph:

1. If a sentence fits within 80 chars, keep it on one line 2. If a sentence exceeds 80 chars, break at the nearest sentence boundary (. ! ? ) before column 80 3. If no sentence boundary, break at the nearest clause boundary (, ; : ) before column 80 4. If no clause boundary, break before a conjunction (and but or ) before column 80 5. If none of the above, break at the last word boundary before column 80 6. Never break inside backtick spans, link text, or URLs

See modules/wrapping-rules.md for the full algorithm with examples.

Structural Rules

Blank Lines Around Headings

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.

ATX Headings Only

WRONG:
Heading
=======

WRONG:
Subheading
----------

RIGHT:
# Heading

RIGHT:
## Subheading

Blank Line Before Lists

WRONG:
Some introductory text:
- Item one
- Item two

RIGHT:
Some introductory text:

- Item one
- Item two

Reference-Style Links for Long URLs

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.

Related skills

FAQ

Is Markdown Formatting safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.