The prompt
Explain the code below to a mid-level developer. First: 2-sentence high-level summary. Then: annotated line-by-line explanation. Then: a list of possible bugs, edge cases, and how you'd test it. ``` [PASTE CODE] ```
Paste it into ChatGPT, Claude, Gemini or Midjourney and replace anything in [SQUARE BRACKETS] with your own details.
Related prompts
More Coding & Dev prompts from the library.
- Coding & DevRefactor messy code with reasoningCleaner version with a diff-style rationale.
- Coding & DevDebug an error like a senior engineerRoot cause, fix, and prevention — not just a patch.
- Coding & DevBuild & explain a regex from plain EnglishWith test cases you can paste into a regex tester.
- Coding & DevSQL query from plain EnglishIncludes schema questions and explains the plan.