Skip to content
Skill

Rust trait explorer

Lets your agent find Rust trait implementors and list a type's trait impls via LSP

Rust trait explorer is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
21
Last commit
License
MIT
Listing updated

Similar skills

About Rust trait explorer

This skill guides an agent through exploring trait-based designs in Rust codebases. Given a trait name, it locates the trait definition and uses LSP go-to-implementation to collect every implementor, then reads each impl block to summarize its methods. Given a struct name, it searches the source for impl blocks that target that type and builds a list of the traits it implements, separating standard library, serde and project-defined traits.

The workflow is driven by the agent's LSP, Read, Glob and Grep tools. The skill describes output formats such as implementor tables, implementation hierarchies and method coverage checks, and it points to related skills for navigation, call graphs and refactoring. It ships as a single markdown instruction file with no scripts, and it is written around Rust projects with a working language server.

When your agent uses it

Explore Rust trait implementations using LSP. Triggers on: /trait-impl, find implementations, who implements, trait 实现, 谁实现了, 实现了哪些trait

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 (6 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-trait-explorer 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-trait-explorer &&
cp -R "$tmp/.claude/skills/rust-trait-explorer" ~/.claude/skills/rust-trait-explorer &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/rust-trait-explorer inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/rust-trait-explorer 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-trait-explorer &&
cp -R "$tmp/.claude/skills/rust-trait-explorer" ~/.agents/skills/rust-trait-explorer &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/rust-trait-explorer inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/rust-trait-explorer 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-trait-explorer &&
cp -R "$tmp/.claude/skills/rust-trait-explorer" ~/.cursor/skills/rust-trait-explorer &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/rust-trait-explorer 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-trait-explorer

Or copy the folder to ~/.gemini/skills/rust-trait-explorer yourself.

Gemini CLI docs on skills

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

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-trait-explorer &&
cp -R "$tmp/.claude/skills/rust-trait-explorer" ~/.copilot/skills/rust-trait-explorer &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/rust-trait-explorer 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-trait-explorer into your agent's skills folder as rust-trait-explorer. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Trait implementor lookup
Finds every type that implements a given trait using LSP go-to-implementation.
Type trait listing
Searches impl blocks to list the traits a struct implements.
Implementation detail summaries
Reads each implementing block to summarize the methods it defines.
Method coverage check
Shows which required trait methods each implementor provides or leaves to defaults.
Blanket impl overview
Describes common blanket implementations that may apply to a type.

Good for

  • Find all implementors of a Handler trait in a Rust project
  • List every trait a particular struct implements
  • Check which required methods each implementor of a trait defines
  • Map the trait hierarchy of an error type

Rust trait explorer FAQ

What does the skill need to run?

It uses the LSP, Read, Glob and Grep tools, and it is written for Rust code, so the agent needs access to a Rust language server.

How is Rust trait explorer triggered?

It triggers on /trait-impl and phrases such as find implementations, who implements, or trait implementations, and it accepts a trait or struct name as an argument.

Does Rust trait explorer change any files?

The skill's allowed tools are read-only: LSP, Read, Glob and Grep.

How do I install Rust trait explorer in Claude Code?

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

Does Rust trait explorer 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 trait explorer?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Rust trait explorer?

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

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