Skip to content
Back to skills

Docs Audit

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
documentationrustgoapisecurityperformancedocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add Timonwa/writing-skills --skill docs-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timonwa-docs-audit/badge)](https://www.skillsdirectory.com/skills/timonwa-docs-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docs-audit
description: >-
  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.
argument-hint: '[path] [--source <path-or-url>] [--fix]'
model: opus
effort: high
disable-model-invocation: true
disallowed-tools: Edit, NotebookEdit
---

# Docs audit

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: `write:writing-standards` and `tw:docs-standards` for the voice rules, `tw:developer-docs`, `tw:user-guides`, `tw:internal-docs`, `tw:readmes` and `tw:api-reference` for each document type's shape, `tw:style-guide` for the project's own terminology, and `write:code-samples` and `tw: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.

## Voice and audience come from the writing's own guide

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, `tw:docs-standards` applies without asking, and a page that departs from it is a finding.

## Ask first

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.

1. **Fresh audit, or fix from the last report?** fresh audit · fix from `_reports/docs-audit.md` (`--fix`).
2. **What should be audited?** a directory · a single file · a diff · an exported set. The path.
3. **What's the source of truth?** a code repository · a running product (URL) · an API spec · a staging login · none — run unverified.
4. **Which product version or branch do the docs describe?** Short answer.
5. **Who reads these docs?** Short answer: the readers a finding is judged against.
6. **Where are owners and last-verified dates kept?** page front matter · a spreadsheet or tracker · not tracked.

## Arguments

- `[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.

## Method

**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.

1. **Establish the scope and the source of truth.** What is being audited, what you can check it against, and what you can't. Ask for a source before settling for none — running unverified is a decision the user makes, not a default you fall into. State the unverifiable portion up front; an audit that hides its own blind spots is worse than a smaller honest one.
2. **Inventory the content** before checking anything: every page, its type, and where it sits. You cannot find an orphan or a duplicate without the full list.
3. **Audit from scratch.** Re-check every item against the source, because anything fixed before can regress; a previous report is never evidence. Read it only for what [Re-running it](#re-running-it) lists.
4. **Run the checklist** below, collecting findings with a precise location — `file:line`, or the page title and section where there are no line numbers.
5. **Verify each candidate.** Name the concrete reader failure it causes. Drop anything you can't show is real. Where you suspect a defect but can't confirm it — usually because you can't reach the source — mark it **needs confirmation** rather than inflating it into a finding.
6. **Write the report** and post the chat summary. Recommend fixes; never edit a page. Never commit or push without explicit approval.

### Severity

Rank by what it costs the reader, not by how wrong it is:

- **CRITICAL** — the documentation leads a reader into harm: wrong instructions for a destructive or irreversible action, wrong security, privacy, money or legal guidance, a missing warning on something that can't be undone, or an example that damages data.
- **HIGH** — the reader cannot complete the task: a broken quickstart, a missing required step, a wrong signature, value or default, a dead link on the main path, a documented feature that no longer exists.
- **MEDIUM** — the reader is slowed, confused, or sent the wrong way, but can recover: contradictory pages, a duplicate that has drifted, an unfindable page, a stale screenshot, a gap in coverage.
- **LOW** — polish and consistency: terminology drift, formatting, weak link text, a missing next-steps footer.

Findings are ordered worst-first.

### Report format

The report follows the template in [references/output-format.md](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.

### Output

- **Full report** at `_reports/docs-audit.md`, overwriting the previous run.
- **Chat summary** — the overall `<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.

## Checklist

### Accuracy — is it still true?

- **Claims against the product** — every documented step, label, menu path, setting, command, option, limit, price and error message still exists and still behaves as described. Where the source is code, check the real exports, signatures, defaults and flags; where it's a running product, check the actual screens.
- **Examples still work** — commands run, code compiles, requests return what the page says they return, imports resolve to current paths.
- **Setup and quickstart succeed verbatim.** Follow them literally. This is the highest-value check in the audit, because it is the page every new reader hits.
- **Version claims agree** — requirements, supported versions and compatibility statements say the same thing on every page, and match what the product actually enforces.
- **Numbers are real** — limits, quotas, timings, prices and thresholds match the source rather than a figure that was true once.
- **Nothing documents what doesn't exist** — removed features, renamed surfaces, roadmap items described as shipped.
- **Nothing is undocumented that should be** — surfaces the product exposes with no page at all.

### Links, anchors and navigation

- **Every internal link resolves**, including deep links to headings; every anchor still matches a heading that exists. Run an automated link checker over the built site where one is available (lychee, or the docs framework's own broken-link check) and verify by hand what it can't reach.
- **External links resolve** and still point at what the sentence claims.
- **No orphans** — every page is reachable from at least one other page, not only from the navigation.
- **No ghosts** — every navigation entry points at a page that exists.
- **Redirects exist** for pages that moved, and nothing redirects to a generic landing page in place of a real destination.
- **Link text is descriptive** — never "click here", never a bare URL.

### Duplication and contradiction

- **The same topic covered in more than one place** — identify the canonical page and flag the rest; duplicates always drift, and the drift is what hurts.
- **Pages that contradict each other** on a fact, a step, a limit, or a name. Flag both, and say which is right if you can establish it.
- **One term per concept** — the same thing called several things across the set, or one word used for two different things.

### Coverage and structure

- **Gaps on the main paths** — a task a reader plainly needs with no page, or a page that stops before the task is finished.
- **Missing failure coverage** — the errors readers actually hit, with no troubleshooting entry.
- **Type discipline** — pages that drift between types: a tutorial offering choices, a how-to lecturing on theory, a reference giving advice, an explanation with numbered steps.
- **Pages too thin to stand alone**, and pages doing several unrelated jobs.
- **Dead ends** — pages with no next step for the reader.

### Examples and images

- **Code blocks are complete and runnable** — no undefined variables, no placeholder standing in for the part that matters, every fence labelled.
- **No secrets in examples** — keys, tokens, credentials, real internal hostnames, real customer data.
- **Samples don't model unsafe practice** readers will copy.
- **Images still show what the text says they show** — a screenshot of a UI that has since changed is a defect, not a cosmetic issue.
- **Every image has appropriate alt text**, and no instruction exists only inside an image.

### Freshness and ownership

- **Last-verified dates**, where the set tracks them, and which pages are past their review cadence.
- **Pages with no owner**, where the set tracks ownership.
- **Content changed long after the thing it documents last changed** — or, more often, content untouched while the thing it documents changed repeatedly.
- **Frontmatter and metadata** — present, valid, and consistent: titles, descriptions, and whatever the platform requires.

## Re-running it

**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.

- **Report current state only.** What's in the report is what's true now, checked this run.
- **Overwrite the file.** No resolved history accumulates in it. A report dragging a hundred past findings along spends the reader's tokens and attention on problems that are gone.
- **Use the previous report only for continuity.** Keep the ID of each finding still present (status `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`.
- **History is version control's job**, not the report's. The audit says what's wrong today and how today compares.

## Fixing what it found

The report is written first and nothing is edited to produce it. Then:

1. **List the findings by ID** in chat, worst-first, one line each.
2. **Ask which to fix.** Accept IDs (`1, 4, 9`), a range, `all`, or `none`.
3. **Fix only what was named.** Never a default subset, never "the top three", never a severity threshold picked for the user. A finding they didn't choose stays in the report untouched.
4. **Report back**: what changed, what was skipped, and anything that couldn't be fixed without a decision only they can make.
5. **Update the report in place — never re-run the audit to update it.** A re-run re-checks the whole set, costs a full audit and raises new findings mid-fix. Mark each fixed finding `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.
6. **Re-score and show the movement.** Recompute the scorecard categories the fixes touched and the Overall, and rewrite the one score-change row (previous → current) — never add a second row. That's what scoring is for: it tells you whether the work improved things or made them worse. If several findings were fixed and no score moved, say so plainly — the findings that mattered weren't the ones chosen.

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.

### Fixing from an earlier report

`--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.

- **Say how old the report is** — its date, and how long ago that was. Someone deciding what to fix needs to know whether they're looking at today's picture or last month's.
- **Verify each finding still exists before fixing it.** Check the actual location; don't trust the report's description of it. Between the audit and now, the page may have changed, someone else may have fixed it, or the thing it described may have moved.
- **Drop anything that's no longer there** and say so. That's a stale entry, not a fix, and it shouldn't be counted as one.
- **Check cheaply whether the content has moved on** — compare the report's date against file modification times, or the version-control log for the paths it covers. That's a count of what changed, not a re-audit, and it costs seconds. If a lot has changed, say how much and offer a fresh audit; the call is theirs, not yours. Where there's no history or timestamps to compare against, say you can't tell rather than implying you checked.
- **If no report exists**, say so and offer to run the audit rather than guessing at what to fix.

Everything else is unchanged: list the findings, ask which, fix only those, update the report, re-score.

## Boundaries

- **Auditing the shape of the set** rather than defects in its pages — what's missing, what should merge, what should be retired → `/tw:content-audit`.
- **Terminology and style drift** as its own sweep → `/tw:style-check`.
- **Deep editorial review of one document** → `/tw:doc-review`.
- **Auditing code** — its structure, security, performance, dependencies — is not this command's job, even when the docs describe it. Report what the docs get wrong, not what the code should do differently.

Files in this skill

  • SKILL.md15.7 KB
  • evals/evals.json3.9 KB
  • references/output-format.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.