Coding
Understand unfamiliar code fast
Explains what code does and why it's structured that way, flagging what looks risky.
Prompt
Explain this code:
```
{{code}}
```
In this order:
1. What it does, in two sentences, no jargon
2. The flow — step by step, in plain language
3. Any non-obvious decision and why it might have been made that way
4. Edge cases it does NOT handle
5. Anything that looks like a bug or a risk
If you're unsure about something, say "unclear" rather than guessing.Fill these in
Replace each highlighted variable before sending. Leaving them in place is the most common reason these prompts under-perform.
| Variable | What to put | Example |
|---|---|---|
{{code}} | The code to explain | Paste a function or file |
Tips for better output
- Point 4 is where the value is — it tells you what will break in production.
- Paste the whole file, not a fragment. Context changes the answer.