Skip to content

claude-commands/command-git-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

command-git-stats

A Claude Code slash command for git repository statistics and insights.

Installation

# Clone to your preferred location
git clone git@github.com:claude-commands/command-git-stats.git <clone-path>/command-git-stats

# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-git-stats/git-stats.md ~/.claude/commands/git-stats.md

Usage

/git-stats                       # Full repository statistics
/git-stats --author              # Contributor statistics
/git-stats --files               # File change statistics
/git-stats --period=30d          # Stats for last 30 days
/git-stats --compare=main..dev   # Compare branches

What it does

  1. Analyzes commit history and patterns
  2. Calculates contributor metrics
  3. Identifies code hotspots and churn
  4. Generates visual activity summaries
  5. Highlights trends and recommendations

Statistics Included

  • Repository overview (commits, branches, tags)
  • Commit activity by day/hour
  • Contributor leaderboard
  • File change hotspots
  • Code churn analysis
  • Branch health
  • Merge statistics

Output Format

Repository Overview

| Metric       | Value  |
| ------------ | ------ |
| Total Commits| 1,234  |
| Contributors | 15     |
| Branches     | 23     |

Contributor Statistics

| Author | Commits | Lines+ | % |
| ------ | ------- | ------ | - |
| @john  | 456     | 45,230 | 37% |
| @jane  | 312     | 32,100 | 25% |

Options

Option Description
--author Focus on contributor stats
--files Focus on file change stats
--period Time period (7d, 30d, 90d)
--compare Compare two refs
--format Output format

Requirements

  • Git
  • Claude Code with Opus 4.5 model access

Updates

cd <clone-path>/command-git-stats && git pull

About

Git repository statistics and insights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published