typescript-lsp
/typescript-lsp
Use this skill whenever Claude needs semantic intelligence on TypeScript or JavaScript source — type errors, import resolution, go-to-definition, find-references, or hover type information. Trigger on: "TypeScript LSP", "tsserver", "typescript-language-server", "type error", "find references", "who calls this function", "where is X defined", "why does this import fail", ".ts diagnostics", "missing @types", "tsconfig", "checkJs", "reportMissingImports", "TSError", "TS2345", "JSX not recognised", or any question about .ts/.tsx/.js/.jsx files that requires real symbol resolution rather than textu
- Author
- msapps-mobile ↗
- Repository
- claude-plugins ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use this skill whenever Claude needs semantic intelligence on TypeScript or JavaScript source — type errors, import resolution, go-to-definition, find-references, or hover type information. Trigger on: "TypeScript LSP", "tsserver", "typescript-language-server", "type error", "find references", "who calls this function", "where is X defined", "why does this import fail", ".ts diagnostics", "missing @types", "tsconfig", "checkJs", "reportMissingImports", "TSError", "TS2345", "JSX not recognised", or any question about .ts/.tsx/.js/.jsx files that requires real symbol resolution rather than textu
Triggers from the description
Original author description
Use this skill whenever Claude needs semantic intelligence on TypeScript or JavaScript source — type errors, import resolution, go-to-definition, find-references, or hover type information. Trigger on: "TypeScript LSP", "tsserver", "typescript-language-server", "type error", "find references", "who calls this function", "where is X defined", "why does this import fail", ".ts diagnostics", "missing @types", "tsconfig", "checkJs", "reportMissingImports", "TSError", "TS2345", "JSX not recognised", or any question about .ts/.tsx/.js/.jsx files that requires real symbol resolution rather than textu
How it works
- Workflow Process
- tsserver startup notes
- Example tsconfig.json (strict React/Node project)
- Common Issues (FAQ)
- Out of scope
SKILL.md preview
---
name: typescript-lsp
description: |
Use this skill whenever Claude needs semantic intelligence on TypeScript or
JavaScript source — type errors, import resolution, go-to-definition,
find-references, or hover type information. Trigger on: "TypeScript LSP",
"tsserver", "typescript-language-server", "type error", "find references",
"who calls this function", "where is X defined", "why does this import fail",
".ts diagnostics", "missing @types", "tsconfig", "checkJs",
"reportMissingImports", "TSError", "TS2345", "JSX not recognised", or any
question about .ts/.tsx/.js/.jsx files that requires real symbol resolution
rather than textual search.
---
# typescript-lsp — TypeScript/JavaScript code intelligence via tsserver
Part of the LSP plugin series. Wraps **typescript-language-server**
(tsserver) as a read-only, SOSA Level 1 intelligence source.
## Workflow Process
### Plan
1. Confirm the user's question actually needs semantic info (type diagnostics,
references, definitions, hover) vs a plain grep/glob.
2. Verify `typescript-language-server --version` works. If missing, run
`npm install -g typescript typescript-language-server`.
3. Confirm the repo has a `tsconfig.json` (TS) or `jsconfig.json` (JS) at the
root, or at least a `package.json` that `tsc` can discover.
### Act
4. Resolve the file path the user is asking about.
5. Use LSP via the plugin's `.lsp.json` wiring:
- `textDocument/publishDiagnostics` → type/import errors
- `textDocument/definition` → jump to definition
- `textDocument/references` → all call sites
- `textDocument/hover` → inferred type / JSDoc
- `workspace/symbol` → fuzzy symbol search
6. For cross-file impact (e.g. reviewing a change), iterate
`find-references` over every exported symbol in the touched file.
7. Treat tsserver answers as authoritative over heuristic search. If tsserver
returns empty references, *say so* — don't invent them.
### Verify
8. Cross-check one reported reference by opening the referenced file. If the
symbol isn't really there, the tsserver project may have out-of-date
`node_modules` — report that, don't silently retry.
9. If diagnostics include `Cannot find module` for installed packages,
`node_modules` hasn't been populated (`npm install`). Note this before
trusting import counts.
## tsserver startup notes
- **Project loading:** tsserver uses `tsconfig.json` to determine the project
boundary. With `composite: true` / project references, tsserver loads each
sub-project separately — navigate to the root `tsconfig.json` for full
cross-project references.
- **JavaScript support:** tsserver provides basic intelligence for `.js` even
without types. Enable full checking with `"checkJs": true` in `jsconfig.json`.
- **Monorepos:** in a workspace (pnpm/yarn/npm workspaces), point tsserver at
the root `tsconfig.json` that has `references` to all packages.
## Example `tsconfig.json` (strict React/Node project)
```json
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"jsx": "react-jsx",
"esModuleInterop": true,
"skipLibCheck": true,
"outDir": "./dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
```
## Common Issues (FAQ)
**"Cannot find module 'X' or its corresponding type declarations."**
Two causes:
1. `node_modules` not populated — run `npm install` (or `pnpm install`).
2. `@types/<package>` missing — `npm install --save-dev @types/<package>`.
**"find-references returns only hits in the current file."**
The symbol is probably not exported. tsserver only traces references to
symbols accessible at the project boundary. If the function is local-only,
references within the file are the complete set.
**"JSX element type 'X' does not have any construct or call signatures."**
`tsconfig.json` is missing `"jsx": "react-jsx"` or the wrong version of
`@types/react` is installed. Check both.
**"tsserver is slow on a large monorepo."**
Add `"skipLibCheck": true` and ensure `node_modules` are excluded. For
project references, each sub-package tsconfig should `composite: true` so
tsserver can use incremental builds.
**"Type errors in `.js` files I didn't opt into."**
Set `"checkJs": false` in your `jsconfig.json` / `tsconfig.json`. tsserver
respects this flag.
**"Deno project — imports resolve to URLs, not paths."**
tsserver doesn't understand Deno's URL imports natively. Use the
`deno-language-server` instead; this plugin targets Node/browser TypeScript.
## Out of scope
- Running tests or executing JavaScript. Pure static analysis only.
- Auto-fixing type errors. tsserver surfaces them; Claude can suggest fixes.
- Bundler integration (Vite, Webpack, esbuild). Bundler transforms happen
outside tsserver's scope — if bundled output works but tsserver errors,
check path aliases in `tsconfig.json` `paths`.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · msapps-mobile/claude-plugins | 100 | MIT |
| clickhouse/clickhouse-js | 100 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version f651bcbf1c05 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100python-lsp
Use this skill whenever Claude needs semantic intelligence on Python source — type errors, import resolution, go-to-definition, find-references, or hover type information. Trigger on: "Python LSP", "pyright", "type error", "find references", "who calls this function", "where is… - 90using-lsp-tools
Use when mcp-language-server tools are available and you need semantic code intelligence. Triggers: 'find definition', 'find references', 'who calls this', 'rename symbol', 'type hierarchy', 'go to definition', 'where is this used', 'where is this defined', 'what type is this'.… - 100java-lsp
Use this skill whenever Claude needs semantic intelligence on Java source — compile errors, type info, go-to-definition, find-references, or call-graph context. Trigger on: "Java LSP", "jdtls", "Eclipse JDT", "find references", "who calls this method", "where is X defined", "why… - 100python-lsp
Semantic Python code queries via a stdio LSP client driving pyright-langserver. Provides binding-resolved go-to-definition, find-references, hover types, type diagnostics, file symbol outlines, and project-wide symbol search — name resolution and type inference that tree-sitter… - 100lsp
Use when working with .ato files and you need semantic code intelligence — hover info, diagnostics, go-to-definition, find-references, or symbol inspection. Triggers on questions like "what type is this", "what members does X have", "where is X defined", "what uses Y", checking… - 95typescript
Use this skill when the user asks about TypeScript build tools, tsconfig, module resolution, type system, advanced types, generics, testing, or production deployment. Focus on tooling, type system, and ecosystem — not syntax basics.