Skip to content
Back to skills

Bisect

ASecurity

Pinpoint the first bad commit for a reproducible regression in a safe temporary worktree. Use when HEAD is bad, a known revision is good, and one unattended command distinguishes them; handles flaky endpoints and git-bisect skip exit 125.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsgobashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add ohm41321/luciazero --skill bisect --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bisect?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bisect
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ohm41321-bisect/badge)](https://www.skillsdirectory.com/skills/ohm41321-bisect)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bisect
description: Pinpoint the first bad commit for a reproducible regression in a safe temporary worktree. Use when HEAD is bad, a known revision is good, and one unattended command distinguishes them; handles flaky endpoints and git-bisect skip exit 125.
---

# Bisect

## 1. Freeze the criterion

Confirm the bad endpoint fails and name a good commit or tag. One unattended
command decides: exit `0` means good, `1–124` means bad, and `125` means
untestable. A missing executable is an infrastructure error.

## 2. Run in a throwaway worktree

```bash
<this-skill-dir>/scripts/safe-bisect.sh --good <good-rev> --bad <bad-rev> -- <verify-command> [args...]
```

The helper repeats each endpoint twice, uses a detached temporary worktree,
cleans state, resets bisect, and removes the worktree on every exit path. Use
`--retries N` only for endpoint samples. Make the reproduction deterministic
first through `/debug`.

## 3. Interpret narrowly

Report the first bad commit, not automatically the root cause. Read its diff and
relevant callers; feed `/debug`, keep the regression test, and run the full
verification tier after fixing.

Files in this skill

  • SKILL.md1.1 KB
  • scripts/safe-bisect.sh4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…