Install
$ agentstack add skill-pradnyeshp-claude-skills-bisect ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Repo state
!git log --oneline -15 2>/dev/null || echo "Not a git repository"
!git tag --sort=-creatordate 2>/dev/null | head -10
!git status --short 2>/dev/null
Instructions
Locate the commit that introduced the regression described in $ARGUMENTS using git bisect. If the symptom or a way to reproduce it isn't clear, ask before touching the repo.
Before starting
- Confirm the working tree is clean. If there are uncommitted changes, stop and tell the user to stash or commit first — bisect checks out old commits and would clobber or be blocked by them.
- Establish a "bad" and a "good" ref. "Bad" is usually
HEAD. For "good", use the ref the user named, or help find a plausible older commit/tag where the behavior worked. Verify the assumption if cheap (e.g. note when the relevant code was last touched). - Define a precise pass/fail test. A single command that exits 0 when good and non-zero when bad is ideal (a failing test, a build, a script, a grep on output). Pin this down — a fuzzy "it looks broken" makes bisect unreliable.
Running the bisect
- Start:
git bisect start, thengit bisect badandgit bisect good. - Prefer
git bisect runwhen a deterministic test command exists — it automates the whole search. Make sure the command's exit code reflects pass/fail (use exit code125to skip un-testable commits, e.g. ones that don't build for unrelated reasons). - If the test must be manual, check out each step, have the user test, and relay
git bisect good/git bisect badper step. - When bisect names the first bad commit,
git bisect resetto restore the originalHEAD— always clean up, even if interrupted.
After finding it
- Show the offending commit:
git show --stat, then read the actual diff to explain why it caused the regression. - Summarize: the first bad commit, what it changed, the likely mechanism of the break, and a suggested fix or revert (
git revertfor a clean undo). - If the cause is subtle, hand off to the
debugskill to drive the fix.
Rules
- Never run bisect with a dirty working tree. Always
git bisect resetwhen done or on any error. - Keep the pass/fail test deterministic and fast — flaky tests give wrong answers. Use
git bisect skipfor commits that genuinely can't be tested. - Don't modify code during the bisect; this is diagnosis. Propose the fix separately once the commit is found.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Pradnyeshp
- Source: Pradnyeshp/Claude-Skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.