# Find Best Bug

> Review plans in .agent/potential-bugs, pick the one that most improves reliability, copy it to .agent/execplan-pending.md, and return the selected file path.

- Skill: `grp06/find-best-bug` (Agent Skill)
- Install (CLI): `npx skillmds@latest add grp06/find-best-bug`
- Raw SKILL.md: https://api.skillmd.com/api/skills/grp06/find-best-bug/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: grp06 (https://skillmd.com/u/grp06)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/grp06/find-best-bug

---


# Find Best Bug Plan

Select exactly one existing potential-bug ExecPlan to implement next.

## Mindset

Choose the plan with the highest real reliability impact, not the most interesting write-up.

## Workflow

1. Resolve the base repo path.
   - If current path contains `/.codex/worktrees/`, use `~/<repo-name>` as base repo.
   - Otherwise, use the current working directory.
2. Collect candidates from:
   - `.agent/potential-bugs/*.md` in the current repo
   - `.agent/potential-bugs/*.md` in the base repo
   - Prefer worktree copies when both locations contain the same filename.
3. If no candidates exist, fail fast and tell the user to run `$find-bug` first.
4. Read every candidate plan and score each with this rubric:

| Criteria | Weight |
|----------|--------|
| Severity if unfixed | 30% |
| Likelihood in normal usage | 25% |
| Blast radius across flows | 20% |
| Detectability (silent issues score higher) | 15% |
| Fix leverage (high impact for low complexity) | 10% |

5. Pick the highest-scoring plan. If tied, prefer the plan with clearer regression-test steps.
6. Copy the selected plan to `.agent/execplan-pending.md` in the current repo.
   - Create `.agent/` if missing.
7. Report:
   - Selected source file path
   - Destination path
   - Short reason for selection
   - One-line note on runner-up plans

## Anti-Patterns

- Skimming only filenames without reading plan content
- Picking multiple plans instead of one
- Returning a choice without a rationale

