TypeScript LSP for Openclaw

A powerful language server providing deep code intelligence, type checking, and refactoring for TypeScript and JavaScript projects.

bowen31337
v1.0.0
Feb 9, 2026
0
1.3k
8

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install typescript-lsp

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install typescript-lsp using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is TypeScript LSP?

The TypeScript LSP skill integrates the typescript-language-server into your development environment, offering a robust suite of tools for static analysis and code navigation. It bridges the gap between raw text editing and intelligent IDE features by providing precise diagnostics for .ts, .tsx, and .js files.

By utilizing this tool within the Openclaw Skills framework, developers and AI agents can ensure high code quality and significantly speed up the debugging process through automated error detection. It supports modern JavaScript and TypeScript standards, ensuring that your logic remains sound across various module systems and file extensions.

TypeScript LSP Use Cases

  • Real-time type checking for complex TypeScript and JavaScript applications.
  • Automated code refactoring including import organization and symbol renaming.
  • Enhancing AI agent navigation through go-to-definition and find references capabilities.
  • Detecting semantic and syntax errors before code execution or deployment.

How TypeScript LSP Works

  1. The skill initializes the typescript-language-server to index the project workspace and understand the codebase structure.
  2. It monitors file changes across supported extensions like .ts, .tsx, .js, and .jsx.
  3. Diagnostics are generated based on the project's tsconfig.json rules to identify type errors or syntax issues.
  4. The server provides contextual metadata to the AI agent for intelligent code completions, refactoring suggestions, and navigation.
  5. Developers can execute manual checks or background watch modes via integrated CLI tools to verify type safety across the entire repository.

TypeScript LSP Setup

To get started with this skill in the Openclaw Skills library, you need to install the language server and the TypeScript compiler globally:

npm install -g typescript-language-server typescript

Alternatively, using yarn:

yarn global add typescript-language-server typescript

Verify that the tools are correctly installed by checking their versions:

typescript-language-server --version
tsc --version

TypeScript LSP Data Schema & Taxonomy

The skill relies on standard project configuration files to define its behavior and scope. It organizes metadata based on the following structure:

Component Purpose
tsconfig.json The primary configuration file defining compiler options, target versions, and file inclusions.
Diagnostics Metadata output containing error messages, line numbers, and severity levels for code issues.
Source Files Support for .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, and .cjs file types.
Type Definitions Utilizes @types packages and local d.ts files to provide context for external libraries.

TypeScript LSP Advanced Features

  • Support for continuous type checking via watch mode for instant feedback loops.
  • Full compatibility with modern ESM extensions including .mts and .mjs.
  • Automated quick-fixes for common coding errors and import optimizations.
  • Deep project integration using the --project flag to handle complex monorepo structures.
  • Stylized error reporting with the --pretty flag for better human readability during manual checks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*