/leyline:markdown-formattingfrom leyline
Enforces markdown line-wrap at 80 chars, heading spacing, and reference-style links for clean git diffs. Use when writing or editing any committed markdown documentation or skill file.
Ships in leyline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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:
# Heading, never setext underlines)Wrap these content types at 80 characters:
>)- or 1. )Never wrap or reflow these content types:
```) or indented content#--- or +++[id]: url reference lines on their own lineFor each prose paragraph:
. ! ? ) before column 80, ; : ) before column 80and but or ) before column 80See 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.
awk 'length>80' <file> returning no
matches on prose blocks (tables, code, headings, frontmatter
excluded)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub athola/claude-night-market --plugin leyline19 skills in this plugin
/additive-bias-defenseInverts burden of proof for code additions. Use when reviewing PRs, planning refactors, or running unbloat to challenge every addition's necessity./authentication-patternsProvides auth patterns for API keys, OAuth, and token management. Use when implementing or reviewing service authentication and credential handling./content-sanitizationProvides sanitization guidelines for external content in skills and hooks. Use when loading GitHub Issues, PRs, WebFetch results, or any untrusted input./damage-controlRecovers broken agent state via crash recovery, context overflow, and merge conflict protocols. Use when an agent session fails or a worktree is corrupted./decision-journalDecision journal (tradeoffs, lessons learned), deferred-capture contract ([Deferred] issues, CLI args, source labels), storage templates. Use to log a lesson./document-conversionConverts documents and URLs to markdown via tiered fallback (MCP markitdown, native tools, user notice). Use when a skill must ingest PDF, DOCX, or URL content.Other plugins' skills for the same job