gograph_diagram
Generate a Mermaid architecture diagram showing package dependencies in a Go repository. Use group_by for monorepos or deep drill-downs. Ideal for onboarding and architecture review.
Instructions
Generate a Mermaid architecture diagram of the repository package dependency graph. Requires .gograph/graph.json. Read-only; no side effects. WHEN TO USE: Onboarding to an unfamiliar repository, architecture review, or communicating package structure. Use group_by=module for monorepos, group_by=file for deep drill-downs. NOT TO USE: For call-graph traversal (use gograph_callers/gograph_impact); for single-package focus (use gograph_focus or gograph_deps). RETURNS: Mermaid diagram text. Note: diagrams with >30 nodes may be hard to read; use max_depth=2 or a coarser group_by level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_by | No | Grouping level: 'package' (default), 'module', 'service', or 'file' | |
| include_stdlib | No | If true, include Go standard library packages in the diagram | |
| max_depth | No | Maximum BFS depth from graph roots (0 = unlimited) |