anton-abyzov/vskill-test-public-skills-826/git-bisect-detective

Claude Code and agent skill by anton-abyzov/vskill-test-public-skills-826

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Drive git bisect to find the exact commit that introduced a regression, including automated test scripts and merge-commit handling.

Install

npx vskill@latest install anton-abyzov/vskill-test-public-skills-826/git-bisect-detective

SKILL.md

The same SKILL.md was published earlier as anton-abyzov/vskill-test-public-skills-826/git-bisect-detective.

git-bisect-detective

Find the precise commit that introduced a bug using git bisect. This skill turns a vague "it worked last week" report into a single offending SHA, then explains the change.

When to use

  • A test that used to pass now fails and nobody knows which commit broke it.
  • A performance regression appeared somewhere in a range of commits.
  • You can describe "good" and "bad" states with a repeatable check.

Core workflow

  1. Confirm a reliable reproduction. You need a command that exits 0 when the

code is good and non-zero when it is bad.

  1. Identify a known-good commit (often a release tag) and a known-bad commit

(usually HEAD).

  1. Start the bisect session, then let git binary-search the range.
bash
git bisect start
git bisect bad HEAD
git bisect good v2.4.0 # last release known to work

git checks out the midpoint. Test it, then mark the result:

bash
git bisect good # the checked-out commit is fine
# or
git bisect bad # the checked-out commit shows the bug

Repeat until git prints <sha> is the first bad commit. Always finish with:

bash
git bisect reset

Automate with a test script

Manual marking is slow and error-prone. Provide a script and let git run it:

bash
git bisect start HEAD v2.4.0
git bisect run ./scripts/repro.sh

repro.sh must follow the bisect exit-code contract:

Exit codeMeaninggit interprets as
0commit is goodgit bisect good
1–124commit is badgit bisect bad
125cannot testgit bisect skip
>=128abort the bisectstop immediately

Example script:

bash
#!/usr/bin/env bash
set -euo pipefail
make build || exit 125 # skip commits that don't compile
npm test -- --run regression.spec.ts

Handling tricky ranges

  • Untestable commits (broken build, missing deps): return 125 so git runs

git bisect skip instead of mislabeling them.

  • Merge commits: bisect already understands the DAG; you do not linearize

history. If a first-bad-commit is a merge, inspect both parents.

  • Flaky tests: stabilize the repro first. A flaky check makes bisect chase

noise. Run the test several times locally before trusting a single result.

  • Large ranges: bisect is O(log n). Even 4,096 commits resolve in ~12

steps, so do not hand-pick midpoints.

After you find it

  1. git show <sha> to read the diff.
  2. Summarize why the change caused the regression, not just what changed.
  3. Propose the minimal fix or a revert, and add a regression test so the same

commit class cannot slip through again.

Agent guidance

  • Never guess the bad commit by reading diffs first — let bisect prove it.
  • Always pair a found commit with a new automated test.
  • Clean up with git bisect reset even when the run fails.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 10 Jun 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/anton-abyzov/vskill-test-public-skills-826/git-bisect-detective/badge)](https://verified-skill.com/skills/anton-abyzov/vskill-test-public-skills-826/git-bisect-detective)

Something wrong with this skill or its page? Tell us.