How bug-fix prompts work
This page is for engineering teams. A pull request is a proposed code change opened for review; Claude opens them under its own GitHub identity, so they appear in your review queue like any other pull request. Each prompt below is a Slack message. You paste it in the channel or thread where the bug lives, Claude works on it in an isolated workspace Anthropic hosts and posts progress in that thread, and the result lands there too. What the result is depends on the prompt, and each one below says what it returns, like a draft pull request, a root-cause writeup, or a standing watch that triages new reports as they arrive. Anything it opens on GitHub is authored by the Claude GitHub App.Check the channel’s connections
Check that the channel has the connections below. Ask@Claude what can you access from this channel? to check; an admin can add a connection the channel is missing.
| Connection | Examples | Why it matters here |
|---|---|---|
| Code | GitHub | Required. Reads the repo and opens draft pull requests |
Prompts to paste
Fix a reported bug
A bug report arrives with reproduction steps and nobody free to take it. This gets you a draft pull request with the fix, linked back to the thread. Name the repository in the prompt so it’s cloned before work starts.Watch a bug channel
Reports arrive faster than the team triages them. The standing form watches the channel and opens drafts for anything reproducible.Diagnose a failure without a fix
Not every failure needs a pull request. Ask for the diagnosis alone, and the decision about what to do with it stays with the team.See a pull request through CI
Once a pull request exists, one Claude opened or one a person did, Claude can watch it instead of you refreshing the page. It subscribes to that pull request and posts when CI status changes.Related resources
Watch monitors and alerts
Catching the problem before the bug report
Good habits
Definitions of done for code tasks