Sync Docs
Recursively update all README.md and CLAUDE.md files, then archive completed active plans.
Part 1: Update READMEs
What belongs in READMEs
READMEs are for humans:
- What the directory/project does (purpose)
- File/directory listing with brief descriptions
- Setup/usage instructions
- Links to sub-READMEs and related docs
- Data format descriptions (for data/ dirs)
Steps
Find README.md files
- If
$ARGUMENTSis provided, scope to that directory's README only - Otherwise, use Glob to find all
**/README.mdin the project - Exclude
node_modules/,.venv/,.git/,agent_dev/
- If
Audit each README against its directory
- List the actual files and subdirectories (using
ls) - Compare against what the README documents
- Flag:
- Stale references — files/dirs mentioned that no longer exist
- Undocumented entries — files/dirs that exist but aren't mentioned
- Ignore:
.gitignore,__pycache__,.DS_Store,*.pyc
- List the actual files and subdirectories (using
Verify internal links (root README especially)
- Check that all markdown links resolve to existing files
- Check that directory tree diagrams match reality
- Flag broken links and outdated tree diagrams
Update each README
- Add brief entries for undocumented files/dirs
- Remove or mark references to deleted files
- Fix broken internal links
- Update directory tree diagrams to match current structure
- Keep descriptions concise — don't over-document
- Preserve existing style and tone
Part 2: Update CLAUDE.md Files
What belongs in CLAUDE.md
CLAUDE.md files are for agents:
- Instructions and constraints for working in this directory
- Commands to run (test, build, lint, etc.)
- Conventions to follow
# Insightssection (append-only — never modify)
Keep CLAUDE.md files CONCISE. Favor pointing to where information can be found. No code snippets; reference files and line numbers instead (e.g., file:line).
Steps
Find CLAUDE.md files
- If
$ARGUMENTSis provided, scope to that directory's CLAUDE.md only - Otherwise, use Glob to find all
**/CLAUDE.mdin the project - Exclude
node_modules/,.venv/,.git/,agent_dev/ - Also check for
.claude/CLAUDE.mdvariants
- If
Audit each CLAUDE.md for accuracy
- File/path references — do referenced files and directories still exist?
- Command references — do referenced commands still work?
- Check
pyproject.toml[project.scripts]and[tool.uv.scripts] - Check
Makefiletargets if referenced - Check
package.jsonscripts if referenced
- Check
- Skill references — are referenced skills still installed? (check
global_settings/claude/skills/and.claude/skills/) - Directory descriptions — do they match current directory contents?
Update each CLAUDE.md
- Fix stale file/path references
- Update command references to match current config
- Remove references to deleted directories or tools
- Update directory descriptions if structure changed
- DO NOT touch
# Insightssections — these are append-only - Preserve existing style and structure
Part 3: Archive Completed Plans
- Scan
agent_dev/active/for plans where all tasks are checked off - Move completed plans to
agent_dev/archived/ - Report which plans were archived
Summary
Show:
- Each README updated and what changed
- Each CLAUDE.md updated and what changed
- Plans archived (if any)
- Items that need human input