| name | rpcatlas |
| description | Use when analyzing Go RPC/API handlers, explaining request flows, preparing code review context, or generating AI-readable RPC flow summaries with the rpcatlas CLI. |
rpcatlas
Use rpcatlas before manually reading every file in a Go RPC/API codebase.
Workflow
- Check whether
rpcatlas is available:
rpcatlas --help
- If it is not installed, suggest:
go install github.com/usuginus/go-rpcatlas/cmd/rpcatlas@latest
- List RPC/API entry points:
rpcatlas ./... --list
- Generate a Markdown flow summary:
rpcatlas ./... --rpc <RPCName> --depth 5 --format markdown
- Use the summary as the first-pass map.
- Verify important behavior by reading the source code.
Use Cases
- Explain what a Go RPC/API handler does.
- Review a PR that changes a request flow.
- Find downstream usecases, repositories, external clients, branches, dispatches, interface calls, and function-value calls.
- Prepare compact context for AI-assisted code review.
Output Guidance
- Use Markdown for human review, PR comments, and AI prompts.
- Use JSON for automation.
- Prefer
--depth 5 for a useful first pass.
- Use
.rpcatlas.yaml when project-specific layer names or noise filters are needed.
Safety
rpcatlas is a static analysis helper. Do not treat its output as complete proof of runtime behavior.
Always verify critical paths, dynamic dispatch, configuration-dependent behavior, and side effects by reading the source code.