actionbook avatar

Rust Symbol Analyzer

This parses LSP symbols from your Rust codebase to give you a structural overview of what's where. It'll show you all structs, traits, functions, and enums across the project or drill into a single file with hierarchy. Useful when you're dropped into an unfamiliar codebase or need to audit what's public before a release. The output includes tables with locations, visibility, and relationship info. It can filter by symbol type and attempts complexity metrics based on function count and lines. Honestly most valuable for that initial "what am I looking at" moment rather than ongoing development, since your IDE already does symbol search, but the cross-file categorization view is handy for documentation or onboarding.

skills.sh installs
3.4K
GitHub stars
1.6K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/actionbook/rust-skills
Category
Rust
First seen
May 16, 2026

More from actionbook/rust-skills

All 38

Recommended

More Rust
1actionbook avatarrust-dailyactionbook/rust-skillsCRITICAL: Use for Rust news and daily/weekly/monthly reports. Triggers on: rust news, rust daily, rust weekly, TWIR, rust blog, Rust 日报, Rust 周报, Rust 新闻, Rust 3.2Kskills.sh installs
2marimo-team avatarwasm-compatibilitymarimo-team/skillsCheck if a marimo notebook is compatible with WebAssembly (WASM) and report any issues.3.1Kskills.sh installs
3hubspot avatarteam-ownershiphubspot/agent-cli-skillsAssign and reassign CRM record ownership, audit who-owns-what across object types, and handle rep transitions. Built on `bulk-operations`.1.8Kskills.sh installs
4subsy avatarralph-tui-create-beads-rustsubsy/ralph-tuiConvert PRDs to beads for ralph-tui execution using beads-rust (br CLI). Creates an epic with child beads for each user story. Use when you have a PRD and want 1Kskills.sh installs
5zhanghandong avatarrust-refactor-helperzhanghandong/rust-skillsrust refactor helper821skills.sh installs
6ruvnet avatarwasm-galleryruvnet/rufloBrowse, publish, and install WASM agents from the community gallery742skills.sh installs