ワンクリックで
autonomous-bug-fix
Reproduces, diagnoses, fixes, and verifies bugs unaided.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Reproduces, diagnoses, fixes, and verifies bugs unaided.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Flags risky shell commands and unsafe tree ops.
Detects high-confidence security risks in code.
Surfaces the dojo's non-negotiable prime directives.
Activates the dojo framework at the start of a session.
Plans multi-step work before writing code.
Captures lessons and promotes recurring patterns.
| name | autonomous-bug-fix |
| description | Reproduces, diagnoses, fixes, and verifies bugs unaided. |
| tier | core |
| category | discipline |
| created_by | human |
| platforms | ["windows","macos","linux"] |
| tags | ["debugging","autonomy","root-cause"] |
| author | Andreas Wasita (@andreaswasita) |
Walks the agent through the full reproduce → diagnose → fix → verify cycle on its own, without asking the user for navigation help, log-reading instructions, or test commands. Does NOT cover net-new feature work — for that use plan-before-code and executing-plans.
glob / grep to locate it).powershell tool to run tests, git, and reproduction commands.using-git-worktrees if needed).verify-before-done skill loaded — you'll invoke it at the end.1. Reproduce → locate the code, run the failing path, confirm with evidence.
2. Diagnose → trace from symptom to root cause; check recent changes.
3. Fix → minimal change at the root cause + a regression test.
4. Verify → re-run reproduction + full suite via `verify-before-done`.
| Phase | Action | Tool |
|---|---|---|
| Find code | Search by symbol or file pattern | grep, glob |
| Read code | Inspect the failing path | view |
| Reproduce | Run failing command/test | powershell |
| Diagnose | Recent changes / blame | powershell → git log -20 --oneline, git blame <path> |
| Edit | Minimal, root-cause fix | edit |
| Add test | Regression test | create or edit under tests/ |
| Verify | Re-run reproduction + full suite | powershell, then verify-before-done |
Find the relevant code yourself — grep for the symbol, glob for the path. Do not ask the user "which file is this in?"
Run the failing path via the powershell tool. If no failing test exists, write a minimal one that captures the bug. Confirm reproduction with concrete evidence (stack trace, exit code, log line).
If you can't reproduce:
Read the error message and stack trace before doing anything else — they exist for a reason. Trace from the user-visible symptom back to the root cause:
# via the `powershell` tool
git log -20 --oneline
git blame path/to/suspect.ts
git diff HEAD~5 -- path/to/suspect.ts
Stop at the root cause, not the first thing that looks suspicious. "Why did this break?" — not "what broke?"
Edit with precision via the edit tool:
grep for the pattern). If yes, fix those too or log them in tasks/lessons.md for follow-up.Hand off to the verify-before-done skill:
tasks/todo.md under the task.If verification fails after your fix:
git checkout -- . or git stash via powershell).tasks/lessons.md with the root-cause analysis you had.plan-before-code.grep/glob/view/powershell to discover it.tasks/lessons.md.tasks/todo.md).main and passes on the branch.verify-before-done checklist passed.