SKILL

lsp-dead-code

Enumerate exported symbols in a file and surface those with zero references across the workspace. Use when auditing for dead code, cleaning up APIs, or checking which exports are safe to remove.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • lsp-dead-code
  • When to Use
  • What counts as "exported"
  • Prerequisites
  • Step 0 — Verify indexing is complete (mandatory)
  • Step 1 — Open the file and enumerate symbols
  • Step 2 — Check references for each exported symbol
  • Step 3 — Classify and report

Requires the agent-lsp MCP server. Audit an exported symbol list for zero-reference candidates. Calls listsymbols to enumerate symbols, then checks each exported symbol with findreferences to find callers. Produces a classified report. Use this skill when you want to identify dead code in a file — exported symbols that are defined but never called anywhere in the workspace. Common use cases: Cleaning up APIs before a release Identifying legacy exports that can be safely removed Auditing a package for unused public surface area Important: This skill surfaces candidates. Always review results manually before deleting anything. See the Caveats section below. | Language | Exported means... | |------------|------------------------------------------------------------------------| | Go | Identifier starts with an uppercase letter (e.g. MyFunc, MyType) | | TypeScript | Has export keyword; or is a public class member (no private) | | Python | Not prefixed with ; or explicitly listed in all | | Java/C# | Has public or protected visibility modifier | | Rust | Has pub keyword | If LSP is not yet initialized, call mcplspstartlsp with the workspace root first: agent-lsp supports auto-inference f

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
OKHP3/skillz
Source file
community/lsp-dead-code/SKILL.md
Fixed revision
7b187777d42ab7bc7bab1e5f2c940cd3139ecebf
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: OKHP3/skillz · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T10:00:54.247Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.