Pyright LSP for Openclaw

A high-performance Python language server providing static type checking, code intelligence, and real-time diagnostics for professional development.

bowen31337
v1.0.0
Feb 9, 2026
0
1.2k
2

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install pyright-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 pyright-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 Pyright LSP?

Pyright LSP is a robust integration built upon Microsoft's Pyright, designed to bring enterprise-grade static type checking to Python environments. By utilizing this skill within the Openclaw Skills ecosystem, developers can transform their coding experience with deep code intelligence, catch errors before execution, and maintain a cleaner codebase. It serves as a bridge between the flexible nature of Python and the reliability of strictly typed languages, offering a sophisticated suite of tools for code navigation and error detection in both .py and .pyi files.

Pyright LSP Use Cases

  • Detecting type mismatches and potential runtime exceptions during the development phase.
  • Enhancing developer productivity through fast autocomplete and symbol navigation.
  • Enforcing type safety across large-scale Python projects and microservices.
  • Automating code quality checks within local development loops or CI pipelines.

How Pyright LSP Works

  1. The skill detects and interacts with the Pyright engine installed on the local system environment.
  2. It analyzes Python source files or the entire project root to identify type annotations and structural relationships.
  3. The engine generates real-time diagnostics, mapping errors and warnings to specific line numbers and columns.
  4. Developers use these insights to perform go-to-definitions, find references, and resolve type conflicts based on the configured Python version.

Pyright LSP Setup

To get started with this skill, ensure that Pyright is available in your path. You can install it via npm or pip depending on your preference:

# Install via npm globally
npm install -g pyright

# Or install via pipx for a dedicated CLI environment
pipx install pyright

Verify the installation by running which pyright. Once installed, Openclaw Skills can trigger diagnostics by pointing to your source files or project directory.

Pyright LSP Data Schema & Taxonomy

The skill utilizes standard configuration files to manage its behavior and scope within a project:

File Type Purpose
pyrightconfig.json Central configuration file for defining search paths, exclusions, and strictness levels.
.py Standard Python source files analyzed for type compliance.
.pyi Type stub files used for describing interface definitions for third-party libraries.
pyright diagnostics JSON or text-based output containing error messages, severity levels, and file coordinates.

Pyright LSP Advanced Features

  • Support for strict type checking modes to enforce maximum code reliability.
  • Integration with project-specific virtual environments for accurate dependency resolution.
  • Multi-root workspace support for managing complex repository structures.
  • Customizable exclude patterns to prevent unnecessary analysis of dependencies like node_modules or caches.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*