Install
openclaw skills install git-repo-cleanerAudit and clean up Git repositories. Find stale/merged branches, large files in history, orphaned tags, repo bloat, and generate cleanup scripts. Use when asked to clean up a git repo, find stale branches, detect large files in git history, audit repo health, find merged branches to delete, reduce repo size, or perform git maintenance. Triggers on "clean up repo", "stale branches", "large files in git", "repo bloat", "merged branches", "git cleanup", "repo maintenance", "git audit".
openclaw skills install git-repo-cleanerAudit Git repositories for bloat, stale branches, and maintenance issues. Generate safe cleanup scripts.
python3 scripts/audit_repo.py /path/to/repo
# Stale branches only
python3 scripts/audit_repo.py /path/to/repo --check branches
# Large files in history
python3 scripts/audit_repo.py /path/to/repo --check large-files
# Full audit
python3 scripts/audit_repo.py /path/to/repo --check all
python3 scripts/audit_repo.py /path/to/repo --format text|json|markdown
--stale-days)--min-size)Use --fix to generate (not execute) cleanup scripts:
python3 scripts/audit_repo.py /path/to/repo --fix
# Outputs cleanup.sh with safe delete commands
The generated script uses git branch -d (safe delete, refuses if not merged) by default.
Use --force-delete to generate git branch -D commands instead.