Prompt pattern · Build
Explain this code
The template
Explain what the code below does, for someone who {your level, e.g. knows a little Python}. Start with a one-sentence summary, then walk through it section by section. Point out anything risky or confusing. {paste the code}
Fill in the {blanks} with your own words, then send it.
Before and after
What does this do?
Explain what the script below does, for someone who knows a little JavaScript. Start with a one-sentence summary, then walk through it section by section. Point out anything risky or confusing. (the script, pasted)
Works best for
Inherited projects, copied snippets, and anything you're about to run on your own computer.