← ClaudeAtlas

git-analysislisted

This skill should be used when the user wants to analyze a git repository's health, team practices, and development patterns. Use this when users ask to "analyze this repo", want to understand team velocity, commit patterns, branching strategies, contributor distribution, or assess git best practices compliance. Also use for questions like "how healthy is this codebase" or "what are the development patterns here".
JoeCotellese/claude-code-config · ★ 5 · Code & Development · score 63
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}' ``` *