Markdown
Purpose
Use this skill to keep repo markdown clean, consistent, and easy to maintain.
Use When
- Writing or revising markdown docs.
- Fixing markdown lint failures.
- Editing plans, notes, guides, or README files.
Do Not Use When
- The real task is inline code documentation.
- The work is code implementation, not doc authoring.
- The file is not markdown.
Procedure
- Read references/index.md first.
- Identify the document family:
- guide
- note
- plan
- general README or content doc
- Use the canonical template when the document family has one.
- Preserve the existing structure of the doc family unless the task is explicitly a reorganization.
- Apply the repo markdown rules:
- real markdown links, not bare URLs
- no unnecessary inline HTML
- blank lines around headings and lists
- language-tagged fenced code blocks when known
- single trailing newline
- Keep prose lean. Prefer one canonical explanation over duplicated text across several files.
- If the task is markdown-focused or touches several markdown files, run a markdown lint pass before stopping when repo tooling is available.
References
Read references/index.md first.
Handoff Rules
- Hand off to
documentationif the real work is inline code docs rather than markdown documents. - Hand off to
write-notesif the main question is where a note belongs and how to consolidate it without note sprawl.
Prose Wrapping
- Do not hard-wrap ordinary Markdown prose at a fixed column. Keep each paragraph on one source line unless Markdown semantics or a document format requires breaks (for example, lists, tables, code, blockquotes, or fixed-width email/plain-text output).
- Treat editor and browser word wrap as presentation, not a reason to insert newlines.
- Do not reflow prose merely to satisfy Markdownlint MD013. Disable or configure that rule for prose-heavy documentation when appropriate.
- Preserve existing paragraph line structure when editing unrelated text; avoid drive-by reflow.