Claude Code prompt for fixing a bug in an existing repository
An editorial example for fixing a bug in an existing repository in Claude Code, written for our guide and not tested against the vendor
For
Claude Code
Source
AI Tool Atlas guide: Claude Code
Checked
Oct 2, 2026
The prompt
Editorial example from our guide
Users are charged twice when they double-click the Pay button in checkout. Find the cause, fix it so one checkout session uses one idempotency key, disable the button while a charge is in flight, and add a test. Run the tests and tell me which files you changed.
How to use this prompt: what to fill in, where to run it, what comes back
How to check the result
Run the project's test suite yourself and confirm it passes.
Read the full diff before committing.
This prompt was written as an example for our guide and has not been run against the tool. Expect to adapt it to your case. How we document tools.