TypeScript Language Server Protocol capabilities for navigating TypeScript/JavaScript code...
This skill provides full TypeScript Language Server Protocol capabilities for navigating and analyzing TypeScript/JavaScript code.
Use this skill when you need to:
ToolLoopAgent, React.Component, or other imported types are defined (including in node_modules)typeDefinition - Jump to Type DefinitionResolves imported symbols to their actual definitions (works with node_modules).
Example:
node .claude/skills/typescript-lsp/typescript-lsp.js typeDefinition src/lib/ai/agents/transaction-debugger.ts 4 30
When to use: Finding where ToolLoopAgent is defined, navigating to React types, or any imported symbol.
definition - Jump to DefinitionStandard go-to-definition (works for local symbols).
Example:
node .claude/skills/typescript-lsp/typescript-lsp.js definition src/lib/transaction.ts 10 15
references - Find All ReferencesLocates every usage of a symbol across the entire workspace.
Example:
node .claude/skills/typescript-lsp/typescript-lsp.js references src/lib/ai/agents/transaction-debugger.ts 9 37
When to use: Finding all places that call a function or use a variable.
hover - Get Type InfoShows TypeScript type information and JSDoc documentation.
Example:
node .claude/skills/typescript-lsp/typescript-lsp.js hover src/lib/transaction.ts 20 10
When to use: Understanding what type a variable has or seeing function signatures.
rename - Preview Rename (Dry-Run)Shows what would change when renaming a symbol.
Example:
node .claude/skills/typescript-lsp/typescript-lsp.js rename src/lib/transaction.ts 15 10 newFunctionName
When to use: Checking the impact of a rename before doing it.
diagnostics - Get Errors/WarningsRetrieves TypeScript compiler diagnostics for a file.
Example:
node .claude/skills/typescript-lsp/typescript-lsp.js diagnostics src/app/page.tsx
When to use: Checking for TypeScript errors before compiling.
All commands (except diagnostics) require line and character positions:
Tip: When you see import { ToolLoopAgent } from "ai" on line 5, use line 4 (0-indexed) and count characters to find where "ToolLoopAgent" starts.
The skill outputs Claude Code-friendly format:
src/file.ts:10:5)typescript-language-server to be installedFind where ToolLoopAgent is defined:
node .claude/skills/typescript-lsp/typescript-lsp.js typeDefinition src/lib/ai/agents/transaction-debugger.ts 4 30
Find all uses of transactionDebugger:
node .claude/skills/typescript-lsp/typescript-lsp.js references src/lib/ai/agents/transaction-debugger.ts 9 37
Check if a file has TypeScript errors:
node .claude/skills/typescript-lsp/typescript-lsp.js diagnostics src/app/page.tsx