/tw:docs-pr-review [pr-number | pr-url | branch] [--comment] [--fix]from Technical Writing Skills
Manually invoked. Reviews the documentation in a pull request — docs shipped with a code change, a docs-only update, new pages, or docs for code that lives elsewhere — checking every claim against the right source of truth, finding changes that need docs but have none, and running the five levels of edit on the changed lines. Reports findings with replacements and questions for the author; comments on the PR or fixes only when asked.
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 review of the documentation in a pull request — often docs a developer drafted alongside a code change. Where /docs-review reviews a document on its own, this one reviews it against the change it belongs to: is every claim true of what this PR does, and did anything the PR changes go undocumented?
The editorial standard is /docs-review's five levels of edit, docs-editing-standards, docs-standards and docs-writing-standards' voice rules, plus the skill for each document type the PR touches.
Before reviewing, find the project's style guide and conventions and read them:
AGENTS.md names, or its contributing docs.Voice, person, tone, terminology and formatting come from that guide. Where it settles something this skill also covers, the guide wins; 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 PR itself, 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 review's header.
--comment) · fix the named findings on the PR's branch (--fix).[pr-number | pr-url | branch] — the PR to review; a branch with no PR is compared with its base. Omitted → the current branch's PR, if there is one, otherwise ask.--comment — post the review on the PR, after the findings have been shown in chat.--fix — apply the findings the owner names, on the PR's branch.gh pr view, gh pr diff).The shape decides what every claim is checked against. Say which shape it is, and the source, at the top of the review.
| The PR | Checked against | Extra checks |
|---|---|---|
| Docs alongside a code change | The code this PR changes | Every change in the code that a reader would notice and the docs don't mention |
| Docs only, updating existing pages | The current code on the base branch, or the running product | The update doesn't contradict other pages; links, anchors and navigation still hold |
| Docs only, new pages | The current code or product | The right type of page, its place in the navigation, links in and out, no duplicate of an existing page (docs-planning) |
| Docs for code that lives elsewhere — another repo, a separate code PR, an unreleased change | The linked PR, repo or spec | The same missing-docs check, against that change |
codebase-research.Only the documentation the PR adds or changes, plus what it now contradicts elsewhere. A problem the PR didn't touch is listed once at the end, never as a blocker.
/docs-review — substantive, technical accuracy (against this PR's source of truth), line, copy and proof — in that order, and don't skip ahead.developer-docs, user-guides, api-reference, readmes, release-notes, internal-docs; samples by docs-code-samples, images by docs-images-and-diagrams.Use /docs-review's severity scale: BLOCKER (untrue, a missing warning on an irreversible action, an example that doesn't work, an undocumented change a reader will hit), MAJOR, MINOR, NIT.
In chat, worst first. The author is usually a developer, so every finding says what's wrong, gives the replacement, and says why in one line — feedback they can apply and learn from.
The review follows the template in references/output-format.md: a header naming the shape, the source of truth and the scope answers, then missing docs, findings, questions for the author, what's unverified, and problems that aren't this PR's to fix.
Nothing found → say so plainly, with what was checked.
--comment — confirm, then post one review on the PR: the summary as the body, and each finding with a replacement as an inline comment on its line, using a GitHub suggestion block so the author can apply it in one click. Missing docs and questions go in the body. Never approve or merge.--fix — list the findings by number and ask which to fix; fix only those, on the PR's branch, and report what changed. Nothing is edited before that answer — this command runs with the editing tools removed while it reviews. Committing is the project's own workflow./docs-review. The whole doc set → /docs-audit, /content-audit, /style-check. A problem across the set that this PR merely exposes is passed there.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.