typescript-lsp

Resolve TypeScript symbol definitions, references, and diagnostics via Language Server Protocol.

2|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/tenequm/obsidian-debug --skill typescript-lsp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-lsp
Source: https://github.com/tenequm/obsidian-debug/tree/main/.claude/skills/typescript-lsp
Command: npx skills add https://github.com/tenequm/obsidian-debug --skill typescript-lsp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typescript-language-server, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the tedious manual work of navigating complex TypeScript/JavaScript codebases, understanding type definitions, finding references, and identifying compiler errors. It removes the need for deep IDE knowledge or manual file searching, making code analysis faster and less error-prone.

Core Features & Use Cases

  • Code Navigation: Instantly jump to type definitions (even in node_modules) and local symbol definitions.
  • Reference Finding: Locate all usages of any function, class, or variable across your entire project.
  • Type & Signature Info: Get detailed TypeScript type information and JSDoc documentation on demand.
  • Error Checking: Quickly retrieve all TypeScript compiler diagnostics (errors/warnings) for a given file.
  • Use Case: When debugging a complex Solana program, use this skill to quickly find where a specific InstructionError type is defined, then locate all its references to understand its propagation, and finally check for any related TypeScript errors in the affected files.

Quick Start

Find the type definition for 'ToolLoopAgent' in 'src/lib/ai/agents/transaction-debugger.ts' at line 4, character 30 using the typescript-lsp skill.

Frequently Asked Questions about typescript-lsp

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

FAQPage Schema
How do I find where a TypeScript or JavaScript symbol is defined across my project?

TypeScript language server protocol resolves imported symbols to their definitions, including in node_modules. Use the definition command to jump to any function, class, type, or variable definition in your codebase, enabling fast navigation without manual file searching.

Can I locate all references to a TypeScript function or variable in my project?

Yes, the references command returns all usages of any symbol across your entire TypeScript/JavaScript project in file:line:column format, helping you understand propagation and impact before refactoring.

How do I get type information and documentation for TypeScript code?

The hover command retrieves detailed type signatures and JSDoc documentation on demand, giving you instant access to parameter types, return types, and inline documentation without switching to external reference files.

What's the best way to check for TypeScript compiler errors in a file?

The diagnostics command returns all TypeScript compiler errors and warnings for a given file, enabling quick identification of type mismatches and syntax issues across projects of any size.

Can I preview the impact of renaming a symbol in TypeScript before applying changes?

The rename command shows all affected locations where a symbol is used, allowing you to preview the full scope of a refactoring operation and confirm the change is safe before committing.

Does this work with JavaScript projects and node_modules dependencies?

Yes, the TypeScript Language Server Protocol stack supports both TypeScript and JavaScript codebases and resolves definitions even in node_modules, making it suitable for projects of varying size and complexity.