doc-updater

doc-updater is an agent for Claude Code from XRenSiu/claude-code-forge. It costs 54 tokens per session (3,239 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

Good fit Use it after implementation and acceptance review to inspect code changes and update the relevant project documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xrensiu/claude-code-forge/doc-updater
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/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install forge-teams, the plugin that ships this one along with the rest of its 7 skills, 20 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 doc-updater

README.md
[![agentmods](https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/doc-updater/github.svg)](https://agentmods.dev/agents/xrensiu/claude-code-forge/doc-updater)
Your own site
<a href="https://agentmods.dev/agents/xrensiu/claude-code-forge/doc-updater"><img src="https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/doc-updater/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 doc-updater

Your own site · 80×15
<a href="https://agentmods.dev/agents/xrensiu/claude-code-forge/doc-updater"><img src="https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/doc-updater.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00054 $0.03239
Opus 5.5 $0.00022 $0.01296
Sonnet 5.5 $0.00011 $0.00648
Haiku 4.5 $0.00005 $0.00324

Measured 1mo ago against content hash 6c5098ce723b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/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. 1mo 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 29d ago), licensed MIT. It adds 54 tokens to every session and 3,239 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

quarto-critic

Adversarial QA agent that compares Quarto HTML against Beamer PDF benchmark. Produces harsh, actionable criticism. Does NOT edit files — read-only analysis only.

brycewang-stanford/Auto-Empirical-Research-Skills · 38 tokens

openwriter-enrichment-minion

Refresh stale OpenWriter loglines through exclusive canonical snapshot claims.

travsteward/openwriter · 19 tokens

report-generator

Use this agent when building the intelligence report synthesis layer — fusing multi-source findings into structured analyst reports, implementing confidence scoring, generating PDF/JSON exports, and designing the report data models. Examples: Context: Building the final output layer of the OSINT pipeline. user: "Build…

daemon-blockint-tech/Grond · 195 tokens

chronology-builder

Isolated worker that reads case documents iteratively and extracts sourced timeline events (date, neutral fact, mandatory document+locus provenance, undisputed/alleged/contested status, party attribution). Deduplicates and cross-references across documents and languages. Emits events.json for the legal-chronology…

fedec65/bettercallclaude · 103 tokens

flow-documenter

Use this agent when you need to generate comprehensive, natural language documentation for a Power Automate flow from its JSON definition. This agent should be invoked when:\n\n- A user provides a flow.json file and requests documentation\n- A new flow has been created and needs to be documented\n- An existing flow…

MacroMan5/AutomationHelper_plugins · 368 tokens

ops-documentacao

Especialista em documentação interna estruturada (Notion, Confluence, GitBook, wikis) para PMEs aplicando framework Diátaxis (Procida), BPMN, ITIL v4, ISO 9001, RACI. Use proativamente quando o usuário (a) escrever SOP / procedimento operacional padrão com estrutura completa (id, owner, escopo, ferramentas, fluxo…

asv-digital/agents-funcionarios · 0 tokens