actionbook avatar

Rust Call Graph

Maps out who calls what in your Rust codebase using LSP call hierarchy. You give it a function name and get an ASCII tree showing callers above, callees below, or both. Supports depth control and direction flags for focused analysis. The bidirectional view is genuinely helpful when you're trying to understand impact radius before refactoring something. Works entirely through LSP operations so it's as accurate as your language server. The mermaid export option is a nice touch for documentation. Basically answers "where is this used" and "what does this depend on" without grepping through files or holding mental state.

skills.sh installs
3.4K
GitHub stars
1.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add actionbook/rust-skills --skill rust-call-graph --agent claude-code

Installs into .claude/skills of the current project.

Files

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

LSP Operations

1. Prepare Call Hierarchy

Get the call hierarchy item for a function.

LSP(
  operation: "prepareCallHierarchy",
  filePath: "src/handler.rs",
  line: 45,
  character: 8
)

2. Incoming Calls (Who calls this?)

LSP(
  operation: "incomingCalls",
  filePath: "src/handler.rs",
  line: 45,
  character: 8
)

3. Outgoing Calls (What does this call?)

LSP(
  operation: "outgoingCalls",
  filePath: "src/handler.rs",
  line: 45,
  character: 8
)

Workflow

Sponsors

Details

Repository
github.com/actionbook/rust-skills
Category
Rust
First seen
May 16, 2026

More from actionbook/rust-skills

All 38

Recommended

More Rust
1actionbook avatarrust-symbol-analyzeractionbook/rust-skillsAnalyze Rust project structure using LSP symbols. Triggers on: /symbols, project structure, list structs, list traits, list functions, 符号分析, 项目结构, 列出所有, 有哪些stru3.4Kskills.sh installs
2actionbook avatarrust-dailyactionbook/rust-skillsCRITICAL: Use for Rust news and daily/weekly/monthly reports. Triggers on: rust news, rust daily, rust weekly, TWIR, rust blog, Rust 日报, Rust 周报, Rust 新闻, Rust 3.2Kskills.sh installs
3marimo-team avatarwasm-compatibilitymarimo-team/skillsCheck if a marimo notebook is compatible with WebAssembly (WASM) and report any issues.3.1Kskills.sh installs
4hubspot avatarteam-ownershiphubspot/agent-cli-skillsAssign and reassign CRM record ownership, audit who-owns-what across object types, and handle rep transitions. Built on `bulk-operations`.1.8Kskills.sh installs
5subsy avatarralph-tui-create-beads-rustsubsy/ralph-tuiConvert PRDs to beads for ralph-tui execution using beads-rust (br CLI). Creates an epic with child beads for each user story. Use when you have a PRD and want 1Kskills.sh installs
6zhanghandong avatarrust-refactor-helperzhanghandong/rust-skillsrust refactor helper821skills.sh installs