agentsclimarketplace

Writing docs

Skill darrenbuse/Claudery/skills/writing-docs

How to write well-structured documentation using the Diataxis framework — classify every doc into exactly one quadrant (tutorial, how-to, reference, explanation), keep the quadrant boundaries, match voice to quadrant, and draft in plain language. Covers repo docs (READMEs, how-tos, architecture, reference), team docs (onboarding, runbooks) and Obsidian vault notes (summaries, decision records); a status update stays with writing-style even when saved to the vault. WHEN writing, reviewing or restructuring a README, how-to, tutorial, reference page, architecture doc, runbook, onboarding guide, troubleshooting guide, ADR or vault note.From its SKILL.md

Install
npx -y skills add darrenbuse/Claudery --skill writing-docs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.5 KB, as published. Nobody here has run it

Writing Docs

Overview

Classify before you write. Every doc serves one of four purposes, and mixing them produces docs that serve no reader well — too slow for practitioners, too thin for learners, too noisy for lookup. This skill covers repo docs, team-facing docs and Obsidian vault notes.

Classify first

Ask two questions about the reader:

  1. Studying or working? Studying → left column. Working (mid-task, at the keyboard) → right column.
  2. Practical steps or understanding? Steps → top row. Knowledge → bottom row.
StudyingWorking
StepsTutorialHow-to guide
KnowledgeExplanationReference
  • Tutorial — a lesson. The reader builds one concrete thing and gains skill. Answers "teach me".
  • How-to guide — steps to a goal. The reader already knows the basics. Answers "how do I X?".
  • Reference — austere description of what exists. Answers "what is X?".
  • Explanation — discussion of why. Answers "why is it this way?".

Map common types before writing:

Doc typeQuadrantNote
READMECompound (exception)Landing page: reference-voice description plus an embedded quickstart, linking out for the rest; the one sanctioned multi-quadrant doc — keep each section in one quadrant's voice
QuickstartHow-toFastest path to a working result
Onboarding guideTutorialA new teammate is a learner
RunbookHow-toSymptom → exact commands → verification
Troubleshooting guideHow-toOrganise by symptom, not by cause
Architecture docExplanationDesign and trade-offs; no steps
ADR / vault decision noteExplanationContext, decision, consequences
Vault summary noteRecord (exception)Outside the quadrant map; apply the sentence-craft rules only

Boundary rules

  1. One purpose per doc. A doc that needs two quadrants is two docs. Split, then cross-link.
  2. Tutorials are lessons, not how-tos. The tutorial reader is a student; the how-to reader is a practitioner with a goal. The difference is study versus work, not basic versus advanced.
  3. Reference describes. It never instructs ("first do X"), explains ("because Y") or persuades ("we recommend Z"). Link out for those.
  4. Explanation discusses. Numbered steps in an explanation mean you are writing a how-to — move the steps out and link.
  5. Lead with outcomes, not features. Title task docs after what the reader achieves: "Move data to the warehouse", not "The Pipeline API".
  6. Show, don't tell. Every concept gets a concrete example — code, output, a diagram. The showing often replaces the telling.

Voice by quadrant

QuadrantPersonTonePatternsNever
Tutorial"we"Encouraging, patient"First, do X. You should see..."; one path, no choicesAlternatives, theory paragraphs, "you will learn"
How-to"you"Direct; assumes competenceConditional imperatives: "If you need X, do Y"Teaching basics, narrating the UI
ReferenceThird personAustere, factual, no personality"Returns a list of...", "Defaults to usd"Instruction, opinion, narrative
Explanation"we"/"I", conversationalThoughtful; opinion allowed"We chose X because...; the trade-off is..."Steps, parameter listings

Word rules, all quadrants: cut "simply", "easy", "just" and "please"; write descriptive link text, never "click here"; write "use", not "leverage" or "utilize"; name the section you mean, never "above" or "below".

Sentence craft

  • Kill filler. Delete on sight: "It's important to note that", "In order to", "Basically", "As mentioned earlier". Say the thing.
  • One purpose per sentence. Break long sentences at each new action or dependency.
  • Back claims with code or numbers. "Reduced image load time from 320ms to 120ms", not "much faster". Delete "powerful", "robust" and "seamless" — replace with the specific.
  • Hedge once, deliberately. Cut reflexive hedges ("seems", "appears", "might") on claims you verified; where uncertainty is real, name it once explicitly instead of hedging every sentence. Cut "always", "never" and "completely" — stop where evidence ends.
  • Real examples. Real filenames, paths, ports and values: docker run -p 8080:8080 myapp:latest, not hello-world; [email protected], not foo.
  • Banned phrases. For the full taxonomy, see ../writing-style/references/banned-phrases.md.

Drafting workflow

  1. Classify. One quadrant, using the two questions. Record it.
  2. Outline the sections. In task docs, phrase headings as outcomes ("Restore the database from backup"), not topics ("Backups").
  3. Bullet each section. One atomic claim per line. No prose yet.
  4. Convert each bullet into exactly one simple sentence. One — a bullet allowed to become two sentences re-inflates into a paragraph.
  5. Merge and vary. Combine trivially related bullets; vary sentence length so the result reads as prose, not a transcript.
  6. Keep genuine lists as lists. Reference tables, prerequisite lists and step sequences stay structured — Diataxis reference form beats forced prose.
  7. Review. Check the draft against references/anti-patterns.md and the definition_of_done in this skill's frontmatter. Delete violations; do not soften them.

References

  • references/templates.md — copy-paste skeletons for tutorial, how-to, reference page, explanation, README, runbook and ADR.
  • references/anti-patterns.md — review checklist of docs smells. Run it before calling any doc done.

Adapted from anivar/developer-docs-framework (MIT) and Xamfonos/technical-writing-best-practices (MIT); Diataxis by Daniele Procida (diataxis.fr).

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.