update-docs

update-docs is a command for coding agents from d-o-hub/github-template-ai-agents. It costs 0 tokens per session (2,124 once invoked), scanned A, original, MIT.

A documentation maintenance command that checks shell commands, updates agent documentation, synchronizes references, and validates internal links.

In plain words
What is it for?
Use it to verify and refresh project documentation, including AGENTS.md files and cross-references.
Why use it?
It helps catch broken commands, stale documentation, and links that no longer point to valid pages.

Command

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 commands/d-o-hub/github-template-ai-agents/update-docs
Clone the repo
git clone --depth 1 https://github.com/d-o-hub/github-template-ai-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 update-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/d-o-hub/github-template-ai-agents/update-docs.svg)](https://agentmods.dev/commands/d-o-hub/github-template-ai-agents/update-docs)
Your own site
<a href="https://agentmods.dev/commands/d-o-hub/github-template-ai-agents/update-docs"><img src="https://agentmods.dev/badge/commands/d-o-hub/github-template-ai-agents/update-docs.svg" alt="Measured on agentmods" 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 2,124 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.00000 $0.02124
Opus 5 $0.00000 $0.01062
Sonnet 5 $0.00000 $0.00425
Haiku 4.5 $0.00000 $0.00212

Measured yesterday against content hash 7fb535368bd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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.

.opencode/commands/update-docs.md · 365 lines

How it starts

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

/update-docs

Auto-update all documentation with command verification and link validation.

Description

This command orchestrates a complete documentation update process, including command verification, AGENTS.md synchronization, documentation sync, and link validation.

Usage

/scripts/update-all-docs.sh [OPTIONS]

Options

Option Description
--dry-run Show what would be done without making changes
--force Force update even if cache is valid
--skip-verify Skip command verification step
--skip-links Skip link validation step
--verbose Show detailed output
--silent Suppress output except errors
--help Show help message

Slash Commands

/update-docs

Run complete documentation update process.

What it does:

  1. Command Verification - Validates all shell commands in markdown files
  2. AGENTS.md Update - Synchronizes agent configuration documentation
  3. Documentation Sync - Updates cross-references and generated content
  4. Link Validation - Checks all internal links for broken references

Example output:

🔄 Starting Documentation Auto-Update...

📚 PHASE 1: Command Verification
✓ Found 267 markdown files
✓ Discovered 847 unique commands
✓ Cache hit rate: 94.2% (798/847 from cache)
⚡ Validating 49 new/changed commands...
✅ All commands validated successfully

📝 PHASE 2: AGENTS.md Synchronization
✓ Updated skill references
✓ Synchronized command definitions
✓ Refreshed configuration examples

🔗 PHASE 3: Link Validation
✓ Checked 1,234 internal links
⚠️  Found 3 broken links (see report)
✓ Fixed 2 auto-correctable links

📊 Summary:
  Files updated: 12
  Commands verified: 847
  Links checked: 1,234
  Broken links: 3
  Time elapsed: 23s

✅ Documentation update complete!

/update-docs-dry

Preview what would be updated without making changes.

What it shows:

  • Which files would be modified
  • Which commands need revalidation
  • Which links are broken
  • Estimated time for full update

Read the full file on GitHub · 365 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. yesterday First seen · 365 lines · 0 tokens per session scan A 7fb535368bd5

Subscribe to this mod's changes

update-docs is a command published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,124 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.