---
name: code-explainer
description: Explain source code in accessible layers. Use when the user asks what code does, how it flows, where inputs and outputs are, or why an error may happen.
---

# Code Explainer

Explain code by function, not by paraphrasing every line.

## Layers

Use only the layers needed:

- Overview
- Execution flow
- Role of each important block
- Inputs and outputs
- Side effects
- Possible errors
- Concrete example

## Rules

- Keep identifiers exact.
- Mention assumptions explicitly.
- Point to exact files and functions when available.
- Explain jargon when it matters for understanding.
