git-investigate

Trace code authors, changes, and root causes using git history commands.

187|24|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/sd0xdev/sd0x-dev-flow --skill git-investigate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-investigate
Source: https://github.com/sd0xdev/sd0x-dev-flow/tree/main/skills/git-investigate
Command: npx skills add https://github.com/sd0xdev/sd0x-dev-flow --skill git-investigate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Git Investigate Skill helps engineers quickly identify code authors, the timeline of changes, and the root causes behind defects by leveraging Git's built-in history commands.

Core Features & Use Cases

  • Author & timeline tracing: Determine who changed which lines and when using git blame.
  • Change analysis & root-cause: Inspect commit diffs and PR messages to diagnose why changes occurred.
  • Use Case: When debugging a bug that appears after multiple commits, run the skill to locate the commit(s) introducing the issue and outline the sequence of changes.

Quick Start

Use the git-investigate skill to start an investigation on a buggy function by identifying the author and the commit history that introduced the issue.

Frequently Asked Questions about git-investigate

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

FAQPage Schema
How do I trace the root cause of a bug in my git history?

To trace the root cause of a bug in git history, you analyze commit diffs and PR messages using git blame, git log --follow, and git diff. This identifies the specific commits and authors that introduced the defective changes.

What is the best way to find out who changed specific lines of code and when?

Finding out who changed specific lines of code and when requires author and timeline tracing. By applying git blame to the targeted codebase, you can determine exactly which authors modified which lines and the timeline of those changes.

How does git blame help with code investigation across multiple commits?

Git blame helps with code investigation across multiple commits by pinpointing the authors and timestamps of specific line changes. Combined with git diff to inspect commit diffs, it outlines the sequence of changes to locate the root cause of defects.

Can I use git log to follow the timeline of a specific file or function?

Yes, you can use git log --follow to trace the complete timeline of changes for a specific file or function. This allows you to inspect the commit history and PR messages to diagnose why changes occurred over time.

Do I need any special dependencies to perform a git code investigation?

You do not need any special dependencies to perform a git code investigation. The process relies entirely on standard git built-in history commands such as git blame, git log --follow, and git diff to produce detailed investigation reports.