rust-call-graph

Visualize Rust function call graphs using LSP. Triggers on: /call-graph, call hierarchy, who calls, what calls, 调用图, 调用关系, 谁调用了, 调用了谁

By actionbook · 2,643 installs

npx skills add actionbook/rust-skills --skill rust-call-graph

Source repository · Upstream listing

Rust Call Graph Visualize function call relationships using LSP call hierarchy. Usage 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. 2. Incoming Calls (Who calls this?) 3. Outgoing Calls (What does this call?) Workflow Output Format Incoming Calls (Who calls this?) Outgoing Calls (What does this call?) Bidirectional (Both) Analysis Insights After generating the call graph, provide insights: Common Patterns User Says Direction Use Case "Who calls X?" incoming Impact analysis "What does X call?" outgoing Understanding implementation "Show call graph" both Full picture "Trace from main to X" outgoing Execution path Visualization Options Style Best For Tree (default) Simple hierarchies Box diagram Complex relationships Flat list Many connections Mermaid Export to docs Mermaid Export Related Skills When See Find definition rust code navigator Project structure rust symbol analyzer Trait implementations rust trait explorer Safe refactoring rust refactor helper