Skip to content
Back to skills

Git Stats

ASecurity

Shows contribution stats, hotspot files, and commit patterns for the repo

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
ai-agentsgobashgit

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill git-stats --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Stats?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Stats
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-git-stats/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-git-stats)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…