Skip to main content
skill CX Codex

lsp-code-analysis — Claude Code skill: semantic code navigation via

Semantic code analysis over the Language Server Protocol: jump to definitions, find references, outline a file and preview refactorings.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add lsp-client/lsp-skill --skill lsp-code-analysis -a claude-code
Open on GitHub

What lsp-code-analysis does

The skill hands your agent an lsp CLI for code navigation. Instead of grep and reading whole files, it resolves definitions, references and implementations, tells variables apart from functions and classes, and pulls signatures and docs. On an unfamiliar codebase that beats text search.

Two steps come first: run the update script scripts/update.sh, then confirm the project is supported with lsp server start <project_path>. The skill is not allowed to run without them. You point at a target with --scope (a line number, a range, or a path like MyClass.my_method) and --find, where the <|> marker sets the exact position inside the pattern. Large result sets page through --pagination-id and --start-index.

Commands cover outline for file structure, definition, reference, doc and locate to verify a target before acting. Refactoring has its own guide in references/refactor.md. If the language server for your stack does not come up during the check, nothing else will work — worth testing that before you wire the skill into a workflow.

What it helps with

  • find every usage of a function before renaming it
  • map an unfamiliar file without reading its implementation
  • jump to the definition of a symbol imported from another module
  • read a signature and its docs without opening the source
  • verify a symbol exists in a file before running a command

Example prompts for the agent

  • outline src/models.py with lsp outline
  • find all references to logger inside MyClass.run
  • jump to the definition of User.get_id in models.py

How to install lsp-code-analysis

1Skills CLI (Vercel)

npx skills add lsp-client/lsp-skill --skill lsp-code-analysis -a claude-code

2Manually: put the files in place

~/.claude/skills/lsp-code-analysis/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/lsp-code-analysis/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about lsp-code-analysis

How do I install lsp-code-analysis in Claude?

Run npx skills add lsp-client/lsp-skill --skill lsp-code-analysis -a claude-code. The skill lands at ~/.claude/skills/lsp-code-analysis/SKILL.md.

What does lsp-code-analysis do?

It gives the agent semantic code navigation over LSP: definitions, references, implementations, symbol search, file outlines and refactoring previews.

What has to happen before first use?

Run scripts/update.sh and verify project support with lsp server start <project_path>. Without those steps the skill cannot be used.

Similar skills

All skills for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor