| name | docs-hook |
| description | Lightweight git hook integration for updating agents-docs with minimal tokens. Triggered on commit/merge events to sync documentation. |
Docs Hook
Ultra-lightweight documentation sync via git hooks.
When to use
- You need docs updates to happen automatically on commit/merge.
- You want low-overhead markdown synchronization with minimal token usage.
- You are keeping
agents-docs/ aligned with recently changed docs files.
Trigger
- "git hook", "on commit", "pre-commit"
- "sync docs", "update docs"
- "merge sync", "push docs"
Usage
./scripts/docs-sync.sh HEAD~1 HEAD
Or add to .git/hooks/post-commit:
#!/bin/bash
./scripts/docs-sync.sh HEAD~1 HEAD
Minimal Token Workflow
- Diff: Get changed
.md files between commits
- Sync: Copy to target directory
- Done: No ML, no logging, no metrics
Working Script
See scripts/docs-sync.sh - the actual executable.