/tw:docs-audit [path] [--source <path-or-url>] [--fix]from Technical Writing Skills
Manually invoked. Audits a body of documentation for defects a reader would hit — claims that no longer match the product, broken links and anchors, navigation integrity, duplicated and contradictory content, missing coverage, stale images, and content nobody has verified in months. Works on a docs repo, an exported help centre, or any folder of documents. Verifies each finding and writes a prioritized report. Never edits a page.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run this only when the user asks for it by name. It reports first, and edits nothing until the user picks findings to fix (--fix).
A manually-invoked audit of documentation that already exists, looking for the defects that cost a reader their time: something that isn't true any more, something they can't reach, something that contradicts the page next to it, and something nobody has checked since it was written.
Every check is spelled out below. For the standard behind a finding: docs-writing-standards and docs-standards for the voice rules, developer-docs, user-guides, internal-docs, readmes and api-reference for each document type's shape, docs-style-guide for the project's own terminology, and docs-code-samples and docs-images-and-diagrams for the parts of a page that aren't prose.
This audit does not assume a codebase. Where source is available it is the strongest evidence and gets used; where it isn't, the audit works from the running product, a spec, or what it can establish internally — and says which.
Before auditing it, find the project's style guide and conventions and read them — in a codebase, the ones 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's silent or there isn't one, docs-standards applies without asking, and a page that departs from it is a finding.
Read the answers from the request, the arguments, 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. Record the answers in the report's header.
_reports/docs-audit.md (--fix).[path] — the content to audit: a directory, a single file, a diff, or an exported set. Omitted → ask what to audit rather than guessing.[--source <path-or-url>] — where the truth lives, when it isn't the content itself: a code repository, a running product URL, an API spec, a staging login. Omitted → detect a repo if there is one; if nothing turns up, ask before concluding there's nothing to verify against, since the source is often a staging URL or a spec you'd have to be told about. Only once the answer is no, run in unverified mode and say so.[--fix] — don't audit. Read the existing _reports/docs-audit.md, list what's in it, and ask which findings to fix. For acting on a report from an earlier run.Mindset — read as the reader, not as the author. The author knows what the page meant. Follow the instructions literally, in order, with no prior knowledge, and report where that fails. A finding is real when you can name the reader it breaks and what happens to them.
file:line, or the page title and section where there are no line numbers.Rank by what it costs the reader, not by how wrong it is:
Findings are ordered worst-first.
The report follows the template in references/output-format.md: a header recording the scope answers, the score change, the findings table with a block per finding, the scorecard, action items and what needs confirmation. It goes to _reports/docs-audit.md, one Overall row in the score change.
_reports/docs-audit.md, overwriting the previous run.<X>/10 with the change since last run, a severity count, the top findings worst-first (id · severity · one-line · location), anything in "needs confirmation", and the report path.Report-only — this audit recommends fixes; it never edits a page.
Every run is a complete, fresh audit. Never skip a check, and never treat something as absent, because an earlier report said it was resolved. Code regresses, pages get reverted, a fix in one place gets undone in another — a previous report is not evidence about the state of anything today.
UNRESOLVED), carry its WON'T FIX findings forward unchanged — never re-raised as new findings — drop its FIXED findings and any no longer present, continue ID numbering from its highest ID, and take its scores for the score-change row, so a reader can see whether the set is improving or degrading. First run → mark all NEW.The report is written first and nothing is edited to produce it. Then:
1, 4, 9), a range, all, or none.FIXED with its commit and a one-line note of what changed, mark a finding the owner rules out WON'T FIX with their reason, and leave everything else as it stands. The file on disk has to match reality — a report still listing something that was fixed an hour ago teaches people not to trust it.Nothing is edited before step 2 is answered. The editing tools are unavailable while this command produces the report; they return for the turn after your question, once the answer is in.
--fix skips the audit entirely and works from the report already on disk, whatever its age — ten minutes old, an hour, a month. It's for acting on findings already read rather than generating a new set; re-auditing would re-check the whole set and raise new findings mid-fix.
Everything else is unchanged: list the findings, ask which, fix only those, update the report, re-score.
/content-audit./style-check./docs-review.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.