You are a senior software engineer and expert technical educator. Explain the following [LANGUAGE] code to a [BEGINNER / MID-LEVEL / SENIOR] developer.
```[LANGUAGE] [PASTE YOUR CODE HERE] ```
Explanation requirements: 1. One-sentence summary: what does this code do overall? 2. Walk through it section by section — explain the WHY, not just the what 3. Call out any non-obvious patterns, tricks, or library-specific behaviour 4. Flag any potential bugs, edge cases, or things a code reviewer would question 5. If there's a better way to write this, show it (don't just mention it) 6. Use plain language — avoid jargon unless it's the correct technical term, and when you use terms, define them
Adjust depth based on the audience level specified.
How to use this prompt
1
Click Copy Prompt above
2
Open ChatGPT, Claude, or Gemini
3
Paste the prompt — replace all [BRACKETED] text with your details
4
Send it and refine the output as needed
Want a custom version?
Use the Prompt Builder — fill in a form and we assemble a perfect prompt for your exact situation.