update-docs

A process for finding documentation that no longer matches the code and bringing it up to date. It covers guides, comments, API descriptions, and code examples.

In plain words
What is it for?
Use it to compare README files and API documentation with the current code, check setup instructions, and verify examples.
Why use it?
Outdated instructions can prevent setup, misdescribe API behavior, and lead developers to use removed or changed features.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/versoxbt/claude-initial-setup/update-docs
Clone the repo
git clone --depth 1 https://github.com/VersoXBT/claude-initial-setup
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 481 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00005 $0.00481
Opus 5 $0.00003 $0.00241
Sonnet 5 $0.00001 $0.00096
Haiku 4.5 $0.00001 $0.00048

Measured 2d ago against content hash 7e7db92c9996, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

update-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/update-docs.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Update Documentation

Identify outdated documentation and update it to reflect the current state of the codebase.

Steps

  1. Inventory existing documentation:

    • Find all markdown files (README.md, docs/, CONTRIBUTING.md, CHANGELOG.md).
    • Find inline documentation (JSDoc, docstrings, code comments).
    • Find API documentation (OpenAPI specs, Swagger files).
    • List each document with its last modified date.
  2. Check README accuracy:

    • Verify the project description matches current functionality.
    • Verify installation instructions work (correct commands, dependencies, versions).
    • Verify the getting started guide produces a working setup.
    • Check that configuration options are current and complete.
    • Verify listed scripts (build, test, lint) match package.json or equivalent.
  3. Check API documentation:

    • Compare documented endpoints against actual routes in the codebase.
    • Verify request/response schemas match current implementations.
    • Check that example requests produce valid responses.
    • Update any endpoints that have been added, removed, or modified.
  4. Verify code examples:

    • Run or manually trace each code example in the documentation.
    • Check that imports, function names, and parameters are current.
    • Update examples that reference renamed or removed functions.
    • Add examples for new public APIs that lack documentation.
  5. Update configuration documentation:

    • Check that all environment variables are documented.
    • Verify default values match the actual defaults in code.
    • Update any changed configuration options.
  6. Check links:

    • Verify internal links between documentation files are not broken.
    • Check that external links (to libraries, services, references) are still valid.
    • Fix or remove broken links.
  7. Review and finalize:

    • Read through updated documentation for clarity and consistency.
    • Verify formatting is correct (headers, code blocks, lists).
    • Ensure documentation follows the project's style conventions.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 60 lines · 5 tokens per session scan A 7e7db92c9996

Subscribe to this mod's changes

update-docs is a command published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 3mo ago), licensed MIT. It adds 5 tokens to every session and 481 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.