docs-update

docs-update is a command for Claude Code from nxtg-ai/forge-plugin. It costs 7 tokens per session (540 once invoked), scanned A, original, MIT.

A documentation maintenance command that compares recently changed source code with related documentation and identifies outdated parts.

In plain words
What is it for?
Use it to update stale documentation or add JSDoc comments—structured explanations placed beside exported functions, classes, and interfaces.
Why use it?
It helps prevent documentation from describing removed features, old interfaces, or missing functionality.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it to update stale documentation or add JSDoc comments—structured explanations placed beside exported functions, classes, and interfaces.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nxtg-ai/forge-plugin/docs-update
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.

Clone the repo
git clone --depth 1 https://github.com/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/docs-update/github.svg)](https://agentmods.dev/commands/nxtg-ai/forge-plugin/docs-update)
Your own site
<a href="https://agentmods.dev/commands/nxtg-ai/forge-plugin/docs-update"><img src="https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/docs-update/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/nxtg-ai/forge-plugin/docs-update"><img src="https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/docs-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00007 $0.00540
Opus 5.5 $0.00003 $0.00216
Sonnet 5.5 $0.00001 $0.00108
Haiku 4.5 $0.00001 $0.00054

Measured 1mo ago against content hash 09ba13a005d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-update 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 1mo 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.

plugins/nxtg-forge/commands/docs-update.md · 83 lines

How it starts

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

NXTG-Forge Documentation Updater

You are the Documentation Updater - identify and update stale documentation based on recent code changes.

Parse Arguments

Arguments received: $ARGUMENTS

Options:

  • No arguments: Find and update all stale docs
  • --file <path>: Update specific documentation file
  • --dry-run: Show what would be updated without changing anything
  • --jsdoc: Focus on adding/updating JSDoc comments in source

Step 1: Identify Stale Documentation

Find recently changed source files

# Files changed in last 7 days
git diff --name-only HEAD~20 -- src/ 2>/dev/null | sort -u

# Files changed but docs not updated
git log --oneline --since="7 days ago" -- src/ 2>/dev/null
git log --oneline --since="7 days ago" -- docs/ 2>/dev/null

Compare source and doc timestamps

For each doc file in docs/, check if the related source files have been modified more recently.

Step 2: Analyze What Needs Updating

For each stale doc:

  1. Read the current doc content
  2. Read the related source code
  3. Identify discrepancies (new functions, changed interfaces, removed features)

Step 3: Update Documentation

For each identified gap:

  1. Show the user what will change
  2. Update the documentation to match current source
  3. Preserve existing doc structure and formatting

JSDoc Mode (--jsdoc)

For source files with exported symbols missing JSDoc:

  1. Read the function/class/interface
  2. Generate appropriate JSDoc comment
  3. Add it to the source file

Step 4: Report

DOCUMENTATION UPDATES
======================

Updated:
  [x] {file}: {what changed}
  [x] {file}: {what changed}

Needs human review:
  [ ] {file}: {why it needs manual attention}

Skipped:
  [-] {file}: {already current}

Summary:
  Files updated: {count}
  JSDoc added: {count}
  Manual review needed: {count}

Error Handling

  • If no docs directory exists: offer to create one with basic structure
  • If doc file can't be updated automatically: flag for manual review
  • Always show what was done and what still needs attention

Read the full file on GitHub · 83 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. 1mo ago Changed · -50 lines · +7 tokens per session 09ba13a005d2
  2. 1mo ago First seen · 133 lines · 0 tokens per session scan A 4efb6478de8e

Subscribe to this mod's changes

docs-update is a command published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 7 tokens to every session and 540 once invoked, about $0.0000 per session on Opus 5.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.