Editing documentation
Improve a document that already exists through focused passes, preserving what the author knows and correcting what the reader can't work around. Editing isn't rewriting — each pass fixes one dimension, because single-dimension passes catch what an everything-at-once review misses.
Voice and audience come from the writing's own guide
Before editing, find the project's style guide, glossary or terminology list and its conventions, and read them:
- In a codebase: the style guide and conventions the project's
AGENTS.md names, or its contributing docs.
- In a chat app: the style guide in the project's files, or attached to the conversation.
- Otherwise: ask whether one exists before concluding there isn't one.
Voice, person, tone, terminology and formatting come from that guide; where it settles something this skill also covers, the guide wins.
- Where the guide is silent or there isn't one,
docs-standards is the default — "you", present tense, imperatives for instructions, the writer kept out, one need per page — and a page that departs from it is a finding, not a matter of taste. Apply it without asking; ask only who the reader is and what the page is for, if the page doesn't make that clear.
- For anything neither the guide nor the defaults settle — the serial comma, the date format, number style — infer the convention from the document itself and say what you inferred.
Ask first
Read the answers from the request, the document and the project first; ask only what's missing. Ask with the app's question tool where it has one, so the choices can be picked; otherwise as a numbered list answered by number. Offer choices where the answers are known and a short typed answer otherwise. Record the answers in the edit notes' header.
- What is the document? Docs page · user guide · internal doc · README · reference entry · engineer's draft.
- Who reads it, and what should they be able to do afterwards? A short answer; skip it when the page makes both clear.
- Which product and version does it describe? A short answer — what the technical accuracy pass checks against.
- What can claims be checked against? The code · the running product · the vendor's docs · nothing (every claim goes on the unverified list).
- Which passes? All five levels · substantive · technical accuracy · line · copy · proof · a quick pass. Default: all five, in order.
- Edit the file, or propose edits? Propose edits for the author · edit the file and list the questions. Default: propose — the author decides.
Before editing
- Establish the document's job — which need it serves, who it's for, and what the reader should be able to do afterwards. You can't judge whether a paragraph belongs without knowing what the document is trying to be.
- Edit to the house standard, not your instincts. The style guide, glossary or terminology list is the standard the author is entitled to; say which standard you applied.
- Establish what you can verify and what you can't. Note which claims you checked against a real source, and which you're taking on trust.
- Read once without editing. Mark problem areas on the first pass; fix on the second. Editing while first reading produces line edits on paragraphs that should have been cut.
- Preserve the author's knowledge and voice. An engineer's draft is usually right and badly organized — the value is in the facts, and those survive every pass. Every edit needs a reason you can state.
The five levels of edit
Work down the levels, in order. A level is only worth running once the level above it is settled: there's no point polishing a sentence in a section that's about to move, and no point checking a comma in a claim that turns out to be false.
1. Substantive — is this the right document?
- One need per page — learning (tutorial), a task (how-to), lookup (reference) or understanding (explanation). A how-to that stops to lecture, a reference that gives advice, a tutorial that pauses for architecture is mixing; fix it by moving, not deleting — the discussion goes to an explanation page and is linked.
- Order for the reader — prerequisites before the first step, the main path before the edge cases, the most important information above the point where a reader gives up.
- What's missing — prerequisites, the failure case, the expected result, what to do next, the limits and edge cases, the version it applies to.
- What's present that shouldn't be — background nobody asked for, content duplicated from a canonical page, the same fact said twice, a section serving the author rather than the reader.
- A planned feature written as shipped — remove it. A roadmap item on a docs page reads as a feature the reader can use today.
- Anything out of scope for this page is better as a link.
2. Technical accuracy — is it true?
- Check every name, signature, value, default, version, flag, path, UI label and error string against the real source: the code, the running product, the vendor's docs. Never against an older version of the page.
- Run the commands and the code. An example that doesn't work is the most expensive defect in a document, because the reader trusts it and debugs their own setup. Check the expected output still matches what the command prints today.
- Check the claims that aren't obviously technical too: timeframes, limits, prices, guarantees, "automatically", "instantly", "always".
- Borrowed text, figures and code are credited and used within their licence.
- Flag anything you couldn't verify, visibly, rather than smoothing over it. Hand the list back to whoever can check it.
3. Line — can the reader follow it?
- One idea per sentence; split anything with two "and"s or a comma pile-up. Over 25 words, split it or make it a list (GOV.UK asks writers to try to split sentences over 25 words; documentation holds to it).
- Front-load the information: the point of the sentence at the start, the qualification after.
- Instructions are imperatives, in the active voice: "Edit
config.yaml", not "the configuration file should be edited" or "you'll want to edit…".
- One action per step, and where before the action: "On the Settings tab, select Keys" (Google, Microsoft).
- Present tense for how the product behaves: "returns", not "will return".
- Fix unclear pronouns — "it", "this", "that" pointing at a whole preceding paragraph.
- Cut the minimisers that make a struggling reader feel stupid — "simply", "just", "easy", "obviously" — and the filler that adds nothing — "basically", "essentially", "note that", "it's worth mentioning".
- Convert passive to active unless the actor is genuinely unknown; turn nominalizations back into verbs ("perform a validation" → "validate"); replace vague quantities with real ones, or say why you can't.
4. Copy — is it consistent?
- One term per concept across the whole docs set, matching the glossary; product names exactly as the style guide writes them. A synonym for a technical concept reads as a second concept.
- Headings — sequential levels, one H1; task headings start with a bare infinitive ("Create an instance", not "Creating an instance"), use the words readers search for, and are parallel across the page (Google).
- Lists — parallel in structure; numbered for a sequence, bulleted for a set; an optional step starts "Optional:"; a one-step procedure is a sentence, not a list of one.
- Formatting — bold only for interface labels and run-in headings; italics for a term being introduced (Google).
- Code —
code formatting on every identifier, path, command, filename and value, and on nothing that isn't code; every code fence labelled, the same way each time (ts, never ts here and typescript there); placeholders follow the set's one convention (docs-code-samples).
- Accessibility — no "above", "below" or "right-hand side" to orient the reader; no colour, size or position as the only cue; a sentence introduces every table; no images of text, code or terminal output; link text makes sense out of context (Google).
- Capitalization, hyphenation, grammar, punctuation, and number and date formats to the style guide — including in headings, tables, image captions and UI references, where drift hides.
5. Proof — will it render?
- Every relative link and anchor resolves; every cross-reference points at a page that exists, including after a page was moved or renamed.
- Frontmatter, navigation entries and sidebar labels are complete and valid for the docs platform.
- Images load, have alt text, and still show the current UI.
- Tables have the right column counts; nothing is cut off; typos, doubled words, stray formatting characters.
- Read the built site, not the Markdown — components, tabs and admonitions break in rendering often enough to be worth the check.
Quick-pass checks
For a fast review, or a short document that doesn't need all five levels. The international standard is ISO 24495-1:2023: plain language means readers can easily find what they need, understand it, and use it — the three tests to apply when a sentence is arguably fine and you can't say why it isn't (the International Plain Language Federation publishes a free summary).
- Word level — cut weak intensifiers (very, really, extremely) and filler (just, actually, basically); replace inflated words where they're used in the inflated sense (utilize→use, facilitate→help, in order to→to); kill nominalizations and needless passives. The full table is
docs-writing-standards' plain-English alternatives.
- Sentence level — one idea per sentence, at most three conjunctions, over 25 words split or listed, important information front-loaded, varied lengths.
- Paragraph level — one topic each, a strong opening sentence, no more than 5 sentences (GOV.UK), and white space between them.
- Run the tools first — a prose linter such as Vale with the project's style package (or the Google or Microsoft package where it has none), and a readability checker (Hemingway, Word's readability statistics). They catch the mechanical misses so the manual passes go to judgement; a score points at a sentence, it doesn't decide it.
- Document level — can a reader who skims only the headings tell what the page covers and find their section?
The AI-tell pass
Run this on anything published under a person's name — in documentation, machine-written patterns read as padding. The full catalog is the AI writing detection reference in docs-writing-standards (the same one /docs-ai-check sweeps with); the short version:
- Claims that don't hold — a citation, command or default that doesn't exist or doesn't say what the page claims. Checking sources beats any style signal.
- Em-dash density — the flag is frequency and pattern, not the character: judged by density per 1,000 words, the same thresholds
/docs-ai-check scores against — more than about 3 per 1,000 is a signal, more than about 6 or two in one paragraph is strong; swap for commas, colons or parentheses. A guide that mandates em-dash asides wins.
- Blacklisted vocabulary — delve, leverage, robust, comprehensive, pivotal, seamless, transformative, "furthermore", "moreover".
- Blacklisted phrases — "In today's fast-paced world…", "It's worth noting that…", "At its core…", "In conclusion…", "Whether you're a X, Y, or Z…". Delete or rewrite as something a person would say aloud.
- Structural patterns — every section the same length, every list exactly three items, a summary restating what was just said, a closing that congratulates the reader.
- Self-check — would a person say it to the reader in conversation? If not, revise it.
The common documentation problems, with a before-and-after edit, are in references/problems.md.
Working collaboratively
The findings go back in the edit notes template, references/edit-notes.md — the scope answers, then the edits, the questions for the author and the unverified claims.
- Run a pass and present findings — what you found, where, and why it's a problem for the reader.
- Recommend specific edits — propose the replacement, don't just flag the defect.
- Separate the fixes from the questions — corrections you can make, and facts only the author or an SME can settle. Batch the questions.
- Let the author decide. They own the document, and on technical content they usually know something you don't.
- Re-verify the earlier levels after each round, and repeat until a full pass finds nothing new.
Boundaries
- The rules every piece obeys — sentences, claims, credit, formatting, never hard-wrap →
docs-writing-standards; the documentation voice and page rules → docs-standards.
- Writing from scratch is out of scope — draft with the skill for that page type, then edit here.
- The conventions being edited to — which term wins, how the product is capitalized, the date format →
docs-style-guide. This skill enforces a standard; it doesn't set one.
- Restructuring that turns out to need a different page, or several → the skill for that type (
developer-docs, user-guides, internal-docs, readmes, api-reference), and docs-planning if the set itself is wrong.
- A full review with numbered findings →
/docs-review; the machine-written sweep as a report → /docs-ai-check; articles, essays and newsletters → editing-standards in content-writing-skills.
- Marketing and conversion copy — landing pages, ads, sales sequences, CTAs — is a different craft, and out of scope.