Automatically update and synchronize documentation when using git
A git hook that automatically updates your README and CLAUDE.md files whenever you commit changes, keeping your documentation always in sync with your codebase.
- 🔄 Automatic README.md version updates
- 📝 AI-powered changelog generation using Claude
- 🎯 Smart commit message analysis
- ⚡ Zero configuration required
- 🔒 Works seamlessly with Claude CLI permissions
Clone and run the install script:
git clone https://github.com/yourusername/AutoDoc.git
cd AutoDoc
./install.shThe installer will:
- Set up a global git template directory
- Configure the post-commit hook
- Make it available for all your git repositories
Simply commit as normal - AutoDoc works automatically:
git add .
git commit -m "feat: add new API endpoint"
# AutoDoc updates README.md automaticallyTo skip documentation updates for a specific commit:
git commit -m "wip: temporary changes" --no-verify- Post-commit Hook: Triggers after every commit
- Claude Integration: Uses Claude AI to understand changes
- Smart Updates: Updates only version and changelog sections
- Automatic Staging: Adds the updated README.md to git
- fix: restore changelog and disable CLAUDE.md updates
- feat: completely rebuild AutoDoc with timeout handling and optimization
- fix: handle Claude CLI permission restrictions gracefully
- perf: add 30-second timeout for all operations
- perf: optimize file reading and writing
- refactor: cleaner error handling and output
- fix: improve Claude prompts to output only file content
- perf: reduce token usage for efficient updates
- docs: clarify documentation update behavior
- Initial release with automatic README updates
- Claude AI integration for intelligent documentation
- Global git hook installation
# Check if hook is installed
ls -la .git/hooks/post-commit
# Reinstall if needed
cd /path/to/AutoDoc
./install.shThe hook handles Claude CLI permissions automatically. If you see permission notices, they're informational only.
Enable debug output:
DEBUG=1 git commit -m "test commit"Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details