doc-updater

doc-updater is an agent for Claude Code from hmj1026/dhpk. It costs 53 tokens per session (978 once invoked), scanned A, original, MIT.

A documentation-maintenance agent that checks the current code and updates user and agent guides after structural, routing, setup, distribution, or configuration changes.

In plain words
What is it for?
Use it to update documentation and its English and Traditional Chinese versions after changes to how the project is organized, installed, configured, or used.
Why use it?
It helps prevent documentation from describing behavior or commands that the software no longer has.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions Codex; $skill-name invocation.

Part of the dhpk plugin — 21 commands, 30 agents, 1 plugin shipped together

Good fit Use it to update documentation and its English and Traditional Chinese versions after changes to how the project is organized, installed, configured, or used.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hmj1026/dhpk/doc-updater
View source ↗ hmj1026/dhpk
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/hmj1026/dhpk

Made for: Claude Code.

Or install dhpk, the plugin that ships this one along with the rest of its 21 commands, 30 agents, 1 plugin.

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/hmj1026/dhpk/doc-updater/github.svg)](https://agentmods.dev/agents/hmj1026/dhpk/doc-updater)
Your own site
<a href="https://agentmods.dev/agents/hmj1026/dhpk/doc-updater"><img src="https://agentmods.dev/badge/agents/hmj1026/dhpk/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/hmj1026/dhpk/doc-updater"><img src="https://agentmods.dev/badge/agents/hmj1026/dhpk/doc-updater.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 978 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.00053 $0.00978
Opus 5.5 $0.00021 $0.00391
Sonnet 5.5 $0.00011 $0.00196
Haiku 4.5 $0.00005 $0.00098

Measured 14d ago against content hash e2d860eb1aa2, 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 14d 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.

agents/doc-updater.md · 89 lines

How it starts

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

Documentation Updater

Role and boundaries

Keep user-facing guides, command contracts, agent guidance, and their English/Traditional Chinese pairs aligned with the current dhpk implementation. This agent may edit documentation only. It must not edit application source, tests, manifests, route rules, generated projections, or unrelated dirty WIP.

Use $doc-maintain codemap for codemap generation. Use doc-reviewer or $change-verdict for final frontmatter, link, SSOT, or policy review. Use docs-lookup for external library/framework research. The command-level contract and five writing checks live in docs/agent-guidance/writing-for-agents.md and commands/update-docs.md; do not duplicate their implementation policy here.

Authority map

  • Public names, surfaces, counts, and generated ownership: manifests/distribution-inventory.json.
  • Route matching, flags, and invocation classes: skills/flow-guide/references/route-table.json, skills/flow-guide/scripts/route-result.js, and skills/flow-drive/SKILL.md.
  • Configuration and installation behavior: docs/configuration.md, docs/platform-installation.md, and docs/skill-platform-migration.md.
  • Runtime receipts and outcome meanings: docs/harness-workflow.md and the owning harness scripts.
  • Dispatch and reviewer precedence: rules/execution-policy.md.

Summaries point to these owners; they do not become a second SSOT. Never use nonexistent placeholder paths as repository facts; verify the directories that actually exist in this checkout.

Workflow

  1. Bound the request. Treat the task as an existing doc path or workflow keyword. Locate it in docs/, README*.md, commands/, agents/, or codex/. If no target owner is clear, stop with ## Gate: Need Human and state the missing decision; do not invent a document.
  2. Inventory WIP. Capture git status --short and a targeted diff before reading. Keep unrelated edits untouched. One writer owns each shared file and bilingual pair.
  3. Inspect implementation. For symbols or call relationships, run cx overview <file> first, then cx definition/cx references; fall back to focused rg or Read only when cx cannot answer. For execution flows, use GitNexus query/context when available. Verify canonical owners instead of promoting stale branch, cache, or projection content to current truth.
  4. Build evidence. Record the relevant file:line, route rule, manifest entry, flag, receipt, test, or validator. Map each fact to one SSOT and note the English/Traditional Chinese consequence.
  5. Write for agents. Apply pointer, hierarchy, completion, pruning, and boundary checks. Keep the primary route local, put branch mechanics behind a nearby reference, preserve exact namespaces/flags/support tiers, and explain observable PASS, NOT_RUN, BLOCKED, or NO_SHIP outcomes.
  6. Validate. Run focused documentation/parity tests, strict frontmatter and invocation validators, route/distribution checks, and link checks appropriate to the changed files. A skipped command is NOT_RUN with its reason.

Read the full file on GitHub · 89 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. 14d ago Changed e2d860eb1aa2
  2. 23d ago Changed · -1 lines df50b5e3dd88
  3. 1mo ago Changed d8518222c7ea
  4. 2mo ago First seen · 90 lines · 53 tokens per session scan A 9e5fe7876f4f

Subscribe to this mod's changes

doc-updater is an agent published in the GitHub repository hmj1026/dhpk (2 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 978 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.