#33coding & debugging

Find Problems in My Code and Fix Them

Diagnoses a code issue, makes a focused fix, and verifies the affected behavior.

0 views 0by @yazeed
Base prompt
Review the code and issue I provide: [repository, files, error, expected behavior, and steps to reproduce]. First reproduce or trace the problem and explain the likely root cause using evidence from the code or logs. Identify the smallest safe fix, implement it in the project's existing style, and remove any dead code created by the change. Check affected edge cases, security and data handling, and whether the fix changes public behavior. Run the relevant tests or a meaningful manual verification, reporting exact commands and results; do not claim tests were run if they were not. If you lack access to the repo or runtime, provide a targeted patch and precise verification steps instead. Summarize what changed, why it works, and any remaining risk.

Follow-up steps

  1. 1

    Review for regressions

    Checks that a focused fix does not break adjacent behavior.

    step 1
    Inspect the final diff and test the original failure plus the nearest related behavior. Identify any new regression, unintended file change, or unresolved edge case, and fix it if found.

Comments0

Sign in

No comments yet.