Back to skills
SKILL.md
Git Stats
ASecurityShows contribution stats, hotspot files, and commit patterns for the repo
- 10 stars
- 0 votes
- 0 copies
- 2 views
- Added June 1, 2026
Security analysis
100/100npx -y skills add berkcangumusisik/claude-code-practices --skill git-stats --agent claude-codeAre you the author of Git Stats?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/berkcangumusisik-git-stats)---
name: git-stats
description: Shows contribution stats, hotspot files, and commit patterns for the repo
argument-hint: [author] [--since=30days]
user-invocable: true
allowed-tools: Bash(git *)
effort: low
---
## Git Repository Stats
```bash
# 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:
- Top contributors
- Most active files (high churn = technical debt candidates)
- Commit patterns (which days/times are most active)
- Any observations about code health
Attribution
Comments
Loading comments…