bug-hunt-orchestrator
Skill2 starsChanged 54 days agoMITView on GitHub
Hunt for bugs and fix them in one run — calls /bug-hunt on a feature (or the current branch), then /fix-bug-index on the INDEX.md that hunt produced. Each phase runs in its own sub-agent. Does not commit. Use when the user says "/bug-hunt-orchestrator", "hunt and fix bugs in X", "find and fix the bugs on this branch", or wants /bug-hunt followed by /fix-bug-index without running them by hand.
In this repository88 other files it gives its agents.
- acceptance-criteriaSkill
- android-emulatorSkill
- architect-guideSkill
- architect-reviewSkill
- audit-fixerSkill
- avo-admin-expertSkill
- backend-services-expertSkill
- bug-hunt-allSkill
- bug-hunt-fixSkill
- bug-huntSkill
- build-feature-remoteSkill
- build-featureSkill
- codeSkill
- component-testSkill
- controller-expertSkill
- create-qa-documentSkill
- debugSkill
- devops-expertSkill
- execute-qaSkill
- feature-qaSkill
- fix-bug-indexSkill
- fix-honeybadgerSkill
- fix-spec-bugsSkill
- fix-system-testSkill
- frontend-expertSkill
- frontend-reviewSkill
- full-qa-fixSkill
- full-qaSkill
- full-reviewSkill
- green-ciSkill
- group-issuesSkill
- honeybadger-auditSkill
- ideateSkill
- impact-assessmentSkill
- improveSkill
- ios-simulatorSkill
- issue-readySkill
- issues-readySkill
- merge-mainSkill
- model-expertSkill
- model-testSkill
- native-bug-hunt-fixSkill
- native-bug-huntSkill
- next-issuesSkill
- page-speedSkill
- plan-questionsSkill
- planSkill
- plan-system-testsSkill
- plan-workSkill
- policy-testSkill
- prdSkill
- prd-worktreeSkill
- product-questionSkill
- product-question-tldrSkill
- project-newSkill
- project-stepSkill
- qa-branchSkill
- qa-testerSkill
- rcm-auditSkill
- rcm-resolveSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
If the sub-agent errors out before FIX_SUMMARY.md exists, retry once.
- Distinctive: line 66
Never commit, stage, stash, reset or push.
- Distinctive: line 67
Don't pause between phases or ask "should I continue?" — the user chose a straight run.
- Very specific: line 68
Don't re-do the children's work: no browser calls, no code edits, no rewriting INDEX.md.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bug Hunt Orchestrator
Chain /bug-hunt → /fix-bug-index in one invocation. You are only the orchestrator: you never drive the browser and never edit app code yourself. Each phase runs in a sub-agent so Playwright snapshots and code reads stay out of your context.
Argument
$ARGUMENTS
- Feature description → hunt that feature (
/bug-huntMode A). - Empty → hunt the current branch's changes (
/bug-huntMode B). - Path to an existing
docs/bug-reports/...dir (hasINDEX.md, noFIX_SUMMARY.md) → skip Phase 1 and go straight to Phase 2. This is how a re-run resumes after the hunt already finished.
Step 1: Set up the session
BASE_URL="$(bin/dev-url)"
STAMP="$(date +%Y%m%d-%H%M%S)"Build a kebab-case slug from the feature text (≤ 5 words), or from git branch --show-current when the argument is empty. Then:
SESSION_DIR= absolute path ofdocs/bug-reports/<slug>-<STAMP>INDEX=$SESSION_DIR/INDEX.md
You choose the directory and hand it to /bug-hunt through its Output dir: override, so you always know where the index is without parsing the child's output. Base URL: makes both phases hit the same server (this checkout may be a worktree on its own port).
Step 2: Phase 1 — hunt
Spawn one general-purpose sub-agent and wait for it:
Invoke the
bug-huntskill with the Skill tool, passing exactly these args:<feature description, or nothing if empty> Base URL: <BASE_URL> Output dir: <SESSION_DIR>Find and document bugs only — do not fix anything, do not commit. When the skill is done, reply with the INDEX.md path and the bug count per severity.
Step 3: Gate
INDEXmissing → re-run Phase 1 once. Still missing → stop and tell the user what the sub-agent reported.- The hunt found nothing (index lists no BUG-/OBS- items, or the branch diff was empty) → print "No bugs found" with the index path and stop. There is nothing to fix.
- Otherwise continue in the same response. Getting control back from the hunt is not the end of the task — the fixes are the point.
Step 4: Phase 2 — fix
Spawn one general-purpose sub-agent and wait for it:
Invoke the
fix-bug-indexskill with the Skill tool, passing the args<absolute INDEX path>. Process every non-skipped item to completion. Do not stage, commit, stash, reset or push. When the skill is done, reply with itsFixed | Attempted | Failed | Skippedline and the FIX_SUMMARY.md path.
If the sub-agent errors out before FIX_SUMMARY.md exists, retry once. /fix-bug-index has no resume logic of its own, so tell the retry to treat any bug file that already has a "Fix Applied" section as done and only fix the rest.
Step 5: Recap
Print at most three lines:
- Bugs found by severity (from
INDEX.md). Fixed: X | Attempted: Y | Failed: Z | Skipped: W(fromFIX_SUMMARY.md).- Paths to
INDEX.mdandFIX_SUMMARY.md, and a reminder that nothing is committed — review withgit status/git diff.
Rules
- Never commit, stage, stash, reset or push. The user reviews the dirty tree.
- Don't pause between phases or ask "should I continue?" — the user chose a straight run.
- Don't re-do the children's work: no browser calls, no code edits, no rewriting
INDEX.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

