git-history-analyzer

Analyze git history to trace file evolution, contributors, and change patterns.

3|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/i3ringit/antigravity-cortex --skill git-history-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-history-analyzer
Source: https://github.com/i3ringit/antigravity-cortex/tree/main/.agent/skills/git-history-analyzer
Command: npx skills add https://github.com/i3ringit/antigravity-cortex --skill git-history-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams understand the historical context and evolution of code changes, trace contributors' activity, and identify patterns in commit history to inform future development decisions.

Core Features & Use Cases

  • File evolution tracing: see how files have changed across commits, including renames and refactors.
  • Contributor mapping: identify key contributors and their areas of expertise.
  • Pattern discovery: highlight recurring change patterns, fixes, and refactors over time.
  • Use Case: When evaluating why a module changed in a critical bugfix, examine the commit sequence and responsible authors to guide decisions.

Quick Start

  • Example workflow: run git log --follow --oneline -- path/to/file to see history; run git blame -w -C -C -C path/to/file to identify origins of specific changes; run git shortlog -sn -- path/to/file to map contributors.

Frequently Asked Questions about git-history-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace the history of changes to a specific file in git?

File history tracing uses `git log --follow` to see all commits affecting a file, including across renames and refactors. This reveals the complete evolution and authorship of code changes over time.

How can I identify who made specific changes to a file and when?

Git blame with `git blame -w -C -C -C` maps each line to its original author and commit, ignoring whitespace changes and detecting code movement. This pinpoints responsibility for specific modifications.

What's the best way to find key contributors to a module or file?

Use `git shortlog -sn` to count and rank commits by contributor across a file or directory. This identifies dominant authors and areas of expertise within your codebase.

Can I analyze git history to understand why a bug was introduced or when a module changed?

Yes. Combining commit history, blame attribution, and contributor mapping reveals the sequence of changes, responsible authors, and patterns that led to critical bugs or refactors.

Does this work for tracing changes across large codebases with many contributors?

Yes. Git history analysis scales to any codebase size. It's designed to map contributor activity and change patterns across modules, supporting informed decisions at any project scale.