actionbook avatar

Rust Trait Explorer

Rust trait-implementation finder that maps implementors and traits-per-type using LSP operations.

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

Own this skill? Claim it

What it does

  • Covers two lookups: finding all implementors of a named trait, and listing every trait a given struct implements
  • Uses LSP goToImplementation, goToDefinition, and documentSymbol, with Grep for impl * for Type patterns
  • Produces implementor tables with file locations, per-method coverage checks, and blanket-impl summaries
  • Designed for navigating polymorphic Rust code and auditing which required methods each implementor provides

Install

$ npx -y skills add actionbook/rust-skills --skill rust-trait-explorer -y

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

Files

Rust Trait Explorer

Discover trait implementations and understand polymorphic designs.

Usage

/rust-trait-explorer <TraitName|StructName>

Examples:

  • /rust-trait-explorer Handler - Find all implementors of Handler trait
  • /rust-trait-explorer MyStruct - Find all traits implemented by MyStruct

LSP Operations

Go to Implementation

Find all implementations of a trait.

LSP(
  operation: "goToImplementation",
  filePath: "src/traits.rs",
  line: 10,
  character: 11
)

Use when:

  • Trait name is known
  • Want to find all implementors
  • Understanding polymorphic code

Workflow

Find Trait Implementors

User: "Who implements the Handler trait?"
    │
    ▼
[1] Find trait definition
    LSP(goToDefinition) or workspaceSymbol
    │
    ▼
[2] Get implementations
    LSP(goToImplementation)
    │
    ▼
[3] For each impl, get details
    LSP(documentSymbol) for methods
    │
    ▼
[4] Generate implementation map

Find Traits for a Type

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 Trait Explorer

More Rust