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
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
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.