actionbook avatar

Rust Code Navigator

Navigate Rust codebases with LSP to jump to definitions, find references, and inspect types.

skills.sh installs
3.6K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers three LSP operations: goToDefinition, findReferences, and hover, plus a workspaceSymbol search step
  • Includes a multi-step workflow that asks for clarification on multiple matches and reads surrounding code for context
  • Formats results as a definition card with file location, code snippet, and docs, or as a references table
  • Designed for impact checks before refactoring and for quick "who uses this" or "where is this defined" lookups

Install

$ npx -y skills add actionbook/rust-skills --skill rust-code-navigator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

LSP(
  operation: "goToDefinition",
  filePath: "src/main.rs",
  line: 25,
  character: 10
)

Use when:

  • User asks "where is X defined?"
  • User wants to understand a type/function
  • Ctrl+click equivalent

2. Find References

Find all usages of a symbol.

LSP(
  operation: "findReferences",
  filePath: "src/lib.rs",
  line: 15,
  character: 8
)

Use when:

  • User asks "who uses X?"
  • Before refactoring/renaming
  • Understanding impact of changes

3. Hover Information

Get type and documentation for a symbol.

LSP(
  operation: "hover",
  filePath: "src/main.rs",
  line: 30,
  character: 15
)

Use when:

  • User asks "what type is X?"
  • User wants documentation
  • Quick type checking

Workflow

Details

Repository
github.com/actionbook/rust-skills
Categories
Rust, Code Review & Quality
First seen
May 16, 2026

More from actionbook/rust-skills

All 38

Similar to Rust Code Navigator

More Rust