# Rust code navigator

> Rust code navigator is an open-source agent skill for developer tools. Lets your agent jump to Rust symbol definitions, references and types via LSP. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/k1-c/linear-tui/tree/main/.claude/skills/rust-code-navigator
- **Repository:** https://github.com/k1-c/linear-tui
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** rust-code-navigator
- **Collection:** https://github.com/k1-c/linear-tui
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an AI coding agent through navigating a Rust codebase using the Language Server Protocol. It covers three operations: going to a symbol's definition, finding all references to a symbol before a change, and showing hover information such as a type and its documentation. A typical lookup starts with a workspace-wide symbol search, asks the user to pick when several matches exist, then resolves the definition and reads the surrounding code for context.

The skill defines a fixed output layout for results, including a definition card with file location and a references table with line and context. It also lists common phrasings mapped to LSP operations and suggested fixes for errors such as a missing rust-analyzer or a symbol not in scope. It points to several related skills for call graphs, trait implementations and refactoring.

It expects a Rust project that rust-analyzer can index and an agent with LSP, Read and Glob access. The skill itself ships as a single SKILL.md with no scripts.

## When your agent uses it

> Navigate Rust code using LSP. Triggers on: /navigate, go to definition, find references, where is defined, 跳转定义, 查找引用, 定义在哪, 谁用了这个

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/rust-code-navigator)
- [Asks for: LSP, Read, Glob](https://github.com/k1-c/linear-tui/blob/HEAD/.claude/skills/rust-code-navigator/SKILL.md)
- [License: MIT](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/rust-code-navigator)

## Features

- **Go to definition:** Locates where a Rust function, struct or type is declared in the project.
- **Find references:** Lists usages of a symbol so the impact of a change can be judged before refactoring.
- **Hover type info:** Returns the type and documentation attached to a symbol at a given position.
- **Workspace symbol search:** Searches the whole workspace by name and asks the user to choose when several match.
- **Structured result format:** Defines how definitions and reference tables are presented back to the user.
- **Error guidance:** Explains common failures such as a missing rust-analyzer and how to resolve them.

## Good for

- Find where a struct like Config is defined in a large Rust workspace
- List every call site of a function before renaming it
- Check the type and docs of a value at a specific line
- Locate all usages of a trait method across the crate
- Get an overview of the symbols declared in a Rust file

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/rust-code-navigator` to use it in all your projects:

```sh
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-code-navigator &&
cp -R "$tmp/.claude/skills/rust-code-navigator" ~/.claude/skills/rust-code-navigator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/rust-code-navigator` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/rust-code-navigator` to use it in every repository:

```sh
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-code-navigator &&
cp -R "$tmp/.claude/skills/rust-code-navigator" ~/.agents/skills/rust-code-navigator &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/rust-code-navigator` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/rust-code-navigator` to use it in every project:

```sh
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-code-navigator &&
cp -R "$tmp/.claude/skills/rust-code-navigator" ~/.cursor/skills/rust-code-navigator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/rust-code-navigator` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/rust-code-navigator
```

Or copy the folder to `~/.gemini/skills/rust-code-navigator` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/rust-code-navigator`:

```sh
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-code-navigator &&
cp -R "$tmp/.claude/skills/rust-code-navigator" ~/.copilot/skills/rust-code-navigator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/rust-code-navigator` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/k1-c/linear-tui.git
```

Then copy `linear-tui/.claude/skills/rust-code-navigator` into your agent's skills folder as `rust-code-navigator`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to work?

It uses the LSP tool along with Read and Glob, and the guidance assumes rust-analyzer is available for the Rust project.

### How is Rust code navigator triggered?

It triggers on the /navigate command and on requests such as go to definition, find references, where is defined, and several Chinese phrasings for the same tasks.

### Does Rust code navigator change any files?

The skill only describes read-only navigation operations. It does not define any scripts or edits.

### How do I install Rust code navigator in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/rust-code-navigator to use it in all your projects, or to .claude/skills/rust-code-navigator in one project.

### Does Rust code navigator 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 code navigator?

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 code navigator?

The closest alternatives to Rust code navigator are Rust symbol analyzer, Rust trait explorer, Rust refactor helper, Rust learner and Rust call graph.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Rust symbol analyzer](https://ai-powered.com/skills/rust-symbol-analyzer): Rust symbol analyzer is an open-source agent skill for developer tools.
- [Rust trait explorer](https://ai-powered.com/skills/rust-trait-explorer): Rust trait explorer is an open-source agent skill for developer tools.
- [Rust refactor helper](https://ai-powered.com/skills/rust-refactor-helper): Rust refactor helper is an open-source agent skill for developer tools.
- [Rust learner](https://ai-powered.com/skills/rust-learner): Rust learner is an open-source agent skill for developer tools.
- [Rust call graph](https://ai-powered.com/skills/rust-call-graph): Rust call graph is an open-source agent skill for developer tools.
- [M11 ecosystem](https://ai-powered.com/skills/m11-ecosystem): M11 ecosystem is an open-source agent skill for developer tools.
- [Rust router](https://ai-powered.com/skills/rust-router): Rust router is an open-source agent skill for developer tools.
- [Go semantic tools](https://ai-powered.com/skills/go-semantic-tools): Go semantic tools is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/rust-code-navigator
