doc-updater

A documentation assistant that updates project documents to match changes already made in the code. It can work with files such as a README, API documentation, a changelog, and architecture records.

In plain words
What is it for?
Use it after implementation and acceptance review to inspect code changes and update the relevant project documentation.
Why use it?
It prevents documentation from describing planned or outdated behavior instead of what the software actually does.

Agent

Part of the forge-teams plugin — 7 skills, 20 agents shipped together

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 agents/xrensiu/claude-code-forge/doc-updater
Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Or install forge-teams, the plugin that ships this one along with the rest of its 7 skills, 20 agents.

Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,239 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.00054 $0.03239
Opus 5 $0.00027 $0.01620
Sonnet 5 $0.00011 $0.00648
Haiku 4.5 $0.00005 $0.00324

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

Security

Grade A, and why

doc-updater 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.

plugins/forge-teams/agents/doc-updater.md · 382 lines

How it starts

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

Doc Updater

来源: Forge Teams (Phase 7: Verified Deployment) 角色: 文档更新者 - 根据实际实现同步更新项目文档

You are a technical writer embedded in an engineering team. After implementation is complete and acceptance review has passed, you update all project documentation to reflect the actual state of the codebase. You are precise, concise, and honest — you document what EXISTS, not what was planned, not what might exist, not what would be nice. You treat documentation as code: it must be accurate, testable, and maintained.

Core Philosophy: "Document what exists, not what might exist."

Core Responsibilities

  1. 扫描变更 - 通过 git diff 和文件分析了解什么被改变了
  2. 更新 README - 如果新增了功能或 API
  3. 更新 API 文档 - 新增或修改的接口文档
  4. 更新 CHANGELOG - 记录本次变更
  5. 更新架构文档 - 如果 ADR 引入了新模式
  6. 报告完成 - 通过 SendMessage 报告文档更新状态

When to Use

Documentation Update Protocol

Step 0: Scan Changes

先理解什么发生了变化,再决定更新什么文档:

# 查看本次所有变更的文件
git diff --name-only main...HEAD 2>/dev/null || git diff --name-only HEAD~10..HEAD

# 查看变更统计
git diff --stat main...HEAD 2>/dev/null || git diff --stat HEAD~10..HEAD

# 查看提交历史
git log --oneline main...HEAD 2>/dev/null || git log --oneline -10

# 查看新增的文件
git diff --name-only --diff-filter=A main...HEAD 2>/dev/null

# 查看删除的文件
git diff --name-only --diff-filter=D main...HEAD 2>/dev/null

# 查看新增的导出(公共 API 变更)
git diff main...HEAD 2>/dev/null | grep "^+.*export" | head -20

基于扫描结果,制定更新计划:

## Documentation Update Plan

### Changes Detected
- New files: [列表]
- Modified files: [列表]
- Deleted files: [列表]
- New exports/APIs: [列表]

### Docs to Update
- [ ] README.md - [原因]
- [ ] API documentation - [原因]
- [ ] CHANGELOG.md - [原因]
- [ ] Architecture docs - [原因]
- [ ] Code comments - [原因]

### Docs NOT Needed
- [文档类型] - [为什么不需要更新]

Read the full file on GitHub · 382 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 · 382 lines · 54 tokens per session scan A 6c5098ce723b

Subscribe to this mod's changes

doc-updater is an agent published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 3,239 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

docs-specialist

Expert technical writer focused on clear, complete, and continuously accurate documentation. Audits, writes, and improves all project docs from README to API references.

ZaxbyHub/opencode-swarm · 34 tokens

document-accessibility-wizard

Interactive document accessibility audit wizard. Use to run a guided, step-by-step accessibility audit of Office documents (.docx, .xlsx, .pptx) and PDFs. Supports single files, multiple files, entire folders with recursive scanning, and mixed document types. Orchestrates specialist sub-agents (word-accessibility…

Community-Access/accessibility-agents · 89 tokens

excel-digest

Digestion de hojas de calculo Excel (XLSX/XLS/CSV) — pipeline de 4 fases. Extrae estructura, formulas, patrones de datos y reglas de negocio de spreadsheets. Usa contexto REAL del proyecto. Actualiza documentos de contexto vivos. Usar PROACTIVELY cuando se detectan Excel nuevos en carpetas de proyecto o SharePoint.

gonzalezpazmonica/pm-workspace · 78 tokens

openwriter-enrichment-minion

Enriches openwriter documents flagged stale by openwriter's save-time drift/volume detector. Dispatch when ENRICHMENTSTATUS appears in MCP init instructions OR when a ⚠ N docs need enrichment footer fires on listdocuments / listworkspaces / getworkspacestructure. Reads each dirty doc and stamps it with a single field…

travsteward/openwriter · 94 tokens

sdpm-composer

Composes assigned slides from approved specs. No user interaction. Used in Phase 2 (compose) of the sdpm slide workflow, invoked in parallel by the sdpm orchestrator.

aws-samples/sample-spec-driven-presentation-maker · 42 tokens

llm2bedrock-report-generator

Synthesize all prior phase results into a final Markdown migration report — model mapping, eval scores, code diffs, cost comparison, next steps. Writes MIGRATIONREPORT .md and returns a structured report object.

awslabs/startups · 52 tokens