Skip to content
Skill

Rust code navigator

Lets your agent jump to Rust symbol definitions, references and types via LSP

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

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, 跳转定义, 查找引用, 定义在哪, 谁用了这个

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 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-code-navigator 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-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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/rust-code-navigator 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-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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/rust-code-navigator 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-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.

Cursor docs on skills

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Rust code navigator 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.

More from k1-c/linear-tui

  1. Gives the agent a quick reference of Rust-specific naming, error handling and async rules

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

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

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

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

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

    • Open source
    • 21 GitHub stars
    • Developer tools