Coding Editorial example

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: fill the variables, run it in Claude Code, check the resultYOU FILL INReady to runPaste the prompt as isNo variables to replaceTHE PROMPTClaude Code48 words · 1 linesource: editorial exampleYOU GETThe resultAn editorial example for fixing a…check the result against the tipscopy, paste, run in Claude Codefill → run → check · prompts are copied word for word from their source
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.

Where to run it

More coding prompts