sync-docs

A command that updates CLAUDE.md and CHANGELOG.md to match recent code changes. CLAUDE.md is a project guidance file, while a changelog records what changed between releases.

In plain words
What is it for?
For reviewing recent commits and updating documented commands, architecture, tests, repository files, and environment variables.
Why use it?
Project documentation can become inaccurate as code evolves. This command checks commits, versions, source files, tests, and configuration for that drift.

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/faxtom/notebooklm-mcp/sync-docs
Clone the repo
git clone --depth 1 https://github.com/Faxtom/notebooklm-mcp

Made for: Claude Code.

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 531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00531
Opus 5 $0.00000 $0.00266
Sonnet 5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

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

Security

Grade A, and why

sync-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.

Origin

This is a copy

100% identical to sync-docs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/sync-docs.md · 64 lines

How it starts

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

Sync CLAUDE.md and CHANGELOG.md with recent changes.

Instructions

You are updating the project documentation to reflect the current state of the codebase. Follow these steps.

Step 1: Gather recent changes

Run these in parallel:

  • git log --oneline from the last tagged release to HEAD — to see what changed
  • Read the current CLAUDE.md
  • Read the current CHANGELOG.md
  • Read pyproject.toml for the current version

To find the last release tag:

git describe --tags --abbrev=0

Then get commits since that tag:

git log <tag>..HEAD --oneline

Step 2: Scan the codebase for drift

Check if CLAUDE.md is out of date by looking at:

  • Commands section — run grep -r "add_argument\|add_parser" src/ to find all CLI subcommands and flags, compare with what CLAUDE.md lists
  • Architecture section — check if any new modules were added under src/
  • Testing section — check if new test files or markers exist in tests/
  • Repo Structure section — check if any new top-level files or .github/ files exist that aren't listed
  • Environment Variables — check config.py for any new env vars

Step 3: Propose updates

Show the user a summary of what's out of date:

  • What's missing from CLAUDE.md
  • What commits should be added to CHANGELOG.md (under an [Unreleased] section if not yet released)

Ask the user to confirm before making changes.

Step 4: Update CLAUDE.md

Edit CLAUDE.md to reflect the current state. Keep the existing structure and style. Only add or update what's changed — don't rewrite sections that are already accurate.

Step 5: Update CHANGELOG.md

If there are unreleased changes since the last tag, add them under an [Unreleased] section at the top of CHANGELOG.md. Group changes by type:

  • Added — new features
  • Changed — changes to existing functionality
  • Fixed — bug fixes
  • Removed — removed features

If there are no unreleased changes, skip this step.

Step 6: Commit

git add CLAUDE.md CHANGELOG.md
git commit -m "Sync docs with recent changes"

Read the full file on GitHub · 64 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 · 64 lines · 0 tokens per session scan A 5f7aafc5c174

Subscribe to this mod's changes

sync-docs is a command published in the GitHub repository Faxtom/notebooklm-mcp (0 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 531 tokens. A static security scan graded it A with 0 findings. It is 100% identical to sync-docs, differing in 0 lines, and is treated as a copy.