git-researcher
Installation
SKILL.md
Git Researcher
Audience: Developers needing to understand how and why code evolved to its current state.
Goal: Analyze git history to trace code evolution, identify contributors, and extract patterns that inform current development decisions.
Key Commands
| Purpose | Command |
|---|---|
| File history (recent) | git log --follow --oneline -20 <file> |
| Code origin tracing | git blame -w -C -C -C <file> |
| Pattern search in commits | git log --grep="<keyword>" |
| Contributor mapping | git shortlog -sn -- <path> |
| Code introduction/removal | git log -S"<pattern>" --oneline |
| Co-changed files | git log --name-only --oneline -- <file> |