rust-symbol-analyzer

Extract hierarchical symbol information from Rust source files using LSP.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/jmduea/emotiv-cortex-rs --skill rust-symbol-analyzer-jmduea
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-symbol-analyzer
Source: https://github.com/jmduea/emotiv-cortex-rs/tree/main/.github/skills/rust-symbol-analyzer
Command: npx skills add https://github.com/jmduea/emotiv-cortex-rs --skill rust-symbol-analyzer-jmduea

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle to understand the overall architecture of a Rust codebase, needing to locate structs, traits, functions, and modules manually, which slows onboarding and refactoring.

Core Features & Use Cases

  • LSP Document Symbol: Retrieve hierarchical symbols from a single Rust file.
  • LSP Workspace Symbol: Search and list symbols across the entire workspace.
  • Glob Rust Files: Automatically discover all .rs files in the project.
  • Structured Output: Generates clear visualizations and tables of modules, structs, traits, functions, and enums.
  • Use Case: When joining a new Rust project, use the skill to instantly map its architecture and identify key components for documentation or review.

Quick Start

Ask the rust-symbol-analyzer skill to list all structs in the current workspace.

Frequently Asked Questions about rust-symbol-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize the structure of a Rust project using LSP?

You can visualize Rust project structure by retrieving hierarchical symbols from source files via LSP, generating clear tables of modules, structs, traits, functions, and enums across the workspace.

How do I list all structs and traits in a Rust workspace?

To list all structs and traits in a Rust workspace, use LSP workspace symbol queries to search across all discovered `.rs` files and format the results into structured hierarchical outputs.

Can I analyze Rust code structure without manually opening every source file?

Yes, you can analyze Rust code structure without manual file opening by using file globbing to automatically discover all `.rs` files and LSP document symbol queries to extract symbols.

What is the best way to map Rust module architecture for a new codebase?

The best way to map Rust module architecture is using LSP to extract hierarchical symbol information, which instantly reveals key components like modules, structs, and functions for review.

Does this Rust symbol analysis approach work on single files or the entire workspace?

This Rust symbol analysis approach works on both single files and the entire workspace, using LSP document symbol for individual files and LSP workspace symbol for project-wide queries.

Why do I need LSP access to extract Rust code structure?

You need LSP access to extract Rust code structure because LSP provides the underlying protocol to query and retrieve hierarchical symbols like modules, structs, and functions directly from the language server.