fix-bug

Installation
SKILL.md

Guide for diagnosing and fixing bugs. This skill defines a test-first debugging workflow: reproduce the bug with a failing test, diagnose the root cause, then fix it.

Task Type Check

If the user's request is to implement a new feature, change a specification, or refactor rather than investigate or fix a bug, stop and guide the user to invoke the /implement skill instead.

Input

Take the bug report from the incident argument: the report written directly, the name of a failing test, or the URLs of issues in an issue tracker, in any combination. For an issue URL, fetch its body and comments (e.g., gh issue view <URL> --comments for GitHub Issues): the comments often correct the body. Combine the argument with the bug report in the conversation, if any; when the argument is omitted, take it from the conversation alone.

Workflow

Recording implementation notes: Notes for this run go in <scratchpad>/implementation-notes, where <scratchpad> is the scratchpad directory listed in your system prompt (write its absolute path literally): one note per line, in the form <category>: <note>. Immediately before your first append in this run — and only then — delete that file if it exists (usually it will not), so this run starts from an empty one: every /fix-bug and /implement run in the session shares this file, so an earlier run abandoned before its Implementation Notes step would otherwise leak its notes into this one. Never delete it again afterwards, including when Step 3 sends you back to Step 1 or Step 2; those loops are part of the same run and their notes must survive.

Installs
8
GitHub Stars
20
First Seen
Jul 24, 2026