This skill reviews code and docs after changes, updates changelog README design and history, then commits and pushes.
npx playbooks add skill tsaol/awesome-claude --skill git-commit
This skill reviews project consistency after code changes to ensure:
~/.claude/collaboration.ymlTrigger /git-commit after:
Check if implementation matches design:
# Find design docs
find . -name "DESIGN.md" -o -name "*.design.md" -o -name "design*.md"
Verify CHANGELOG.md includes:
# Check recent changes vs CHANGELOG
git diff HEAD~5 --name-only
cat CHANGELOG.md | head -50
Ensure README.md reflects:
# Compare README with actual code
cat README.md
Check if ~/history.log exists and update it with session summary:
# Check if history.log exists
if [ -f ~/history.log ]; then
echo "history.log exists, will update"
fi
If exists, append a summary of changes made in this session:
=== {DATE} {PROJECT_NAME} - {BRIEF_DESCRIPTION} ===
## Changes
- Feature/fix description
- Files modified
- PRs created
## Key Commands
- python hub/main.py search "query"
- etc.
Automatically detect and bump the project version before committing.
5a. Detect version file:
# Check common version file locations (in priority order)
[ -f package.json ] && echo "package.json"
[ -f pyproject.toml ] && echo "pyproject.toml"
[ -f setup.py ] && echo "setup.py"
[ -f setup.cfg ] && echo "setup.cfg"
[ -f VERSION ] && echo "VERSION"
[ -f version.txt ] && echo "version.txt"
[ -f Cargo.toml ] && echo "Cargo.toml"
[ -f build.gradle ] && echo "build.gradle"
5b. Determine bump type based on changes:
| Change Type | Bump | Examples |
|-------------|------|----------|
| Bug fix, typo, minor tweak | patch (0.0.x) | fix query bug, update docs typo |
| New feature, enhancement | minor (0.x.0) | add user avatar upload, add new API endpoint |
| Breaking change, major rewrite | major (x.0.0) | change API response format, remove deprecated endpoints |
Decision logic:
5c. Bump the version:
# Python (pyproject.toml) - example: 0.2.1 → 0.2.2
# Read current version, calculate new version, update file
grep 'version = ' pyproject.toml
# Node.js (package.json) - example: 1.3.0 → 1.4.0
# Use npm version or manual edit
grep '"version"' package.json
# Plain VERSION file
cat VERSION
5d. Update CHANGELOG with new version header:
If CHANGELOG.md exists, ensure the new version appears at the top:
## [0.2.2] - 2026-02-26
- Fix slow query in user search
- Update error handling for API timeout
Important:
Generate a report:
## Consistency Check Report
### Files Changed
- [ ] List modified files
### Documentation Status
- [ ] CHANGELOG updated: Yes/No
- [ ] README accurate: Yes/No
- [ ] Design docs aligned: Yes/No
- [ ] ~/history.log updated: Yes/No/Not exists
### Version
- [ ] Version file detected: Yes (package.json) / No
- [ ] Current version: 0.2.1
- [ ] Bump type: patch / minor / major
- [ ] New version: 0.2.2
### Deploy Config
- [ ] Deploy configured: Yes/No
- [ ] Method: ssm / ssh / script / N/A
- [ ] Target: instance-id or host
### Issues Found
- Issue 1: ...
- Issue 2: ...
### Recommendations
- Action 1: ...
- Action 2: ...
Code Changes Complete
↓
/git-commit
↓
┌──────────────────────────────┐
│ 1. Read changed files │
│ 2. Check CHANGELOG │
│ 3. Verify README │
│ 4. Compare with docs │
│ 5. Update ~/history.log │
│ 6. Version Bump │
│ 7. Generate report │
│ 8. Fix issues (if any) │
│ 9. Git commit & push │
│ 10. Auto Deploy (if config) │
└──────────────────────────────┘
After fixing all issues, automatically commit and push:
git add modified filesALWAYS use simple, human-like commit messages:
Good examples:
add user loginfix slow queriesupdate packagesadd image download to browser fetcherstore s3 paths in opensearchBad examples:
feat: implement comprehensive user authentication system with JWT token validationchore: update dependencies to latest versionsdocs: update CHANGELOG for feature xyz# Example commit flow
git add .
git commit -m "add browser fetcher with screenshot support"
git push origin <branch>
gh pr create --reviewer tsaol # if on feature branch
After a successful push, check if the project has deployment configured and trigger it.
Deployment is configured per-project in ~/.claude/collaboration.yml:
projects:
my-project:
repo: user/my-project
deploy:
method: ssm # Deployment method (ssm, ssh, script)
instance: i-0abc123 # Target instance (for ssm/ssh)
command: "cd /app && git pull origin main && sudo systemctl restart myapp"
| Method | Description | Required Fields |
|--------|-------------|-----------------|
| ssm | AWS Systems Manager Run Command | instance, command |
| ssh | SSH to remote server | host, user, command |
| script | Run a local script | command |
Step 1: Check if deploy is configured
# Read collaboration.yml and find current project's deploy config
cat ~/.claude/collaboration.yml
Identify current project by matching git remote -v against the repo field in collaboration.yml.
Step 2: Check if deploy should trigger
Deploy ONLY when:
main or master (direct push workflow)Do NOT deploy when:
--no-deploy flag is usedStep 3: Confirm with user
🚀 Deploy detected for project "languages"
Method: ssm
Instance: i-0123456789abcdef0
Command: cd /home/ubuntu/languages && git pull origin main && sudo systemctl restart englearn
Proceed with deployment? (y/n)
Always ask for confirmation before deploying. Never auto-deploy without user approval.
Step 4: Execute deployment
# SSM method
aws ssm send-command \
--instance-ids "i-0abc123" \
--document-name "AWS-RunShellScript" \
--parameters "commands=[\"<deploy-command>\"]" \
--output text
# SSH method
ssh user@host "<deploy-command>"
# Script method
bash -c "<deploy-command>"
Step 5: Verify deployment
# Check SSM command status
aws ssm list-command-invocations \
--command-id "<command-id>" \
--details \
--output text
# Or check service status via SSM
aws ssm send-command \
--instance-ids "i-0abc123" \
--document-name "AWS-RunShellScript" \
--parameters "commands=[\"systemctl status <service>\"]"
Step 6: Report deploy result
### Deploy Result
- Project: languages
- Method: ssm
- Instance: i-0123456789abcdef0
- Status: ✅ SUCCESS / ❌ FAILED
- Details: Service restarted successfully
/git-commit # Full consistency review + commit + deploy
/git-commit --quick # Quick check (CHANGELOG + README only)
/git-commit --verbose # Detailed report with suggestions
/git-commit --no-deploy # Skip deployment even if configured
## Git Check Report
### Changed Files (last commit)
- src/storage.py
- src/main.py
### CHANGELOG Status
⚠️ CHANGELOG.md not updated for recent changes
### README Status
✅ README.md is up to date
### Recommendations
1. Add entry to CHANGELOG.md:
- "save url/source/category in sent_news.json"Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.