git-history-investigation

Trace git commit chains from symptom to root cause using log, diff, and blame.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill git-history-investigation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-history-investigation
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/git-history-investigation
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill git-history-investigation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

Reconstruct auditable git history from evidence to explain why behavior changed, enabling clear ownership and regression analysis.

Core Features & Use Cases

  • Collect and link symptom timelines to commit behavior using git log, git show, git diff, and git blame.
  • Produce a root-cause hypothesis with supporting and disconfirming evidence.
  • Use for post-mortems, ownership questions, and regression tracing across repositories.

Quick Start

Run a history-analysis on a git repository to map symptom timelines to root-cause evidence using log/show/diff/blame.

Frequently Asked Questions about git-history-investigation

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

FAQPage Schema
How do I investigate a git history to find the root cause of a regression?

The best way to trace behavior changes is to map symptom timelines to commits using git log, git show, git diff, and git blame, producing a structured root-cause report with confidence ratings and recommended actions.

How does git blame help with root-cause analysis in a codebase?

Git blame identifies the specific commits and authors that modified impacted paths, providing evidence to link observed symptoms to the exact code changes that caused the behavior change.

Can I use git diff and logs to build an auditable history for post-mortems?

Yes, you can build auditable histories by collecting and linking symptom timelines to commit behavior using git log and git diff, yielding reproducible evidence for post-mortems and ownership questions.

What is the best way to document alternative hypotheses during a git investigation?

The best way to document alternative hypotheses is to produce a structured root-cause report that explicitly includes supporting and disconfirming evidence gathered from logs, diffs, and blame data.

Does git history investigation work for tracing regressions across multiple repositories?

Yes, git history investigation applies to codebases where regressions or ownership questions require evidence-based history analysis, including tracing across repositories within a defined time window and impacted paths.