gograph_diagram
Generate a Mermaid architecture diagram of package dependencies to visualize code structure for onboarding and architecture review.
Instructions
Refresh source analysis and generate a Mermaid architecture diagram of the package dependency graph. Read-only; no side effects. WHEN TO USE: Onboarding, architecture review, or communicating package structure. Use group_by=module for monorepos and group_by=file for drill-downs. NOT TO USE: For call-graph traversal or single-package focus. RETURNS: Mermaid text; use max_depth or coarser grouping for large graphs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_by | No | Grouping level: 'package' (default), 'module', 'service', or 'file' | |
| max_depth | No | Maximum BFS depth from graph roots (0 = unlimited) | |
| include_stdlib | No | If true, include Go standard library packages in the diagram |