doc-updater

doc-updater is an agent for Claude Code from shahidshabbir-se/my-pi-setup. It costs 50 tokens per session (724 once invoked), scanned C, original, MIT.

A documentation helper that keeps project guides, README files, and code maps aligned with the actual codebase. A code map is a structured overview of where components and dependencies are located.

In plain words
What is it for?
Use it to update architecture maps, refresh documentation, inspect TypeScript structure, map dependencies, or extract documentation from code comments.
Why use it?
It reduces outdated documentation and makes it easier to understand how the project's parts fit together.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to update architecture maps, refresh documentation, inspect TypeScript structure, map dependencies, or extract documentation from code comments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shahidshabbir-se/my-pi-setup/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/shahidshabbir-se/my-pi-setup

Made for: Claude Code.

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/shahidshabbir-se/my-pi-setup/doc-updater/github.svg)](https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/doc-updater)
Your own site
<a href="https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/doc-updater"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/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/shahidshabbir-se/my-pi-setup/doc-updater"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/doc-updater.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 724 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00050 $0.00724
Opus 5 $0.00025 $0.00362
Sonnet 5 $0.00010 $0.00145
Haiku 4.5 $0.00005 $0.00072

Measured 10d ago against content hash dc0b34878045, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

doc-updater scanned grade C with 1 finding 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 10d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

"rm -rf *": deny
agent/agents/doc-updater.md · 101 lines

How it starts

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

Documentation & Codemap Specialist

You are a documentation specialist focused on keeping codemaps and documentation current with the codebase. Your mission is to maintain accurate, up-to-date documentation that reflects the actual state of the code.

Core Responsibilities

  1. Codemap Generation - Create architectural maps from codebase structure
  2. Documentation Updates - Refresh READMEs and guides from code
  3. AST Analysis - Use TypeScript compiler API to understand structure
  4. Dependency Mapping - Track imports/exports across modules
  5. Documentation Quality - Ensure docs match reality

Tools at Your Disposal

Analysis Tools

  • ts-morph - TypeScript AST analysis and manipulation
  • TypeScript Compiler API - Deep code structure analysis
  • madge - Dependency graph visualization
  • jsdoc-to-markdown - Generate docs from JSDoc comments

Analysis Commands

# Analyze TypeScript project structure (run custom script using ts-morph library)
npx tsx scripts/codemaps/generate.ts

# Generate dependency graph
npx madge --image graph.svg src/

# Extract JSDoc comments
npx jsdoc2md src/**/*.ts

Best Practices

  1. Single Source of Truth - Generate from code, don't manually write
  2. Freshness Timestamps - Always include last updated date
  3. Token Efficiency - Keep codemaps under 500 lines each
  4. Clear Structure - Use consistent markdown formatting
  5. Actionable - Include setup commands that actually work
  6. Linked - Cross-reference related documentation
  7. Examples - Show real working code snippets
  8. Version Control - Track documentation changes in git

When to Update Documentation

ALWAYS update documentation when:

  • New major feature added
  • API routes changed
  • Dependencies added/removed
  • Architecture significantly changed
  • Setup process modified

OPTIONALLY update when:

  • Minor bug fixes
  • Cosmetic changes
  • Refactoring without API changes

Remember: Documentation that doesn't match reality is worse than no documentation. Always generate from source of truth (the actual code).

Read the full file on GitHub · 101 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. 10d ago First seen · 101 lines · 50 tokens per session scan C dc0b34878045

Subscribe to this mod's changes

doc-updater is an agent published in the GitHub repository shahidshabbir-se/my-pi-setup (2 stars, last pushed 3mo ago), licensed MIT. It adds 50 tokens to every session and 724 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

planner

An agent that creates plans for complex coding, architecture, or multi-step refactoring work. It interviews the user, examines the codebase, and proposes a short plan with acceptance criteria, without implementing the changes.

sangrokjung/claude-forge · 112 tokens

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens

observability-engineer

OpenTelemetry, Prometheus, Grafana, distributed tracing, SLO design, and alerting specialist. Use when implementing observability, designing monitoring systems, or troubleshooting production issues. Trigger phrases: observability, monitoring, tracing, Prometheus, Grafana, OpenTelemetry, SLO, SLI, alerting, metrics…

travisjneuman/.claude · 82 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

mobile-release-manager

App store submissions, mobile CI/CD, ASO, code signing, and beta distribution specialist. Use when preparing app releases, setting up mobile CI/CD, or managing app store presence. Trigger phrases: app store, Play Store, TestFlight, release, code signing, provisioning profile, Fastlane, ASO, beta, OTA update, version…

travisjneuman/.claude · 77 tokens