bug-bash
Work through a project's bug list autonomously, fixing bugs in priority order
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Work through a project's bug list autonomously, fixing bugs in priority order
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Build a lightweight single-file web application with no external dependencies
Walk through project setup improvements for efficient AI-assisted development
Set up automated cross-platform binary releases for a Go project
Generate or update project README documentation
Evaluate code quality with letter grades across multiple dimensions
Discover and import Claude Code skills into this shared repo
Basado en la clasificación ocupacional SOC
| name | bug-bash |
| description | Work through a project's bug list autonomously, fixing bugs in priority order |
| argument-hint | ["P0-P1 | --max N | --dry-run"] |
Autonomously work through a project's bug/issue list, fixing bugs in priority order. Reproduce each bug, fix it, test it, commit it, and move on — without waiting for human input.
/bug-bash # Fix all bugs, highest priority first
/bug-bash P0-P1 # Only fix P0 and P1 (or critical/high) bugs
/bug-bash --max 5 # Fix at most 5 bugs, then stop
/bug-bash --dry-run # Triage only — report what you'd fix, don't change code
Find the project's bug/issue tracker. Check these sources in order:
bugs.md, BUGS.md, TODO.md, todo.md, ISSUES.md, or similar in the repo root and docs/ directorygh issue list --state open --limit 100 to check for a GitHub-based trackerCLAUDE.md, CONTRIBUTING.md, README.md for pointers to where bugs are trackedgrep -r "TODO\|FIXME\|HACK\|BUG\|XXX" --include="*.{py,js,ts,rb,go,rs,java,pm,pl}" -l as a last resortIf no bug list is found, tell the user and stop.
Once found, read the entire bug list. Parse out:
Filter to open bugs only. Sort by priority (highest first), then by order of appearance. If the user specified a priority range or max count, apply those filters.
Before touching any code, verify the project builds and tests pass in its current state.
Makefile, package.json, Cargo.toml, pyproject.toml, build.gradle, etc. Look for the project's documented build and test commands (often in README, CONTRIBUTING, or CLAUDE.md).If there is no build system or test suite, note this and proceed with extra caution — you'll rely on interactive testing and code review.
For each bug, in priority order:
Read the bug description carefully. Identify:
Use Grep, Glob, and Read tools to find the relevant code. Understand the current implementation before changing anything.
Before writing any fix, confirm the bug exists:
If you cannot reproduce the bug or confirm it exists in the current code:
Implement the fix. Follow these principles:
Verify the fix thoroughly:
While the fix is fresh:
Create a commit for this bug fix:
Move to the next bug. Do not wait for human input between bugs. Keep going until:
--max limit is reached, ORSkip a bug and move on if any of these apply:
Always log the reason in the bug tracker entry. Never silently skip.
After all bugs are processed (or the limit is reached), produce a summary:
# Bug Bash Summary
**Date**: [date]
**Scope**: [all / P0-P1 / max 5 / etc.]
**Baseline**: [commit hash at start]
## Results
| # | Priority | Bug | Result | Commit |
|---|----------|-----|--------|--------|
| 1 | P1 | Shell injection in Git.pm | FIXED | abc1234 |
| 2 | P1 | Stale TODO.md references | FIXED | def5678 |
| 3 | P2 | Shift+Tab broken in palette | FIXED | ghi9012 |
| 4 | P2 | God object decomposition | SKIPPED | — |
| 5 | P3 | Junk files not gitignored | FIXED | jkl3456 |
**Fixed**: 4 | **Skipped**: 1 | **Regressed**: 0
## Skipped Bugs
- **P2: God object decomposition** — Too large. Fix requires architectural refactor across Editor.pm, Commands.pm, and Palette.pm. Not suitable for a bug bash.
## Decisions Made
- [Any judgment calls you made during the bash, with reasoning]
## Test Suite Status
- Baseline: 927 tests, 926 passed, 1 pre-existing failure (syntax_samples.t)
- Final: 934 tests, 933 passed, 1 pre-existing failure (syntax_samples.t)
- New tests added: 7
Push the branch if on a feature branch. Report the summary to the user.
You are working unassisted. When a decision is required:
git push.--no-verify).