Git stats

From berkcangumusisik/claude-code-practices · View interactive version

Git stats is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Shows contribution stats, hotspot files, and commit patterns for the repo

How to use this skill

Skill file

Git Repository Stats

# Overall stats
git shortlog -sn --no-merges | head -20

# Recent activity
git log --oneline --since="30 days ago" | wc -l

# Most changed files (hotspots)
git log --name-only --no-merges --pretty=format: | sort | uniq -c | sort -rn | head -20

# Commit frequency by day of week
git log --format="%ad" --date=format:"%A" | sort | uniq -c | sort -rn

# Lines changed per author (if requested: $ARGUMENTS)
git log --no-merges --author="$1" --shortstat | grep -E "file|insertion|deletion" | awk '{files+=$1; ins+=$4; del+=$6} END {print "Files:", files, "Insertions:", ins, "Deletions:", del}'

Present findings as a readable report:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.