AGENT
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing status codes, pagination,…
When reasoning stalls, *search*. Halving the problem space repeatedly finds the culprit in log₂(N) steps instead of N. Bisection applies to three spaces: **history** (which commit), **code** (which statement), and **input** (which data).
$ npx -y skills add vanara-agents/skills --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
When reasoning stalls, *search*. Halving the problem space repeatedly finds the culprit in log₂(N) steps instead of N. Bisection applies to three spaces: **history** (which commit), **code** (which statement), and **input** (which data).
When reasoning stalls, *search*. Halving the problem space repeatedly finds the culprit in log₂(N) steps instead of N. Bisection applies to three spaces: **history** (which commit), **code** (which statement), and **input** (which data).
When a bug appeared "sometime in the last 200 commits," let git binary-search them. Mark a known-bad and known-good revision; git checks out the midpoint and you tell it good or bad until it names the culprit.
git bisect start git bisect bad # current HEAD is broken git bisect good v1.4.0 # this old tag worked # git checks out the midpoint; test it, then: git bisect good # ...or: git bisect bad # repeat until git prints "<sha> is the first bad commit" git bisect reset # return to where you started
Automate it when you have a script that exits 0 (good) / non-zero (bad):
git bisect start HEAD v1.4.0 git bisect run npm test -- --testPathPattern=checkout
`git bisect run` will drive the entire search unattended and print the first bad commit. Keep the test fast and deterministic, or the search inherits its flakiness.
Within a single bad function, find *where* the state goes wrong by checking the midpoint. Print or assert the suspect value halfway through; if it's already wrong, the bug is in the first half — otherwise the second. Repeat on the bad half.
function process(x) {
step A // assert(valid) here -> OK? search lower half
step B
step C // <-- midpoint probe: value already corrupt? bug is A/B
step D
step E // assert(valid) here -> still OK? bug is D/E
}A "wolf-fence" probe (a single well-placed log of the suspect value) beats scattering ten prints.
A 100k-row file that crashes the parser? Don't read 100k rows. Feed the first half — still crashes? The offending row is in that half. Halve again. ~17 iterations isolate one row out of 100k. The same works for narrowing a failing config to one key, or a failing request to one field.
Stabilize the repro first.
"this 400-line commit did it."
🐒 Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code — free, Apache-2.0, install with one command.
Repo: vanara-agents/skills
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing status codes, pagination,…
This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the contract-breakers first. Severity…
The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This reference covers how to…
Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting rules last. Every box is a…
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add without breaking**, and version…
Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.