Authoring and maintenance rules for Markdown: documentation, specs, reports, READMEs, changelogs, AGENTS.md, CLAUDE.md and skill files, issue and PR bodies and comments, multi-section chat replies, and large comment blocks in code. Covers one home per fact, document bloat, qualifiers, cross-references as Markdown links instead of §N, Mermaid diagrams, hard specs and changelogs. Use when writing, editing, restructuring or reviewing any such text. Not for one-line replies or short inline code comments.
Ships in docs. 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.
Applies to every md file you write, edit, restructure, or review.
Every fact lives in exactly one place; everything else references it.
| Fact | Home |
|---|---|
| who/whom/when/order, branching, concurrency, flows, lifecycle, state machines and etc | diagrams |
| invariants and trade-offs the reader acts on | prose |
| numbers: limits, TTLs, quotas, thresholds | tables |
| failure dispositions | failure tables |
| exact formats / data schemas | code blocks or diagrams |
| derivation: why not otherwise, refuted alternatives, boths costs; discutions | Not icluded or outside (link to issue, PR, external document or etc) |
A document has one reader. Every sentence exists because someone asked a question, and the question decides which document answers it:
| Question | Asked by | Home |
|---|---|---|
| What do I do? | whoever implements it | this document |
| Is this still true? | whoever re-checks it on an upgrade | this document, one line |
| Why not otherwise? | whoever reopens the decision | outside, linked |
| Are you sure? | whoever challenged you last round | nowhere — a fact about the process, not the subject |
Documents bloat problem. A review round invents a reader the document does not have, and the answer to that reader lands in the document — true, not a copy, not a restatement, so every rule in One home per fact passes it. Repeat over several rounds and a two-line rule carries fifty lines of defence.
Counterfactual test. Would you have written this sentence if nobody had challenged you? If no, it is addressed to the challenger, and its home is wherever the challenge was raised.
This does not ban rationale. What the reader must act on stays, at full length: a caveat that changes what someone does — "flip this flag and you inherit that obligation" — is a decision, not derivation, and never compresses to a marker.
A qualifier — an adjective, a parenthetical, a narrowing noun — is a claim, held to the same standard as the sentence it modifies.
.mmd
Mermaid schema" (Mermaid also lives in .md), "created once per module" (once — and one
module may hold several), "actions are referenced by name" (inline functions are legal
too). Widen it or drop it.unstable_ is a prefix, "(experimental)" next to an unstable_ name,
"external inspector" for a field named inspector.Qualifier test. Two questions per qualifier: is it true of every case the sentence covers, and does the sentence lose meaning without it? A no to either — the qualifier goes.
A qualifier the reader acts on is not a qualifier, it is the fact: version bounds, platform limits, "only in dev builds" stay.
#anchor — never by position or number: numbering breaks on insertion, links
don't. Exception: contexts where a link cannot render (e.g. the ⚠§N marker
inside diagram text), backed by an explicitly frozen numbering.#anchor. Anchors
derive from heading text, so a heading rename is an API break:
found inbound links and fix referrers.Editing scope is the fact, not the dry diff:
Before writing or editing ANY Mermaid diagram, load references/mermaid-craft.md.
A hard spec — a specification, design doc, or any long technical document under revision — has failure modes the rules above do not cover. Before writing, compressing, restructuring, reviewing or acting on a review finding against one, load references/hard-spec.md.
Before writing or editing an changelog, or closing a release section, load references/changelog.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/docs:markdown-craftfrom docs
npx claudepluginhub fozy-labs/astp --plugin docs