---
description: Generate or update documentation
---
Generate documentation for the following code. Include:

1. **Overview** — What it does and why it exists
2. **API** — Functions/methods with parameters, return types, examples
3. **Usage** — How to use it with code examples
4. **Configuration** — Available options and defaults
5. **Error handling** — What errors can occur and how to handle them

Match the project's existing documentation style. Use JSDoc/docstrings as appropriate.

$@
