// Keep project documentation current and optimized for AI agents. Use when user asks to "update docs", "sync documentation", "update CLAUDE.md", "update README", "check documentation freshness", "document recent changes", or "optimize docs for AI".
| name | docs-maintenance |
| description | Keep project documentation current and optimized for AI agents. Use when user asks to "update docs", "sync documentation", "update CLAUDE.md", "update README", "check documentation freshness", "document recent changes", or "optimize docs for AI". |
| allowed-tools | Read, Write, Edit, Grep, Glob, Bash, TodoWrite |
Comprehensive methodology for keeping project documentation current, consistent, and optimized for AI coding agents.
CLAUDE.md - AI agent instructionsREADME.md - Project overviewCHANGELOG.md - Version history/docs/ directory - Extended documentationgit log --oneline --since="$(git log -1 --format=%ci -- CLAUDE.md)"
Verify CLAUDE.md includes essential sections:
Required Sections:
AI-Friendly Patterns:
npm test" not "You can run tests")Anti-Patterns to Fix:
Follow Keep a Changelog format:
Categories:
Best Practices:
Stale Documentation Signs:
Freshness Commands:
# Last doc update vs last code change
git log -1 --format=%ci -- CLAUDE.md
git log -1 --format=%ci -- "*.ts" "*.js" "*.py"
# Files changed since last CLAUDE.md update
git diff --name-only $(git log -1 --format=%H -- CLAUDE.md)..HEAD
See the reference documents for detailed guidance:
references/claude-md-guide.md - CLAUDE.md optimization patterns and section templatesreferences/changelog-patterns.md - Keep a Changelog format and git extraction techniquesreferences/doc-sync-methodology.md - Git commands, pattern detection, and automation