rust-code-navigator

Installation
Summary

Navigate Rust code using Language Server Protocol for definitions, references, and symbol information.

  • Supports three core LSP operations: go to definition, find references, and hover information for type/documentation lookup
  • Handles workspace symbol search with disambiguation when multiple results exist, plus file-specific navigation with line numbers
  • Includes error handling for missing rust-analyzer, typos, and generics/macros that produce multiple definitions
  • Output formatted as structured tables and code blocks showing file paths, context, and usage patterns across the codebase
SKILL.md

Rust Code Navigator

Navigate large Rust codebases efficiently using Language Server Protocol.

Usage

/rust-code-navigator <symbol> [in file.rs:line]

Examples:

  • /rust-code-navigator parse_config - Find definition of parse_config
  • /rust-code-navigator MyStruct in src/lib.rs:42 - Navigate from specific location

LSP Operations

1. Go to Definition

Find where a symbol is defined.

Related skills

More from zhanghandong/rust-skills

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