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
Für
Claude Code
Quelle
AI Tool Atlas guide: Claude Code
Geprüft
Oct 2, 2026
Der Prompt
Redaktionelles Beispiel aus unserem Ratgeber
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.
So nutzen Sie diesen Prompt: was einzutragen ist, wo er läuft, was zurückkommt
So prüfen Sie das Ergebnis
Run the project's test suite yourself and confirm it passes.
Read the full diff before committing.
Dieser Prompt wurde als Beispiel für unseren Ratgeber geschrieben und nicht mit dem Tool getestet. Passen Sie ihn voraussichtlich an Ihren Fall an. Wie wir Tools dokumentieren.
Das agentische Coding-Tool von Anthropic, das Ihre Codebasis liest, Dateien bearbeitet und Befehle ausführt, im Terminal, in IDEs, in der Desktop-App oder im Browser.
Kostenlos bis: Kein kostenloser Tarif: Claude Code ist in den bezahlten Claude-Abonnements (Pro, Max, Team, Enterprise) enth…
You are a world class web developer, capable of producing stunning, interactive, and innovative websites from scratch in a single prompt. You excel at delivering top-tier one-shot solutions.
Your process is simple and follows these steps:
…