/tw:codebase-researchfrom Technical Writing Skills
Finding 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".
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.
Verify against source, never from memory — including in a repository you didn't write and may not fully understand.
You are hunting for names and values, not understanding the system. A writer doesn't need to follow the algorithm — they need the exact parameter name, the real default, the literal error text, the actual limit. That is a far smaller job than reading code as an engineer would; don't treat it as the larger one.
The danger runs the other way too. A writer who has read the code has more confidence than one who hasn't, and confidence built on a value that production overrides is worse than an honest gap. Check every value against the traps before writing it down.
Before writing up what you find, 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.
Read the answers from the request, the project's AGENTS.md or contributing docs 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 header of the research notes.
| What you need | Where it actually is |
|---|---|
| The public surface — what callers can use | Exported symbols, the entry or index file, the package manifest's entry fields. Not everything defined is public. |
| Parameters, types, defaults | The function or endpoint signature first, then the validation schema — which frequently overrides or narrows the signature |
| A configuration default | The config schema or loader. A constant elsewhere may be unused or superseded. |
| An error message a user sees | Search for the literal text as it appears in the product or the response body, then read outward from the match |
| A UI label, button or menu path | Search the visible string. In a localized product, the source-language resource file is the canonical spelling. |
| Limits, quotas, thresholds, timeouts | Validation schemas, rate-limit configuration, named constants — and check whether the environment overrides them |
| Environment variables | The example env file for the list, the config loader for which are required and what each defaults to. The loader wins. |
| Status codes and response shapes | The handler's returns and its declared response type |
| Whether a feature is reachable at all | The feature-flag configuration, and what the flag is set to in the environment you're documenting |
| When behaviour changed | Version history, the changelog, migration files, and the commit that introduced the line |
A value in source is a claim, not a fact, until you've seen it take effect.
30 is seconds or milliseconds depending on what consumes it, and 1000 is bytes, kilobytes or rows. Find the unit in the type, the variable name, or the function that reads the value — never infer it from what seems reasonable.Each of these produces a confidently wrong document, which is the most expensive outcome in documentation:
Keep the notes in the template in references/research-notes.md: one row per fact, with its location, version, unit and status.
retryLimit get overridden in production?" gets answered in a sentence; "how does retrying work?" costs an engineer twenty minutes.The rule doesn't relax, it changes shape. Write only what you were told, ask for exact names and values rather than inferring them, and leave anything unverified visibly marked. A plausible invention is the one outcome worse than an omission.
sme-interviews. This skill answers what; that one answers why and really?docs-standards and the skill for that document type./docs-audit. This skill is for research before writing; that one is for drift after.api-reference, which has its own verification rules for an API surface.docs-code-samples.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"./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./developer-docsWriting and restructuring developer-facing documentation-site pages in any framework or platform — verify against source when the code is available, one clear focus per page, link integrity when moving pages, prose before every code block, runnable examples, canonical-page linking instead of duplication, one term per concept, MDX and component import hygiene, and next-steps footers. Use on "docs page", "write the docs for", "restructure the docs", "MDX page", "developer guide".