Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Git Stats

ASecurity

Analyze git repository statistics — contributor rankings, commit

14 stars
0 votes
0 copies
1 views
Added 9/7/2026
datagobashgitapi

Works with

api

Security Analysis

A100/100

Scanned 9/7/2026

Install to Claude Code

$npx -y skills add modbender/skill-library-mcp --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 automatically with every re-scan.

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

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: git-stats
description: Analyze git repository statistics — contributor rankings, commit
  frequency, file churn, and activity patterns.
---


# Git Stats

Analyze git repository statistics and generate visual reports.

**Use when** reviewing project activity, contributor rankings, or identifying hotspots.

## Requirements

- Git repository
- No API keys needed

## Instructions

1. **Verify repo**: `git rev-parse --is-inside-work-tree` — exit early if not a git repo.

2. **Run analysis commands**:

   ```bash
   # Project overview
   echo "First commit: $(git log --reverse --format='%ai' | head -1)"
   echo "Latest commit: $(git log -1 --format='%ai')"
   echo "Total commits: $(git rev-list --count HEAD)"
   echo "Contributors: $(git shortlog -sn --all | wc -l)"
   echo "Branches: $(git branch -a | wc -l)"
   echo "Tags: $(git tag | wc -l)"

   # Top contributors
   git shortlog -sn --all | head -15

   # Commits per day
   git log --format='%ai' | cut -d' ' -f1 | sort | uniq -c | sort -rn | head -20

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

   # Commits by hour
   git log --format='%ad' --date=format:'%H' | sort | uniq -c | sort -n

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

   # Lines added/removed per contributor
   git log --format='%aN' --numstat | awk '...'  # complex awk parsing
   ```

3. **Output format**:
   ```
   ## 📊 Git Repository Stats
   **Repo:** <name> | **Period:** <first> → <last> | **Age:** X months

   ### 👥 Top Contributors
   | # | Author | Commits | % |
   |---|--------|---------|---|
   | 1 | Alice  | 342     | 45% |
   | 2 | Bob    | 210     | 28% |

   ### 📅 Activity Patterns
   - Busiest day: Wednesday (avg 4.2 commits)
   - Busiest hour: 14:00-15:00
   - Longest streak: 23 consecutive days

   ### 🔥 Hotspot Files (most changed)
   | File | Changes | Last Modified |
   |------|---------|--------------|
   | src/main.ts | 89 | 2025-01-10 |

   ### 📈 Monthly Trend
   | Month | Commits |
   |-------|---------|
   | 2025-01 | ████████ 42 |
   | 2024-12 | ██████ 31 |
   ```

4. **Custom date range**: Support `--since` and `--until` flags for filtered analysis.

## Edge Cases

- **Empty repo**: Report "No commits found."
- **Single contributor**: Skip ranking, focus on activity patterns.
- **Very large repos** (>100k commits): Use `--since="1 year ago"` by default and note the filter.
- **Detached HEAD**: Use `--all` flag to include all branches.

## Troubleshooting

- **Duplicate authors** (same person, different emails): Suggest `.mailmap` file for deduplication.
- **Slow on large repos**: Add `--no-merges` and limit date range.

Attribution

modbendermodbender
View sourceMore from modbender →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Twitter Algorithm Optimizer

Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.

742580 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

663750 votes

Weather

Get current weather and forecasts (no API key required).

484900 votes
View all in data →