LaunchKit · 2026
Back to Skills

pyright-lsp

Python language server (Pyright) providing static type checking, code intelligence, and LSP diagnostics for .py and .

0
895 downloads
by @bowen31337

Setup & Installation

openclaw skills install @bowen31337/pyright-lsp

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install pyright-lsp

What This Skill Does

Pyright is Microsoft's Python language server that runs static type checking and code intelligence on .py and .pyi files. It detects type errors, provides autocomplete suggestions, and supports go-to-definition and find references.

Pyright is faster and more precise than mypy for type inference, making it practical for large or complex Python projects.

When to use it

  • Catching type mismatches before running Python scripts
  • Navigating large Python codebases with go-to-definition
  • Validating type annotations in a library or package
  • Running type checks in CI to catch regressions
  • Getting autocomplete and error feedback without a full IDE

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Check my Python project for type errors

AGENT
  1. 1Navigate to the project root directory
  2. 2Run `pyright` to analyze all Python files
  3. 3Parse the diagnostic output for errors and warnings
  4. 4Report each type error with file path, line number, and description
OUTPUT

A list of type errors and warnings with locations, ready to address before committing

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Pyright installed via npm (`npm install -g pyright`), pip (`pip install pyright`), or pipx (`pipx install pyright`)