finding-bug-commits

Identify the exact commit that introduced a bug using git bisect.

7|Updated Sep 27, 2022
One-click install
npx skills add https://github.com/vieitesss/.mac_config --skill finding-bug-commits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finding-bug-commits
Source: https://github.com/vieitesss/.mac_config/tree/main/agents/skills/finding-bug-commits
Command: npx skills add https://github.com/vieitesss/.mac_config --skill finding-bug-commits

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify the exact commit that introduced a bug or regression in a codebase using git bisect.

Core Features & Use Cases

  • Guide you through using git bisect to find bug-introducing commits
  • Help you choose between automated (script-based) or manual bisect approaches
  • Provide step-by-step workflows with progress tracking
  • Handle edge cases like untestable commits and bisect recovery

Quick Start

Start a git bisect session to identify the first bad commit and verify the result by inspecting the culprit's changes.

Frequently Asked Questions about finding-bug-commits

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

FAQPage Schema
How do I find the exact commit that introduced a bug using git bisect?

To find a bug-introducing commit with git bisect, you provide a known-good and a known-bad commit, then run test scripts or manual checks on the binary-searched commits until the culprit is identified.

Can I automate git bisect to find regressions without manual checking?

Yes, you can automate finding regressions by providing a test script to git bisect. The workflow runs the script automatically on each checked commit to classify it as good or bad without manual intervention.

What do I need to start a git bisect workflow for tracing breaking changes?

To start a git bisect workflow for tracing breaking changes, you need a known-good commit and a known-bad commit in your codebase history, plus a test script or manual checks to validate each step.

How does git bisect handle edge cases like untestable commits?

Git bisect handles edge cases like untestable commits by allowing you to skip them during the workflow. It also provides recovery options to manage bisect sessions that encounter broken history states.

What is the best way to find a regression in code history when I have a large codebase?

Using git bisect is the best way to find regressions in a large codebase because it performs a binary search across your commit history, quickly narrowing down the exact commit that introduced the bug.

Why does git bisect stop working and how do I recover the session?

Git bisect may stop working when encountering untestable commits or broken states. You can recover the bisect session by skipping the problematic commit or using built-in bisect recovery commands to reset the workflow.