git-analysislisted
Install: claude install-skill JoeCotellese/claude-code-config
# Git Analysis
## Overview
This skill provides comprehensive git repository analysis covering team practices, commit patterns, velocity metrics, and codebase health. It leverages both native git commands and open source analysis tools to generate actionable insights.
## Quick Start
To perform a comprehensive repository analysis:
1. Run `scripts/check_tools.sh` to verify available analysis tools
2. Run `scripts/analyze_repo.sh` for a full analysis report
3. For specific analyses, use the individual commands documented below
## Analysis Categories
### 1. Repository Overview
Quick snapshot of the repository:
```bash
# If onefetch is installed - visual repo summary
onefetch
# Native git alternative
git shortlog -sn --all | head -20 # Top contributors
git rev-list --count HEAD # Total commits
git branch -a | wc -l # Branch count
```
### 2. Commit Quality & Best Practices
**Commit Size Analysis:**
```bash
# Average files changed per commit (last 100 commits)
git log --oneline --shortstat -100 | grep "files\? changed" | awk '{sum+=$1; count++} END {print "Avg files/commit:", sum/count}'
# Large commits (>10 files changed) - potential code review issues
git log --oneline --shortstat | awk '/files? changed/ {if ($1 > 10) count++} END {print "Large commits (>10 files):", count}'
# Commits with very short messages (<10 chars) - quality indicator
git log --format="%s" | awk 'length($0) < 10 {count++} END {print "Short commit messages:", count}'
```
*