rust-symbol-analyzer
Analyze Rust project structure using LSP symbols. Triggers on: /symbols, project structure, list structs, list traits, list functions, 符号分析, 项目结构, 列出所有, 有哪些struct
By actionbook · 2,627 installs
npx skills add actionbook/rust-skills --skill rust-symbol-analyzer
Source repository · Upstream listing
Rust Symbol Analyzer
Analyze project structure by examining symbols across your Rust codebase.
Usage
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.
Returns: Nested structure of modules, structs, functions, etc.
2. Workspace Symbols (Entire Project)
Search for symbols across the workspace.
Note: Query is implicit in the operation context.
Workflow
Output Format
Project Overview
By Symbol Type
Single File Analysis
Analysis Features
Complexity Metrics
Dependency Analysis
Symbol Types
Type Icon LSP Kind
Module 📦 Module
Struct 🏗️ Struct
Enum 🔢 Enum
Trait 📜 Interface
Function ⚡ Function
Method 🔧 Method
Constant 🔒 Constant
Field 📎 Field
Common Queries
User Says Analysis
"What structs are in this project?" workspaceSymbol + filter
"Show me src/lib.rs structure" documentSymbol
"Find all async functions" workspaceSymbol + async filter
"List public API" documentSymbol + pub filter
Related Skills
When See
Navigate to symbol rust code navigator
Call relationships rust call graph
Trait implementations rust trait explorer
Safe refactoring rust refactor helper