lsp-local-symbols

lsp-local-symbols is a skill for Claude Code from blackwell-systems/agent-lsp. It costs 54 tokens per session (1,362 once invoked), scanned A, original, MIT.

A read-only tool for examining symbols within one source file, such as functions, types, their uses, and their type information.

In plain words
What is it for?
Use it to list what a file defines, find where a symbol is used in that file, check a symbol’s type, or scope a small refactor.
Why use it?
It gives quick answers about a file without searching the whole codebase, while making clear that uses in other files will not be found.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to list what a file defines, find where a symbol is used in that file, check a symbol’s type, or scope a small refactor.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blackwell-systems/agent-lsp/lsp-local-symbols
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add blackwell-systems/agent-lsp --skill lsp-local-symbols
Clone the repo
git clone --depth 1 https://github.com/blackwell-systems/agent-lsp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lsp-local-symbols

README.md
[![agentmods](https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-local-symbols/github.svg)](https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-local-symbols)
Your own site
<a href="https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-local-symbols"><img src="https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-local-symbols/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lsp-local-symbols

Your own site · 80×15
<a href="https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-local-symbols"><img src="https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-local-symbols.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,362 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01362
Opus 5.5 $0.00022 $0.00545
Sonnet 5.5 $0.00011 $0.00272
Haiku 4.5 $0.00005 $0.00136

Measured yesterday against content hash 8be4effe1943, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lsp-local-symbols scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lsp-local-symbols/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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__agent-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__agent-lsp__list_symbols
  file_path: "/abs/path/to/file.go"

This returns all functions, types, variables, constants, and methods defined in the file — including nested symbols (methods on types, fields in structs).

Use this to:

  • Understand the file's structure before editing
  • Find the exact position of a named symbol
  • See what a file exposes before reading it in full

Reading the output: Each symbol has a range (full body including braces) and a selectionRange (just the name). Coordinates are 1-based. Use selectionRange.start.line and selectionRange.start.character as inputs to get_document_highlights and inspect_symbol.

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 8be4effe1943
  2. 2mo ago First seen · 178 lines · 54 tokens per session scan A eab0402814d6

Subscribe to this mod's changes

lsp-local-symbols is a skill published in the GitHub repository blackwell-systems/agent-lsp (172 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,362 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

lsp-local-symbols compared with skills from other repositories

lsp-local-symbols next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lsp-local-symbolsblackwell-systems/agent-lspSkill172yesterdayMITA54Claude Code
authoring-smell-rulesagentic-research/macheSkill46yesterdayApache-2.0A102Claude Code
mma-investigatorcockroachdb/cockroachSkill33k2d agononeA47Claude Code
roamCranot/roam-codeSkill5156d agoApache-2.0A86Claude Code
x-raybartolli/codannaSkill76026d agoApache-2.0A25Claude Code
pi-loop-forensicsdimetron/pi-goSkill2223d agoMITA65Claude Code, Codex
nightly-session-watchdimetron/pi-goSkill2223d agoMITA78Claude Code, Codex