
Rust call graph
Maps who calls a Rust function and what it calls, using LSP call hierarchy
Rust call graph is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 21
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Rust call graph
This skill lets an agent draw call graphs for Rust functions. Given a function name, it locates the symbol, prepares a call hierarchy item through the LSP tool, and then walks incoming calls (callers), outgoing calls (callees), or both, expanding up to a configurable depth.
Results are rendered as ASCII trees or box diagrams, with an option to export a Mermaid graph for documentation. After the graph, the agent adds a short analysis covering entry points, leaf functions, a hot path, and spots with high fan-out or many call sites.
The skill relies on the LSP tool being available in the agent session, plus Read and Glob for navigating source files. It includes no scripts; the work is done through LSP queries against the Rust codebase.
When your agent uses it
Visualize Rust function call graphs using LSP. Triggers on: /call-graph, call hierarchy, who calls, what calls, 调用图, 调用关系, 谁调用了, 调用了谁
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: LSP, Read, Glob(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (5 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/rust-call-graph to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/rust-call-graph &&
cp -R "$tmp/.claude/skills/rust-call-graph" ~/.claude/skills/rust-call-graph &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/rust-call-graph inside it instead.
Copy the skill folder to ~/.agents/skills/rust-call-graph to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/rust-call-graph &&
cp -R "$tmp/.claude/skills/rust-call-graph" ~/.agents/skills/rust-call-graph &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/rust-call-graph inside it instead.
Copy the skill folder to ~/.cursor/skills/rust-call-graph to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/rust-call-graph &&
cp -R "$tmp/.claude/skills/rust-call-graph" ~/.cursor/skills/rust-call-graph &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/rust-call-graph inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/rust-call-graphOr copy the folder to ~/.gemini/skills/rust-call-graph yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/rust-call-graph:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/rust-call-graph &&
cp -R "$tmp/.claude/skills/rust-call-graph" ~/.copilot/skills/rust-call-graph &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/rust-call-graph inside it instead.
Get the folder:
git clone --depth 1 https://github.com/k1-c/linear-tui.gitThen copy linear-tui/.claude/skills/rust-call-graph into your agent's skills folder as rust-call-graph. Agents that support SKILL.md read one folder per skill.
What it does
- Caller tracing
- Finds which functions call a given Rust function, level by level.
- Callee tracing
- Lists what a function calls, expanding downward to a chosen depth.
- Adjustable depth and direction
- Accepts options to set traversal depth and limit output to callers, callees or both.
- Multiple diagram styles
- Renders the graph as a tree, box diagram, flat list or Mermaid block.
- Call graph analysis
- Summarizes entry points, leaf functions, hot paths and high fan-out functions.
- Multilingual triggers
- Activates on English phrases such as who calls or call hierarchy, and on Chinese equivalents.
Good for
- Show who calls process_request in this Rust project
- List everything handle_error calls, three levels deep
- Trace the execution path from main to a given function
- Assess the impact of changing a function by finding its callers
- Export the call graph of a module as a Mermaid diagram
Rust call graph FAQ
What does the skill need to run?
It uses the LSP tool with call hierarchy operations, along with Read and Glob for file access. It has no scripts of its own.
How do I control the output?
Pass a function name, plus optional --depth N (default 3) and --direction in, out or both.
Which languages does Rust call graph support?
It is written for Rust code and uses LSP call hierarchy queries against Rust source files.
How do I install Rust call graph in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/rust-call-graph to use it in all your projects, or to .claude/skills/rust-call-graph in one project.
Does Rust call graph run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Rust call graph?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Rust call graph?
The closest alternatives to Rust call graph are Rust symbol analyzer, Rust code navigator, Rust trait explorer, Rust refactor helper and Diagramming code.
Where this comes from
- Description: from the skill's own SKILL.md.
More from k1-c/linear-tui

Gives the agent a quick reference of Rust-specific naming, error handling and async rules
- Open source
- 21 GitHub stars
- Developer tools

Guides the agent to write Conventional Commits, splitting mixed changes into several
- Open source
- 21 GitHub stars
- Developer tools

Guides an agent through building Rust command-line tools with clap, config layers
- Open source
- 21 GitHub stars
- Developer tools

Guides the agent through Rust ownership, borrow and lifetime compiler errors
- Open source
- 21 GitHub stars
- Developer tools

Guides an agent in choosing Rust smart pointers like Box, Rc, Arc, Weak and RefCell
- Open source
- 21 GitHub stars
- Developer tools

Guides a Rust agent through E0596/E0499/E0502 borrow errors and interior mutability
- Open source
- 21 GitHub stars
- Developer tools

