Write For Humans
Why this skill exists
docs-hygiene:write-for-agents covers markdown an agent loads and excludes end-user READMEs,
changelogs, and marketing prose, which "have a different reader and different rules." This skill
holds those rules: the same moment (while the doc is written), a different reader.
Resolve the standard before you apply one
The project's own style guide wins over anything in this skill it contradicts. Before writing, look for one: a STYLE.md, a
documentation contributing guide, a house standard named in the contributor docs, or a linter
config encoding prose rules. A declared standard is authoritative and everything below is a
fallback you do not reach for. Say which one you resolved, in one line, before you write.
The layers below are a named default set, not this plugin's house rules. Each settles one
question about the draft, and a finished draft answers all four:
| Layer | Question it answers | Standard |
|---|---|---|
| Mode | Which kind of document is it? | Diátaxis |
| Address | How does a sentence speak to its reader? | Google developer documentation style |
| Load | How much does one sentence hold? | ASD-STE100 Simplified Technical English |
| Ambiguity | Can this be read two ways? | Global English |
A project that adopted a different guide (Microsoft's, Chicago, an in-house one) gets that guide.
A project with none gets these, and you say so, so the choice stays visible and the project can
overrule it later. Never silently impose one.
Four rules that survive a declared guide
A project's own guide replaces everything else in this skill, but not these four: they concern
doing the work, not choosing a style. Apply them under whatever standard you resolved. If a
project's guide contradicts one of them, the project's guide wins.
| Rule | The test | Example |
|---|---|---|
| Delete every word that carries nothing. | Delete the word and reread. If the meaning holds, it stays deleted. | "At this point in time" becomes "now". "It should be noted that" becomes nothing at all. |
| Prefer the short, common word. | A longer word stays only when it is more exact than the short one. | "Start", not "commence". "About", not "approximately". |
| Write the real name, and the real number. | Could a reader paste the term into a codebase search and find it? Name a symbol, file, option, or command as the code names it, not by a description or synonym. | retry_limit, not "the retry setting". |
| Introduce each concept before a sentence relies on it, or name it as assumed knowledge. | Read as someone new to the system. Find the first sentence that uses each term they may not know, including a common word that names one specific thing ("the broker", "the vault"). Its definition goes in that sentence or an earlier one, never the next: a reader who meets an unexplained word has to guess. Without one, name the term as assumed knowledge before that sentence, or add the definition. Notes often define a term after using it; reorder rather than copy that order. | Before "To write an archive to your vault, run stash export.", a README says "Stash keeps your archives in a vault, a folder that stash init creates." Or its opening says "This guide assumes you have a stash vault." Not "Run stash export to write an archive to your vault. A vault is a folder…": the definition comes one sentence late. |
Two cases the third rule's test misses:
- A count or a listing. "Twelve modules", a directory tree, or a file list describes one
commit and drifts after it. Verify it against the commit that adds it, and show beside it how
you got it, such as ls src/modules | wc -l, so a later editor can rerun that and compare.
- A word you made up. Figurative labels ("ratchet", "north star", "substrate", "wedge in")
fail the search test. Write what the thing is in plain words: "a limit that can only go down",
"the goal", "the base", "add". A document may name a pattern, as long as the sentence where the
name first appears says what it means.
Pick the mode first
Each document has exactly one mode. Two questions choose it: will the reader act on this
(doing) or think about it (understanding)? Is the reader studying (learning) or on the
job (work)?
| | Learning | Work |
|---|---|---|
| Doing | tutorial | how-to |
| Understanding | explanation | reference |
This grid is the compass. Point it at a whole document or at one sentence, and consult it whenever
the kind of document is in doubt.
The mode then sets each column below:
| Mode | Voice | Title and opening | Body | Keep out |
|---|---|---|---|---|
| Tutorial | Commands, with "we" as the subject. A stuck reader is a defect in the tutorial, not in the reader. | The artifact the reader ends with, such as "a webhook receiver that answers on port 8080", not a list of topics. | Concrete steps, each followed by what the reader should now observe: a 200 response, a green check, a new file in the folder, so a mismatch shows at the step that caused it. | Background and theory: at most one clause plus a link to the explanation page; a detour mid-lesson loses the reader. |
| How-to | Commands to a competent reader. | The task as the reader would say it: "How to rotate the signing key", not "Signing key rotation". | Only the steps to a result someone needs, with branches where choices exist ("if you need x, do y"). | Teaching, and tours of what the system can do. |
| Reference | Neutral and certain. | The structure of the documented thing, so a reader can move between the code and the page. | Every option, limit, error, and fact, generated from the source code when it can be, to keep it accurate. | Instructions, persuasion, opinion, and hedging. |
| Explanation | Yours: the only mode where an opinion belongs. | A title that still reads correctly with "About" in front of it. | One bounded topic that makes sense without the product open: design decisions, constraints, history, and alternatives considered. | Material belonging to the other three modes. |
One mode per document. A tutorial carries no reference table, a reference page walks no one
through anything, and a how-to argues no position. Split the material into separate documents and
link them.
Check that a person could have written it
Run these three checks over a finished draft:
| Check | A failing draft | The repair |
|---|---|---|
| Is each claim as concrete as the facts allow? | "Caching can cause problems." | Name the case: "A stale cache serves last week's prices." |
| Where the mode allows a view, does the text reach one? | An explanation that sets advantages beside disadvantages and stops. | Say which way the trade-off comes out, and why. Reference pages stay neutral. |
| Do the sentence lengths differ? | Paragraph after paragraph of equally short sentences. | Keep short sentences for a point that should land; let a sentence run longer when a fact needs its condition or consequence beside it. Below the load caps, split by thought, not length: a sentence with two thoughts splits in two, and a long sentence with one stays whole. |
Write the sentences
If applying a rule leaves a sentence harder to read, revert that edit, then repair the sentence
another way or keep the earlier wording.
The address, load, and ambiguity layers apply to every sentence at once, so they share one file: