lsp-navigation

Navigate code with Language Server Protocol for definitions, references, and renaming.

Updated Aug 6, 2025
One-click install
npx skills add https://github.com/flosrn/.claude --skill lsp-navigation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lsp-navigation
Source: https://github.com/flosrn/.claude/tree/main/skills/lsp-navigation
Command: npx skills add https://github.com/flosrn/.claude --skill lsp-navigation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides advanced code navigation capabilities, allowing developers to understand code structure and relationships more effectively than traditional text-based searches.

Core Features & Use Cases

  • Find Definitions: Quickly locate the exact source code where a function, variable, or class is defined.
  • Find References: Discover all places within the codebase where a specific symbol is used.
  • Rename Symbols: Safely refactor code by renaming variables, functions, or classes across the entire project.
  • Get Diagnostics: View TypeScript errors and warnings for a given file to identify and fix issues.

Quick Start

Use the lsp-navigation skill to find where the function 'calculateTotal' is defined in the file 'src/utils.js'.

Frequently Asked Questions about lsp-navigation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find all references of a function in a TypeScript codebase?

To find all references of a function in a TypeScript codebase, use semantic code navigation to locate every place where a specific symbol is used. This leverages the Language Server Protocol to map symbol relationships accurately across files.

What is the best way to safely rename variables across a complex project?

The best way to safely rename variables across a complex project is by performing semantic symbol renaming. This method updates the variable, function, or class name throughout the entire codebase without breaking references.

How does semantic code navigation differ from text-based search?

Semantic code navigation differs from text-based search by understanding code structure and relationships rather than just matching strings. It uses the Language Server Protocol to find exact symbol definitions and usages, preventing false positives.

How do I locate the exact definition of a class in my codebase?

To locate the exact definition of a class in your codebase, use the find definitions feature. This semantic navigation technique quickly identifies the precise source code location where the class or function is defined.

Can I retrieve TypeScript diagnostics for a specific file?

Yes, you can retrieve TypeScript diagnostics for a specific file to identify and fix issues. This feature surfaces TypeScript errors and warnings, helping you maintain code quality during refactoring.