rust-call-graph

Visualizes Rust function call relationships using LSP-derived hierarchies and configurable depth/direction options.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/yumazak/kodo --skill rust-call-graph-yumazak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-call-graph
Source: https://github.com/yumazak/kodo/tree/main/.agents/skills/rust-call-graph
Command: npx skills add https://github.com/yumazak/kodo --skill rust-call-graph-yumazak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Visualize Rust function call relationships using LSP to help developers understand how functions interact.

Core Features & Use Cases

  • Visualize incoming call relationships (callers) and outgoing call relationships (callees) using LSP
  • Depth-limited traversal to explore call graphs up to N levels
  • Directional views: in, out, or both, with ASCII-style visualization

Quick Start

Run /rust-call-graph <function_name> --depth 3 --direction both to visualize its call graph.

Frequently Asked Questions about rust-call-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize a Rust call graph to understand function interactions?

You can visualize a Rust call graph by running the /rust-call-graph command on a function name, which uses LSP to trace and display incoming and outgoing function relationships in an ASCII-style view.

What is the best way to trace callers and callees across deep Rust call chains?

Tracing callers and callees across deep Rust call chains is best handled by using the depth option to limit traversal to N levels, allowing you to explore incoming and outgoing calls without overwhelming the visualization.

Does this Rust call graph visualization work with LSP operations?

Yes, the Rust call graph visualization works directly with LSP operations, specifically leveraging prepareCallHierarchy, incomingCalls, and outgoingCalls to gather and map the function interaction data.

How do I limit the depth of a Rust call graph visualization?

You can limit the depth of a Rust call graph visualization by passing the --depth flag with a number, such as --depth 3, to restrict the traversal of incoming and outgoing calls to that many levels.

Can I view only incoming or outgoing calls separately in a Rust call graph?

Yes, you can view calls separately by using the --direction option with in, out, or both, allowing you to focus on either callers or callees exclusively within the visualization.