Guide · 17 prompts

Best Claude prompts for code review and debugging

Every prompt below is tagged as working in Claude. Open any prompt for the full text, fill-in blanks and step-by-step instructions.

This guide is presented by your brandSponsored · open
  1. 1 · Coding · attach screenshot or file Find and fix a bug from an error message
    Paste the error and get the root cause, not a guess.
  2. 2 · Coding · attach file Write tests for a file
    Adds meaningful unit tests that cover edge cases, not just the happy path.
  3. 3 · Coding · attach file Review my pull request like a senior engineer
    A thorough, prioritized code review of a diff.
  4. 4 · Coding · attach file Debug why my app is slow
    Find the real bottleneck before optimizing.
  5. 5 · Coding Debug a failing test suite
    Get the suite green without hiding real bugs.
  6. 6 · Coding Add logging and error tracking
    See what's happening in production.
  7. 7 · Coding · attach screenshot Turn a screenshot of an error into a fix
    Screenshot your error dialog or console and get the fix.
  8. 8 · Coding · attach screenshot Turn a screenshot of an error dialog into a fix
    Snap the error on screen and get the likely cause and exact steps to fix it.
  9. 9 · Coding · attach file Write unit tests for my code
    Tests that cover real edge cases.
  10. 10 · Coding Explain an error message and fix it
    From stack trace to fix.
  11. 11 · Coding Software QA tester
    Tests an app's functionality and performance against its requirements and writes clear bug reports.
  12. 12 · Coding Code review with improvement suggestions
    Reviews a code block or file for bugs, readability and performance and explains each suggestion.
  13. 13 · Coding Thorough code review assistant
    A structured code review: bugs, security issues, performance, style and a summary of what to fix first.
  14. 14 · Coding Fix a bug test-first
    A strict protocol for coding agents: reproduce the bug with failing tests, fix it, then prove the fix.
  15. 15 · Coding Debugging detective
    A senior engineer's method for finding the root cause of a bug instead of just patching symptoms.
  16. 16 · Coding Review an API change for breaking changes
    Reviews an API or OpenAPI diff for breaking changes and drafts a migration checklist.
  17. 17 · Coding Senior code review ranked by severity
    A meticulous code review with findings sorted from critical to minor.

Related guides

Best Claude prompts for resumesBest Claude prompts for codingBest Claude prompts for essays and writingBest Claude prompts for customer supportBest Claude prompts for salesBest Claude prompts for health and wellness
Footer partner · openThis strip runs at the foot of every page. One partner at a time.Ask about it →