lsp-local-symbols

Solid

Fast file-scoped symbol analysis — find all usages of a symbol within the current file, list all symbols defined in the file, and get type info at a position. Use when you need local-scope analysis without a workspace-wide search.

AI & Automation 56 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> Requires the agent-lsp MCP server. # lsp-local-symbols File-scoped symbol analysis using the language server index. Faster than workspace-wide search for questions about a single file: what symbols are defined here, where is this symbol used within the file, and what type does it have. Read-only — does not modify any files. ## When to use - "Where is `x` used in this file?" — use `get_document_highlights` - "What functions and types are defined in this file?" — use `list_symbols` - "What type does this symbol have?" — use `inspect_symbol` - Reviewing a file before editing — get the full symbol map first - Local refactor scoping — confirm a symbol is only used in one place before inlining it Use `/lsp-impact` instead when you need workspace-wide callers and cross-file references. Use `/lsp-dead-code` when auditing exported symbols for zero callers. ## When NOT to use `get_document_highlights` is file-scoped by design — it only finds usages within the open file. If a symbol is used across multiple files, this skill will not find those. Use `find_references` (via `/lsp-impact`) for cross-file analysis. --- ## Workflow ### Step 1 — Open the file Open the file so the language server tracks it: ``` mcp__lsp__open_document file_path: "/abs/path/to/file.go" language_id: "go" # go, typescript, python, rust, etc. ``` ### Step 2 — List all symbols in the file Get the full symbol tree for the file: ``` mcp__lsp__list_symbols file_path: "/abs/path/to/f...

Details

Author
blackwell-systems
Repository
blackwell-systems/agent-lsp
Created
2 months ago
Last Updated
today
Language
Go
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category