docs-update

docs-update is a command for Claude Code from strikersam/autonomous-ai-agency. It costs 0 tokens per session (709 once invoked), scanned A, original, MIT.

A command that updates project documentation after code changes. It checks changed files, maps them to related documentation, and verifies that changelog and configuration references stay current.

In plain words
What is it for?
Use it after changing modules, endpoints, environment variables, services, authentication, workflows, or dependencies.
Why use it?
It helps prevent documentation from describing old behavior, missing new settings, or omitting new API and workflow changes.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it after changing modules, endpoints, environment variables, services, authentication, workflows, or dependencies.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/strikersam/autonomous-ai-agency/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/strikersam/autonomous-ai-agency

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 docs-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/strikersam/autonomous-ai-agency/docs-update/github.svg)](https://agentmods.dev/commands/strikersam/autonomous-ai-agency/docs-update)
Your own site
<a href="https://agentmods.dev/commands/strikersam/autonomous-ai-agency/docs-update"><img src="https://agentmods.dev/badge/commands/strikersam/autonomous-ai-agency/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/strikersam/autonomous-ai-agency/docs-update"><img src="https://agentmods.dev/badge/commands/strikersam/autonomous-ai-agency/docs-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 709 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.00000 $0.00709
Opus 5 $0.00000 $0.00354
Sonnet 5 $0.00000 $0.00142
Haiku 4.5 $0.00000 $0.00071

Measured 6d ago against content hash 6c181ce2b263, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 6d 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.

.claude/commands/docs-update.md · 78 lines

How it starts

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

/docs-update — Documentation Agent

Keep documentation in sync with the codebase after code changes.

When to use

  • After any PR that changes module behavior, API endpoints, or env vars
  • When CLAUDE.md references feel stale
  • When new features are added without documentation
  • Monthly documentation health check

Steps

  1. Identify what changed

    git diff main..HEAD --name-only
    
  2. Map files to documentation

    Changed File Docs to Update
    proxy.py (new endpoint) docs/api-surfaces.md
    proxy.py (new env var) docs/configuration-reference.md, .env.example
    router/ docs/model-routing.md, router/CLAUDE.md
    agent/loop.py docs/architecture/agent-orchestration.md, agent/CLAUDE.md
    agent/tools.py agent/CLAUDE.md
    New service docs/architecture/overview.md
    Auth change admin_auth.py inline docs, docs/admin-dashboard.md
    New workflow docs/architecture/
    requirements.txt audit/dependency-analysis.md
  3. Check changelog

    • Is the change documented under ## [Unreleased] in docs/changelog.md?
    • If not, add an entry now
  4. Check API surfaces document

    # Find new endpoints in proxy.py
    grep -n "@app\.\(get\|post\|put\|delete\|patch\)" proxy.py | \
      grep -v "# already documented"
    
  5. Check configuration reference

    # Find new env vars
    grep -n "os.environ.get" proxy.py backend/server.py | \
      grep -v "already documented" | head -30
    
  6. Update CLAUDE.md files

    • Root CLAUDE.md: if codebase map changes
    • Module CLAUDE.md: if module contracts or invariants change
    • AGENTS.md: if agent roles, commands, or security requirements change
  7. Validate doc links

    # Check for broken internal links
    grep -rn "\[.*\](docs/" *.md docs/*.md 2>/dev/null | while read line; do
      path=$(echo $line | grep -o '(docs/[^)]*)')
      path=${path:1:${#path}-2}
      if [ ! -f "$path" ]; then
        echo "BROKEN LINK: $line → $path"
      fi
    done
    

Read the full file on GitHub · 78 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. 6d ago First seen · 78 lines · 0 tokens per session scan A 6c181ce2b263

Subscribe to this mod's changes

docs-update is a command published in the GitHub repository strikersam/autonomous-ai-agency (8 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 709 tokens. 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-09-03.