Run these commands in the working directory and return their output to the calling skill, which decides what to do with it. Flag files in both churn hotspots and bug clusters as highest risk.
Churn hotspots
Most-changed files in the last year:
bashgit log --format=format: --name-only --since="1 year ago" \ | sort | uniq -c | sort -nr | head -20
Bus factor
Contributor commit counts, across all history and the last six months:
bashgit shortlog -sn --no-merges git shortlog -sn --no-merges --since="6 months ago"
Bug clusters
Files most often touched by bug-fix commits:
bashgit log -i -E --grep="fix|bug|broken" \ --name-only --format='' | sort | uniq -c | sort -nr | head -20
Commit velocity
Commits per month:
bashgit log --format='%ad' --date=format:'%Y-%m' \ | sort | uniq -c
Crisis patterns
Reverts, hotfixes, and rollbacks in the last year:
bashgit log --oneline --since="1 year ago" \ | grep -iE 'revert|hotfix|emergency|rollback'


