/docs-hygiene:write-for-humans [<doc or section being written>]from docs-hygiene
Writes human-facing documentation (READMEs, RFCs, design docs, release notes, changelogs, tutorials, how-tos, references, explanations) following a layered style guide. Resolves project-specific style guides before applying defaults (Diátaxis, Google developer docs, ASD-STE100, Global English).
Ships in docs-hygiene. 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.
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.
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 search is done when you have opened each of those places that exists in the repository,
including every guide the contributor docs link to; pasted input with no file named still gets the
search. The one line names the guide you resolved, or the places you searched and found none.
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.
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:
ls src/modules | wc -l, so a later editor can rerun that and compare.Check the fourth rule on the finished draft, term by term: find the first sentence that uses the
term and put its gloss right after the term in that sentence ("ships every line to a collector,
the server that receives your logs"), not in the sentence after it ("ships every line to a
collector. The collector is the server…"). The opening summary line is where a term most often
slips in first.
Right after means nothing sits between the term and its gloss: "keeps a vault, a folder that
stash init creates, for each project", not "keeps a vault for each project: a folder that
stash init creates".
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.
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. |
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:
reference/sentence-rules.md. Read it while drafting, not after.
It holds the load rules in full: the 20-word target for instruction sentences, simple verb forms,
and the paragraph limits.
The names below are placeholders; a real document would use the actual command and flag names, per the third rule above.
Before:
Restarting workers only reloads the config file(s) when the --watch/--poll flag is set. If a worker crashes during the reload, it is restarted by the supervisor and it keeps the old settings.
After:
To make a restarted worker reload its config files, pass
--watch,--poll, or both. Without either flag, the worker keeps the settings it read at startup. If a worker crashes during a reload, the supervisor restarts that worker. The restarted worker runs with its previous settings.
The table follows the Before text from its first word to its last:
| Before | After | What changed |
|---|---|---|
| "Restarting workers" | "a restarted worker" | "Restarting" could name the act or describe the workers; the "-ing" word is gone (load). |
| "only reloads ... when" | "To make ... reload ..., pass" and "Without either flag" | "Only" sat beside the verb instead of the condition it limits. The goal now opens the sentence, and the no-flag case gets a sentence of its own (ambiguity, address). |
| "the config file(s)" | "its config files" | No "(s)" plural (ambiguity). |
| "the --watch/--poll flag" | "--watch, --poll, or both" | The slash is spelled out, and the flags are in code font (ambiguity, address). |
| "it is restarted by the supervisor" | "the supervisor restarts that worker" | The actor does the action (address), and the noun replaces "it" (ambiguity). |
| "it keeps the old settings" | "The restarted worker runs with its previous settings." | The second "it" could mean the worker or the supervisor; the noun is repeated, in a sentence of its own (ambiguity, load). |
/ai-slop:audit (if enabled) on the files you wrote via the Skill tool in the session; it reports filler, stacked hedging, negative parallelism,
and promotional tone by line. When it is not available, report that the AI-tell check did not
run./ai-slop:audit (if enabled) among the
available skills, end the reply with a candidate line for rule-abstract-metaphor-jargon giving
the noun, its sentence, and your literal replacement. Only a person who accepts the candidate
changes the catalog. Without ai-slop, the replacement in the draft is enough./docs-hygiene:extract-ssot via the Skill tool. A new shared home
still waits for the third occurrence; below that it remedies the repetition in place./docs-hygiene:compress via the Skill
tool; it trims flavor behind a semantic-diff guard instead of rewriting./docs-hygiene:write-for-agents.docs-hygiene audit
siblings; AI-writing tells belong to ai-slop:audit. This skill fires at the writing moment only.
Reshaping existing prose so a scanning reader gets the point is /writing:be-concise (if enabled); without it, say the draft already exists and offer a re-read
against the standard you resolved, not a rewrite.docs-hygiene:write-for-agents.source-control:commit's subject-convention
ladder and the marketplace's PR-body-sections convention own their shape, and the markdown-prose
regime already excludes them. The wording inside a PR body is /writing:be-concise (if enabled); without it, keep the required shape and leave the wording to the
author. AI-writing tells in a commit message or PR body are /ai-slop:audit commit (if enabled) and
/ai-slop:audit pr-body (if enabled)./ai-slop:audit copy <source files> (if enabled).playbooks:skill-authoring and skill-quality:check
territory.STYLE.md sat in the root. Style rules also live in contributor
guides, docs READMEs, and prose-linter configs. Look in all of them before reaching for the
bundled set.The four bundled layers are our selections from published standards, each with a record (our
decision and a pointer) in
reference/sources.md. Read it before citing a layer as the standard: the
STE layer is a principles subset, and a document written to it is not thereby STE-conformant.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
documentation, technical-writing, style-guide, readme, changelog, rfc
10 skills in this plugin
/audit-derivabilityAudit derivabilityRead-only audit of whether a doc earns its existence or an agent can re-derive it from code, config, and structure: verdict per file (delete, convert-to-pointer, keep-as-derivation-cache, keep-owns-facts). Use when: 'is this doc worth keeping', 'audit doc value', 'prune redundant docs', or derivability. Not for noise: /docs-hygiene:audit-noise. Load it before judging whether a doc should stay or go./audit-encapsulationAudit encapsulationAudit skill encapsulation and boundary leak where external citation reaches private skill surface (.claude/skills/X/, plugins/*/skills/X/) beyond slash invocation; read-only, explicit fix FILE:LINE. Use when 'audit encapsulation', 'find skill leaks', 'check skill boundaries', skill boundary violation, reaching into SKILL, API drift, refactor skill. Load it to ask what depends on another plugin's internals. Load it too before publishing plugins as separate installs./audit-noiseAudit noiseRead-only audit of tracked markdown (rule/skill/convention doc) for nine noise shapes: stale historical citation, ghost ref, preamble, tracker back-ref, negation without positive, conversational residue. Use when 'audit markdown noise', 'find ghost refs', 'declutter', sweep for noise. Not for code comments: /code-tidying:remove-comments. Load it before listing a doc's leftover lines to cut before sharing it./audit-progressive-disclosureAudit progressive disclosureRead-only progressive-disclosure audit of agent instruction markdown: grades file and context loading across always-loaded, invocation-loaded, on-demand tiers; flags split, hub-and-spoke, disclosure defect. Use when 'progressive disclosure', 'split this file', 'too much context'. Not for noise: /docs-hygiene:audit-noise; QA: /skill-quality:check. Load it before advising what in a CLAUDE.md or rule stays loaded./compressCompress markdown (drop filler/hedging; keep directives, thresholds, examples; articles per compress_articles) with semantic-diff revert guard; default, audit/compare (read-only). Use when 'compress this doc', 'tighten markdown', 'cut prose'. Not for compaction: /compact, noise: /docs-hygiene:audit-noise, or SSOT: /docs-hygiene:extract-ssot./extract-ssotExtract SSOTDeduplicate repeated markdown (rule files, skill bodies, ADRs, docs) into one source of truth, migrating call sites to cite it by exact heading; below Rule of Three, offers non-abstracting remedies and refuses a new SSOT artifact. Use when prose, literals, or concepts recur: 'DRY this prose', 'extract a shared rule', 'single source of truth for X'. Load it before planning one place for text copied into files. Load it too when a rule pasted into several files should change in one place, or a user proposes a new shared file for it.npx claudepluginhub melodic-software/claude-code-plugins --plugin docs-hygieneOther plugins' skills for the same job