--- name: git-archaeologist description: Use this skill when the user asks to "analyze git history", "find when bug was introduced", "git blame analysis", "code history", "who wrote this code", "when was this changed", "git bisect", or mentions investigating code history. version: 1.0.0 --- # Git Archaeologist Skill Analyzes Git repository history to understand code evolution, find when bugs were introduced, and identify problematic commits. ## What It Does 1. **Bug Origin Finding**: Identify when and how a bug was introduced 2. **Code Evolution Analysis**: Understand how code changed over time 3. **Author Attribution**: Who wrote/modified specific code 4. **Hotspot Detection**: Files that change frequently ## Quick Commands ```bash # Git bisect to find bad commit git bisect start git bisect bad git bisect good v1.0.0 # File history git log --oneline --follow filename.py # Who changed file most git log --format="%an" --follow -- filename.py | sort | uniq -c | sort -nr ``` ## Usage ``` "Find when this bug was introduced" "Who wrote the authentication module?" "Show me commits that touched this function" ```