agentleFS
anuqanuq/my-claude-skills/bisect/SKILL.md

bisect

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Automated git bisect that uses Claude to find exactly which commit introduced a bug. Use this skill whenever the user mentions bisect, "find which commit broke", "when did this bug start", "which commit introduced", "regression", "worked before but now it doesn't", "find the breaking change", or any situation where something used to work and now doesn't and they want to trace it to a specific commit. Also trigger when the user describes a bug and mentions it's a regression or that it "used to work".

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. paultyng/skill-issue★ 8same name
    2. ohm41321/luciazero★ 6same name
    3. Pradnyeshp/Claude-Skills★ 2same name
    4. lkc-studio/claude-skill-bisect★ 1same name
    5. tokyubevoxelverse/bisect★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting, you need two things from the user:

    line 12
  2. Distinctive:

    If the user doesn't provide these upfront, ask.

    line 20
  3. Very specific:

    Check for uncommitted changes with git status.

    line 26
  4. Distinctive:

    Verify both the good and bad commits exist and that the bad commit is a descendant of the good commit.

    line 28
  5. Distinctive:

    When the user described the bug in words instead of giving a test command, you drive bisect manually:

    line 45
  6. Very specific:

    Read the diff for that commit: git show --stat <SHA> first for an overview, then git show <SHA> for the full diff

    line 55
  7. Distinctive:

    If applicable, suggest a fix direction (but keep it brief — the user asked for bisect, not a fix)

    line 72
  8. Distinctive:

    After bisect completes (success or failure):

    line 76
  9. Distinctive:

    Run git bisect reset to return to the original HEAD

    line 78
  10. Distinctive:

    If you stashed changes earlier, run git stash pop

    line 79
  11. Distinctive:

    If bisect encounters a commit that can't be built/tested, use git bisect skip

    line 84
  12. Distinctive:

    If the test command is flaky (passes/fails inconsistently), mention this to the user and suggest they provide a more reliable test

    line 85
  13. Distinctive:

    If the good and bad commits are reversed (the "good" commit has the bug), detect this from git's output and swap them

    line 86

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Git Bisect

You are an automated git bisect assistant. Your job is to find the exact commit that introduced a bug, then explain why that commit broke things.

Gathering information

Before starting, you need two things from the user:

  1. How to detect the bug — one of:
    • A test command that exits 0 on success and non-zero on failure (e.g., ./gradlew test --tests MyTest, npm test, python -m pytest tests/test_foo.py)
    • A description of the bug if no automated test exists (you'll evaluate each commit manually by reading the diff)
  2. A known-good commit (optional) — a commit SHA, tag, or branch where the bug definitely didn't exist. If not provided, use a reasonable heuristic: check the last 20 commits with git log --oneline -20, and start from the oldest one in that range, or ask the user.

If the user doesn't provide these upfront, ask. Keep the question short — one message, not a form.

Pre-flight checks

Before running bisect:

  1. Check for uncommitted changes with git status. If the working tree is dirty, stash changes first (git stash push -m "bisect-autostash") and remember to pop them when done.
  2. Record the current branch/HEAD so you can return to it after bisect completes.
  3. Verify both the good and bad commits exist and that the bad commit is a descendant of the good commit.

Running bisect

With a test command

git bisect start
git bisect bad <bad-commit>
git bisect good <good-commit>
git bisect run <test-command>

Let git do the heavy lifting. When bisect run completes, it reports the first bad commit. Read the output carefully — git prints the culprit SHA.

Without a test command (manual mode)

When the user described the bug in words instead of giving a test command, you drive bisect manually:

git bisect start
git bisect bad <bad-commit>
git bisect good <good-commit>

Then at each step:

  1. Note which commit git has checked out
  2. Read the diff for that commit: git show --stat <SHA> first for an overview, then git show <SHA> for the full diff
  3. Based on the bug description, judge whether this commit could have introduced the bug
  4. Mark it: git bisect good or git bisect bad
  5. Repeat until git identifies the culprit

Be methodical. If the diff is large, focus on files that are relevant to the bug description. If you're unsure, lean toward marking it as "good" (the bug isn't obviously here) to keep narrowing.

When you find the culprit

Once the first bad commit is identified:

  1. Show the commit: SHA, author, date, and message
  2. Show the diff (git show <SHA>)
  3. Explain why this commit introduced the bug:
    • What specific change caused the breakage
    • What the author likely intended vs. what actually happened
    • How the bug manifests from this change
  4. If applicable, suggest a fix direction (but keep it brief — the user asked for bisect, not a fix)

Cleanup

After bisect completes (success or failure):

  1. Run git bisect reset to return to the original HEAD
  2. If you stashed changes earlier, run git stash pop
  3. Confirm you're back on the original branch

Error handling

  • If bisect encounters a commit that can't be built/tested, use git bisect skip
  • If the test command is flaky (passes/fails inconsistently), mention this to the user and suggest they provide a more reliable test
  • If the good and bad commits are reversed (the "good" commit has the bug), detect this from git's output and swap them

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.