Skip to content
Back to skills

Regression Bisecting

ASecurity

Use when a bug was recently introduced but you don't know which commit caused it.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 29, 2026
ai-agentsgonodegit

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill regression-bisecting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Regression Bisecting?

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

Security grade badge for Regression Bisecting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-regression-bisecting/badge)](https://www.skillsdirectory.com/skills/yeaight7-regression-bisecting)

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: regression-bisecting
description: "Use when a bug was recently introduced but you don't know which commit caused it."
---

# Regression Bisecting

When a feature used to work but is now broken, do not guess what broke it. Use binary search through git history to find the exact commit.

## Protocol

1. **Define the Test**: You must have a single command that returns exit code `0` if good, and non-zero if bad. (e.g., `npm run test:repro` or `node repro.js`).
2. **Find a Known Good State**: Ask the user or search git history for a commit where you are certain the feature worked.
3. **Find the Known Bad State**: Typically `HEAD`.
4. **Bisect**: 
   - (For human workflows, guide them to use `git bisect start <bad> <good>`).
   - For agent workflows, manually check out the midpoint commit, run the test, and narrow the window.
5. **Analyze the Offending Commit**: Once the exact commit is found, use `git show <commit>` to analyze the diff. The root cause is contained entirely within that diff.

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…