ALWAYS use when documenting component library APIs or generating reference docs for Components/ modules. Generates API documentation exclusively from Components/ header files by parsing types, constants, and function declarations. ALWAYS use when user mentions: API 문서, API doc, 헤더 문서화, header documentation, 컴포넌트 문서, component doc, 함수 목록, function list, 인터페이스 문서, interface reference, Components 문서화. Do NOT use for application-level Sources/ documentation, data flow explanation (use plan-dataflow), or code review (use check-code-review).
Generate API documentation by parsing component header files, extracting public interfaces, and presenting them in a structured format.
<component|all>: Component name (e.g., uart, flash) or all to document all components--output=<path>: Write output to file (default: stdout)--format=md|stdout: Output format (default: stdout)Locate component:
Components/<component>/<component>.hall: read CMakeLists.txt for included components listParse header file: Extract from each .h file:
typedef struct, typedef enum, aliases#defineGenerate documentation:
# uart
> UART serial communication driver
**Header**: `Components/uart/uart.h`
**Source**: `Components/uart/uart.c`
## Types
### `uart_config_t`
...
## Constants
| Name | Value | Description |
|------|-------|-------------|
| `UART_RX_BUFFER_SIZE` | `256` | Receive ring buffer size |
## Functions
### `uart_init`
...
Cross-reference: Note which functions are called from ISR context and mark them as ISR-safe.