| name | bug-harvest |
| description | Search for one unknown evidence-backed bug, then hand the reproduced defect to diagnosis. Use for bug hunts or unexplained failing validation; not an already-reported defect with a known repro. |
Bug Harvest
Use this as a thin, discoverable wrapper around diagnose and tdd. The job is not to scan forever; it is to find one high-confidence bug candidate, build a feedback loop, fix it, and validate it.
Quick start
- Inspect
git status --short --branch, repo instructions, manifests, tests, and recent validation output.
- Harvest candidates only from evidence:
- failing tests, lint, typecheck, build, or package validation;
- issue/task docs or TODOs tied to executable behavior;
- reproducible commands, logs, traces, fixtures, or bug reports already in scope;
- stale paths/scripts where the intended current artifact is obvious.
- Pick one candidate with the clearest repro and smallest blast radius.
- Switch to
diagnose for the repro/fix loop.
- Switch to
tdd only when the fix needs a new regression test or missing seam.
Candidate filter
Accept a candidate only when you can state:
Bug candidate:
- symptom:
- evidence:
- repro command or artifact:
- expected signal after fix:
- likely files:
Reject code-smell-only candidates. If no candidate has a runnable or constructible feedback signal, stop and report what evidence is missing.
Fix loop
- Run or create the smallest repro.
- Confirm it reflects the candidate symptom, not a different nearby failure.
- Form 3–5 hypotheses if the cause is not obvious.
- Make the smallest safe fix.
- Add or update a focused regression check when there is a correct seam.
- Rerun the repro, then relevant repo validation.
- If the user asked to ship, hand off to
git-commit-push with validation receipts.
Red lines
- Do not invent bugs from vague code smells.
- Do not edit broad architecture while fixing one bug; hand architecture blockers to
technical-auditor.
- Do not require external services, secrets, production data, or dependency upgrades without explicit approval.
- Do not hide behavior changes inside a “bug fix”; name them and verify them.
Output contract
Bug harvest:
- candidate:
- repro:
- fix:
- regression/validation:
- handoff or next candidate:
Shared contract
Follow the shared skill contract for repo study, dirty-worktree hygiene, verification evidence, safe handoffs, and safety defaults.