rust-call-graph

Installation
Summary

Visualize Rust function call graphs with configurable depth and direction using LSP.

  • Supports three query directions: incoming calls (who calls this), outgoing calls (what this calls), and bidirectional analysis
  • Configurable traversal depth (default 3 levels) to control graph scope and complexity
  • Generates ASCII tree visualizations with entry points, leaf functions, and hot path analysis
  • Includes complexity insights and potential issues flagging (high fan-out, multiple callers)
SKILL.md

Rust Call Graph

Visualize function call relationships using LSP call hierarchy.

Usage

/rust-call-graph <function_name> [--depth N] [--direction in|out|both]

Options:

  • --depth N: How many levels to traverse (default: 3)
  • --direction: in (callers), out (callees), both

Examples:

  • /rust-call-graph process_request - Show both callers and callees
  • /rust-call-graph handle_error --direction in - Show only callers
  • /rust-call-graph main --direction out --depth 5 - Deep callee analysis
Related skills

More from zhanghandong/rust-skills

Installs
619
GitHub Stars
1.1K
First Seen
Jan 22, 2026