actionbook avatar

Rust Symbol Analyzer

Structured Rust project analysis that lists modules, structs, traits, functions, and enums from LSP symbols.

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 project-wide and single-file views, with optional --type struct|trait|fn|mod filtering on the symbol list
  • Includes LSP documentSymbol and workspaceSymbol operations, plus per-type tables for locations, fields, derives, and implementors
  • Adds complexity hotspot flags and internal import and imported-by dependency maps for each file
  • Designed for developers who need a quick structural overview of a Rust codebase before navigating or refactoring it

Install

$ npx -y skills add actionbook/rust-skills --skill rust-symbol-analyzer -y

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

Files

Rust Symbol Analyzer

Analyze project structure by examining symbols across your Rust codebase.

Usage

/rust-symbol-analyzer [file.rs] [--type struct|trait|fn|mod]

Examples:

  • /rust-symbol-analyzer - Analyze entire project
  • /rust-symbol-analyzer src/lib.rs - Analyze single file
  • /rust-symbol-analyzer --type trait - List all traits in project

LSP Operations

1. Document Symbols (Single File)

Get all symbols in a file with their hierarchy.

LSP(
  operation: "documentSymbol",
  filePath: "src/lib.rs",
  line: 1,
  character: 1
)

Returns: Nested structure of modules, structs, functions, etc.

2. Workspace Symbols (Entire Project)

Search for symbols across the workspace.

LSP(
  operation: "workspaceSymbol",
  filePath: "src/lib.rs",
  line: 1,
  character: 1
)

Note: Query is implicit in the operation context.

Workflow

User: "What's the structure of this project?"
    │
    ▼
[1] Find all Rust files
    Glob("**/*.rs")
    │
    ▼
[2] Get symbols from each key file
    LSP(documentSymbol) for lib.rs, main.rs
    │
    ▼
[3] Categorize by type
    │
    ▼
[4] Generate structure visualization

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 Symbol Analyzer

More Rust