doc-update

Um comando que analisa uma release do GitHub e propõe alterações na documentação do projeto com base nas mudanças publicadas.

In plain words
What is it for?
Serve para ler as notas da versão, encontrar documentos relacionados e sugerir o que mudar e onde fazer cada alteração.
Why use it?
Evita deixar o README e os guias desatualizados depois de adicionar funcionalidades ou fazer mudanças importantes.

Command for Claude Code

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/boykush/scraps/doc-update
Clone the repo
git clone --depth 1 https://github.com/boykush/scraps

Made for: Claude Code.

Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 617 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.00009 $0.00617
Opus 5 $0.00005 $0.00309
Sonnet 5 $0.00002 $0.00123
Haiku 4.5 $0.00001 $0.00062

Measured 2d ago against content hash d2464d2f8ffb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doc-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 2d 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/doc-update.md · 67 lines

What it actually says

Analyze a GitHub Release and propose documentation updates for the Scraps project:

Arguments:

  • $ARGUMENTS: Version number (e.g., "0.27.0")

Workflow:

  1. Fetch release information:

    • Get release details: gh release view v$ARGUMENTS --json body,name --jq '{name: .name, body: .body}'
    • Extract features and significant changes from release notes
  2. Analyze current documentation:

    • Read /README.md to understand current feature list and description
    • Search docs directory for relevant documentation files:
      • docs/What is Scraps?.md - Core concept and capabilities
      • docs/Getting Started.md - Getting started guide
      • docs/Configuration.md - Configuration documentation
      • docs/Feature/*.md - Feature-specific documentation
      • docs/CLI/*.md - CLI command documentation
    • Use Grep and Read to identify sections that may need updates
  3. Generate update proposals: For each feature or significant change in the release:

    • Identify affected files: Determine which documentation files should be updated
    • Propose specific changes: For each file, suggest:
      • What content to add/modify
      • Where to place it (specific section or line)
      • Why this update is needed

    Common update patterns:

    • New features:
      • Add to /README.md Features section if user-facing
      • Create or update relevant docs/Feature/*.md documentation
      • Update docs/Configuration.md if new config options added
      • Update relevant docs/CLI/*.md if CLI commands affected
    • Configuration changes:
      • Update docs/Configuration.md with new options and examples
      • Update docs/Getting Started.md if it affects initial setup
  4. Present proposals to user:

    • Show proposed changes grouped by file
    • Explain the rationale for each update based on release notes
    • Ask user which updates to proceed with
  5. User review and selection:

    • User can approve all, select specific updates, or request modifications
    • User can provide additional context or requirements for updates

Usage: /doc-update 0.27.0

Example:

# After creating release v0.27.0
/doc-update 0.27.0

Notes:

  • This command only proposes changes, it does not automatically update files
  • User must review and approve updates before implementation
  • Updates should maintain consistency with existing documentation style
  • Focus on user-facing changes that affect how users interact with Scraps
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. 2d ago First seen · 67 lines · 9 tokens per session scan A d2464d2f8ffb

Subscribe to this mod's changes

doc-update is a command published in the GitHub repository boykush/scraps (47 stars, last pushed 2d ago), licensed MIT. It adds 9 tokens to every session and 617 once invoked, about $0.0000 per session on Opus 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-30.