---
description: Explain how a piece of code works end-to-end
argument-hint: [file-path-or-function-name]
---

Explain how `$1` works:

1. Find and read the relevant source code
2. Trace the execution flow from entry point to completion
3. Document:
   - What it does (purpose)
   - How it works (step by step)
   - What calls it (callers)
   - What it calls (dependencies)
   - Edge cases and error handling
4. Keep the explanation concise — focus on the non-obvious parts
