/tw:docs-standardsfrom Technical Writing Skills
The rules every documentation page follows — the four Diátaxis needs (learning, a task, lookup, understanding) and keeping each page to one, the documentation voice, task headings, step-by-step procedures, bold and italics in docs, accessible pages, prose before code, runnable examples, and documenting what is rather than what's planned. Use on "write docs", "document this", "how-to guide", "write the steps", "is this a tutorial or a guide", "what type of page is this".
Ships in Technical Writing Skills. 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.
The discipline that makes documentation documentation. Every page serves one reader, pursuing one goal, in one mode — decide which mode before writing a word. Apply it together with docs-writing-standards.
Before applying this skill, find the project's style guide and conventions and read them:
AGENTS.md names, or its contributing docs.Its voice and page rules apply wherever the project's guide is silent. Where the project's guide decides otherwise — person, tone, terminology, formatting — the guide wins.
docs-style-guide.Read the answers from the request, the page, the project and its guide 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; where the project records a default, show it and ask whether to use it.
Documentation readers come with one of four needs (diataxis.fr). Each page serves one of them; a page that mixes them fails all of its readers at once:
Diátaxis is "a guide, not a plan" (diataxis.fr): it tells you whether a page is mixing needs, not that a docs set must have four sections. Never create empty sections to fill the shape; a landing page, a README or a release note isn't forced into one of the four. Once the need is chosen, the section order for each type on a docs site is in developer-docs' page-types.md, and for a help centre in user-guides' page-types.md. Fix mixing by moving, not deleting — a tutorial that pauses to discuss architecture moves that discussion to an explanation page and links it; a reference entry with a walkthrough spins it out as a how-to; a how-to that teaches basics links the tutorial instead.
The defaults documentation uses where the project's style guide doesn't decide otherwise, as a checklist a page passes or fails:
acme keys rotate", not "You'll want to run…"./style-check reports the majority as a decision to record.code for every identifier, path, command, filename, flag and value the reader types or sees — and nothing that isn't code.From Google's accessibility guidance:
docs-code-samples).A how-to opening that obeys the rules — one need, a task heading, goal first, prose before code, concrete values, expected output:
## Rotate an API key
Rotate a key when it may have leaked or on your regular schedule. Rotation issues a new key immediately; the old key keeps working for 24 hours so deployed clients don't break.
Create the replacement key with the CLI:
```bash
acme keys rotate --name production
```
The command prints the new key once — store it in your secret manager now, it is not retrievable later:
```text
Rotated key "production". New key: ak_live_9f2c… (old key expires in 24h)
```
Note what it doesn't do: no history of why API keys exist (explanation), no full flag listing (reference), no hand-holding about installing the CLI (tutorial) — those are links, not sections.
With this skill — the craft every piece of writing shares (reader and scope first, plain language, concrete claims, credit, scanning, formatting) and its checklist → docs-writing-standards and its house-voice reference.
Before writing
docs-planning.sme-interviews; finding them in the codebase yourself → codebase-research.docs-style-guide.Writing a document
developer-docs.user-guides. Runbooks, process docs and onboarding → internal-docs.readmes. API references → api-reference. Release notes and changelogs → release-notes.docs-seo-aeo-geo.The parts that aren't prose — code examples → docs-code-samples; screenshots, diagrams and alt text → docs-images-and-diagrams.
After writing — tightening → docs-editing-standards; a full review of one page → /docs-review; drift across the set → /style-check; translation-ready writing → localization; auditing a docs site → /docs-audit.
Out of scope — articles, blog posts and newsletters are content, not documentation → the skills in content-writing-skills.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/technical-writing-skills --plugin tw23 skills in this plugin
/api-referenceWriting and maintaining the documentation for an API a developer has to integrate against — the reference itself (endpoints, parameters, status codes, error tables, response examples), plus the pages around it that make it usable: authentication, a quickstart, pagination, rate limits, webhooks, versioning and deprecation. Covers writing the prose fields inside an OpenAPI or similar spec as well as hand-written pages. Use on "API docs", "API reference", "document this endpoint", "OpenAPI description", "SDK docs", "webhook docs"./codebase-researchFinding documentation facts in a codebase you didn't write — where defaults, limits, error strings, UI labels, env vars and the public surface actually live, reading for names and values rather than logic, searching backwards from the string a user sees, using tests as a behaviour spec, and the traps that produce confidently wrong docs. Use on "read the code", "check the source", "where is this defined", "what's the default", "is this still used", "find out how this works"./content-auditManually invoked. Inventories an existing documentation set and judges its shape rather than its defects — every page with its type, audience, owner, last-verified date and usage, a keep/merge/split/rewrite/retire verdict for each, duplicate clusters, orphans and ghosts, navigation depth, and a gap analysis against what readers are actually trying to do. Outputs the inventory and a prioritized writing queue. Never edits a page.