Command Palette

Search for a command to run...

Back to skills
skill № 59274

binary-search-debugging

Using bisect/git bisect to isolate failure to exact commit or code path.

FreeNo executable scripts
sethdfordby sethdford★ 51 GitHub stars

Install binary-search-debugging in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Binary Search Debugging

Efficiently narrowing problem scope through bisection.

Context

You are using binary search to isolate a failure. Works for bugs and regressions.

Domain Context

  • Git Bisect: Half the commits; does bug exist here? Repeat until you find the culprit commit
  • Code Path: Disable half the code; does bug reproduce? Narrow to affected code
  • Data Range: Bugs with specific input; binary search the input space
  • Time Range: Regression over time; binary search commits

Instructions

  1. Identify Good and Bad Commits: When did it work? When did it break?
  2. Run Git Bisect: Automates binary search through commits
  3. Test at Bisect Point: Does bug exist at this commit?
  4. Bisect Reports: It, narrows range automatically
  5. Find Exact Commit: Run to completion; identifies culprit
  6. Review Commit: What changed? Why does it cause the bug?
  7. Code Path Bisect: Disable features/code paths; find what triggers bug

Anti-Patterns

  • Assuming recent commit caused it; test assumptions with bisect
  • Not using bisect on large commit ranges; manual search is slow
  • Bisecting without reproducible test; need consistent yes/no answer
  • Not reviewing found commit; understanding the bug matters

Further Reading

  • Git bisect documentation
  • Linux kernel debugging; git bisect is standard there

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the binary-search-debugging skill do?

Using bisect/git bisect to isolate failure to exact commit or code path.

How do I install the binary-search-debugging skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the binary-search-debugging skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare binary-search-debugging with